30 #ifndef  GOOGLE_COMPUTE_API_SERVICE_ACCOUNT_H_    31 #define  GOOGLE_COMPUTE_API_SERVICE_ACCOUNT_H_    34 #include "googleapis/base/macros.h"    35 #include "googleapis/client/data/jsoncpp_data.h"    36 #include "googleapis/strings/stringpiece.h"    84     return StringPiece(
"google_compute_api::ServiceAccount");
    93     return Storage().isMember(
"email");
   100     MutableStorage()->removeMember(
"email");
   108     const Json::Value& v = Storage(
"email");
   109     if (v == Json::Value::null) 
return StringPiece(
"");
   110     return StringPiece(v.asCString());
   121     *MutableStorage(
"email") = value.data();
   130     return Storage().isMember(
"scopes");
   137     MutableStorage()->removeMember(
"scopes");
   145      const Json::Value& storage = Storage(
"scopes");
   146     return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
   157     Json::Value* storage = MutableStorage(
"scopes");
   158     return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
   165 #endif  // GOOGLE_COMPUTE_API_SERVICE_ACCOUNT_H_ void set_email(const StringPiece &value)
Definition: service_account.h:120
const StringPiece get_email() const
Definition: service_account.h:107
void clear_scopes()
Definition: service_account.h:136
bool has_scopes() const
Definition: service_account.h:129
client::JsonCppArray< string > mutable_scopes()
Definition: service_account.h:156
const StringPiece GetTypeName() const
Definition: service_account.h:83
bool has_email() const
Definition: service_account.h:92
void clear_email()
Definition: service_account.h:99
Definition: accelerator_config.h:39
const client::JsonCppArray< string > get_scopes() const
Definition: service_account.h:144
Definition: accelerator_config.cc:41
Definition: service_account.h:50