30 #ifndef GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_H_ 31 #define GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/deploymentmanager_api/deployment_update_label_entry.h" 86 return StringPiece(
"google_deploymentmanager_api::DeploymentUpdate");
95 return Storage().isMember(
"description");
102 MutableStorage()->removeMember(
"description");
110 const Json::Value& v = Storage(
"description");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
124 *MutableStorage(
"description") = value.data();
133 return Storage().isMember(
"labels");
140 MutableStorage()->removeMember(
"labels");
147 const client::JsonCppArray<DeploymentUpdateLabelEntry > get_labels()
const;
161 client::JsonCppArray<DeploymentUpdateLabelEntry > mutable_labels();
169 return Storage().isMember(
"manifest");
176 MutableStorage()->removeMember(
"manifest");
184 const Json::Value& v = Storage(
"manifest");
185 if (v == Json::Value::null)
return StringPiece(
"");
186 return StringPiece(v.asCString());
198 *MutableStorage(
"manifest") = value.data();
205 #endif // GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_H_ bool has_labels() const
Definition: deployment_update.h:132
void clear_manifest()
Definition: deployment_update.h:175
bool has_manifest() const
Definition: deployment_update.h:168
void set_manifest(const StringPiece &value)
Definition: deployment_update.h:197
const StringPiece get_description() const
Definition: deployment_update.h:109
const StringPiece GetTypeName() const
Definition: deployment_update.h:85
const StringPiece get_manifest() const
Definition: deployment_update.h:183
bool has_description() const
Definition: deployment_update.h:94
void set_description(const StringPiece &value)
Definition: deployment_update.h:123
Definition: audit_config.h:40
Definition: audit_config.cc:42
void clear_description()
Definition: deployment_update.h:101
Definition: deployment_update.h:52
void clear_labels()
Definition: deployment_update.h:139