30 #ifndef GOOGLE_COMPUTE_API_BACKEND_SERVICE_IAP_H_ 31 #define GOOGLE_COMPUTE_API_BACKEND_SERVICE_IAP_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::BackendServiceIAP");
93 return Storage().isMember(
"enabled");
100 MutableStorage()->removeMember(
"enabled");
108 const Json::Value& storage = Storage(
"enabled");
109 return client::JsonValueToCppValueHelper<bool >(storage);
117 client::SetJsonValueFromCppValueHelper<bool >(
118 value, MutableStorage(
"enabled"));
127 return Storage().isMember(
"oauth2ClientId");
134 MutableStorage()->removeMember(
"oauth2ClientId");
142 const Json::Value& v = Storage(
"oauth2ClientId");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
152 *MutableStorage(
"oauth2ClientId") = value.data();
161 return Storage().isMember(
"oauth2ClientSecret");
168 MutableStorage()->removeMember(
"oauth2ClientSecret");
176 const Json::Value& v = Storage(
"oauth2ClientSecret");
177 if (v == Json::Value::null)
return StringPiece(
"");
178 return StringPiece(v.asCString());
186 *MutableStorage(
"oauth2ClientSecret") = value.data();
196 return Storage().isMember(
"oauth2ClientSecretSha256");
203 MutableStorage()->removeMember(
"oauth2ClientSecretSha256");
211 const Json::Value& v = Storage(
"oauth2ClientSecretSha256");
212 if (v == Json::Value::null)
return StringPiece(
"");
213 return StringPiece(v.asCString());
224 *MutableStorage(
"oauth2ClientSecretSha256") = value.data();
231 #endif // GOOGLE_COMPUTE_API_BACKEND_SERVICE_IAP_H_ const StringPiece get_oauth2_client_secret_sha256() const
Definition: backend_service_iap.h:210
void clear_oauth2_client_id()
Definition: backend_service_iap.h:133
void set_oauth2_client_secret(const StringPiece &value)
Definition: backend_service_iap.h:185
void set_oauth2_client_id(const StringPiece &value)
Definition: backend_service_iap.h:151
const StringPiece GetTypeName() const
Definition: backend_service_iap.h:83
void clear_enabled()
Definition: backend_service_iap.h:99
const StringPiece get_oauth2_client_id() const
Definition: backend_service_iap.h:141
bool has_enabled() const
Definition: backend_service_iap.h:92
bool get_enabled() const
Definition: backend_service_iap.h:107
void set_enabled(bool value)
Definition: backend_service_iap.h:116
Definition: accelerator_config.h:39
bool has_oauth2_client_id() const
Definition: backend_service_iap.h:126
bool has_oauth2_client_secret_sha256() const
Definition: backend_service_iap.h:195
Definition: backend_service_iap.h:50
void set_oauth2_client_secret_sha256(const StringPiece &value)
Definition: backend_service_iap.h:223
Definition: accelerator_config.cc:41
const StringPiece get_oauth2_client_secret() const
Definition: backend_service_iap.h:175
void clear_oauth2_client_secret()
Definition: backend_service_iap.h:167
void clear_oauth2_client_secret_sha256()
Definition: backend_service_iap.h:202
bool has_oauth2_client_secret() const
Definition: backend_service_iap.h:160