deploymentmanager  v2
deployment.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2019-03-20, 05:04:30 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Google Cloud Deployment Manager API (deploymentmanager/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 71
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_H_
31 #define GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 #include "google/deploymentmanager_api/deployment_label_entry.h"
40 #include "google/deploymentmanager_api/deployment_update.h"
41 #include "google/deploymentmanager_api/operation.h"
42 #include "google/deploymentmanager_api/target_configuration.h"
43 
44 namespace Json {
45 class Value;
46 } // namespace Json
47 
49 using namespace googleapis;
50 
56 class Deployment : public client::JsonCppData {
57  public:
63  static Deployment* New();
64 
70  explicit Deployment(const Json::Value& storage);
71 
77  explicit Deployment(Json::Value* storage);
78 
82  virtual ~Deployment();
83 
89  const StringPiece GetTypeName() const {
90  return StringPiece("google_deploymentmanager_api::Deployment");
91  }
92 
98  bool has_description() const {
99  return Storage().isMember("description");
100  }
101 
106  MutableStorage()->removeMember("description");
107  }
108 
109 
113  const StringPiece get_description() const {
114  const Json::Value& v = Storage("description");
115  if (v == Json::Value::null) return StringPiece("");
116  return StringPiece(v.asCString());
117  }
118 
126  void set_description(const StringPiece& value) {
127  *MutableStorage("description") = value.data();
128  }
129 
135  bool has_fingerprint() const {
136  return Storage().isMember("fingerprint");
137  }
138 
143  MutableStorage()->removeMember("fingerprint");
144  }
145 
146 
150  const StringPiece get_fingerprint() const {
151  const Json::Value& v = Storage("fingerprint");
152  if (v == Json::Value::null) return StringPiece("");
153  return StringPiece(v.asCString());
154  }
155 
171  void set_fingerprint(const StringPiece& value) {
172  *MutableStorage("fingerprint") = value.data();
173  }
174 
180  bool has_id() const {
181  return Storage().isMember("id");
182  }
183 
187  void clear_id() {
188  MutableStorage()->removeMember("id");
189  }
190 
191 
195  uint64 get_id() const {
196  const Json::Value& storage = Storage("id");
197  return client::JsonValueToCppValueHelper<uint64 >(storage);
198  }
199 
204  void set_id(uint64 value) {
205  client::SetJsonValueFromCppValueHelper<uint64 >(
206  value, MutableStorage("id"));
207  }
208 
214  bool has_insert_time() const {
215  return Storage().isMember("insertTime");
216  }
217 
222  MutableStorage()->removeMember("insertTime");
223  }
224 
225 
229  const StringPiece get_insert_time() const {
230  const Json::Value& v = Storage("insertTime");
231  if (v == Json::Value::null) return StringPiece("");
232  return StringPiece(v.asCString());
233  }
234 
242  void set_insert_time(const StringPiece& value) {
243  *MutableStorage("insertTime") = value.data();
244  }
245 
251  bool has_labels() const {
252  return Storage().isMember("labels");
253  }
254 
258  void clear_labels() {
259  MutableStorage()->removeMember("labels");
260  }
261 
262 
266  const client::JsonCppArray<DeploymentLabelEntry > get_labels() const;
267 
280  client::JsonCppArray<DeploymentLabelEntry > mutable_labels();
281 
287  bool has_manifest() const {
288  return Storage().isMember("manifest");
289  }
290 
294  void clear_manifest() {
295  MutableStorage()->removeMember("manifest");
296  }
297 
298 
302  const StringPiece get_manifest() const {
303  const Json::Value& v = Storage("manifest");
304  if (v == Json::Value::null) return StringPiece("");
305  return StringPiece(v.asCString());
306  }
307 
316  void set_manifest(const StringPiece& value) {
317  *MutableStorage("manifest") = value.data();
318  }
319 
325  bool has_name() const {
326  return Storage().isMember("name");
327  }
328 
332  void clear_name() {
333  MutableStorage()->removeMember("name");
334  }
335 
336 
340  const StringPiece get_name() const {
341  const Json::Value& v = Storage("name");
342  if (v == Json::Value::null) return StringPiece("");
343  return StringPiece(v.asCString());
344  }
345 
359  void set_name(const StringPiece& value) {
360  *MutableStorage("name") = value.data();
361  }
362 
368  bool has_operation() const {
369  return Storage().isMember("operation");
370  }
371 
376  MutableStorage()->removeMember("operation");
377  }
378 
379 
383  const Operation get_operation() const;
384 
394  Operation mutable_operation();
395 
401  bool has_self_link() const {
402  return Storage().isMember("selfLink");
403  }
404 
409  MutableStorage()->removeMember("selfLink");
410  }
411 
412 
416  const StringPiece get_self_link() const {
417  const Json::Value& v = Storage("selfLink");
418  if (v == Json::Value::null) return StringPiece("");
419  return StringPiece(v.asCString());
420  }
421 
429  void set_self_link(const StringPiece& value) {
430  *MutableStorage("selfLink") = value.data();
431  }
432 
438  bool has_target() const {
439  return Storage().isMember("target");
440  }
441 
445  void clear_target() {
446  MutableStorage()->removeMember("target");
447  }
448 
449 
453  const TargetConfiguration get_target() const;
454 
463  TargetConfiguration mutable_target();
464 
470  bool has_update() const {
471  return Storage().isMember("update");
472  }
473 
477  void clear_update() {
478  MutableStorage()->removeMember("update");
479  }
480 
481 
485  const DeploymentUpdate get_update() const;
486 
495  DeploymentUpdate mutable_update();
496 
502  bool has_update_time() const {
503  return Storage().isMember("updateTime");
504  }
505 
510  MutableStorage()->removeMember("updateTime");
511  }
512 
513 
517  const StringPiece get_update_time() const {
518  const Json::Value& v = Storage("updateTime");
519  if (v == Json::Value::null) return StringPiece("");
520  return StringPiece(v.asCString());
521  }
522 
530  void set_update_time(const StringPiece& value) {
531  *MutableStorage("updateTime") = value.data();
532  }
533 
534  private:
535  void operator=(const Deployment&);
536 }; // Deployment
537 } // namespace google_deploymentmanager_api
538 #endif // GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_H_
bool has_update_time() const
Definition: deployment.h:502
bool has_fingerprint() const
Definition: deployment.h:135
void clear_insert_time()
Definition: deployment.h:221
void clear_operation()
Definition: deployment.h:375
Definition: target_configuration.h:52
const StringPiece get_fingerprint() const
Definition: deployment.h:150
bool has_id() const
Definition: deployment.h:180
void clear_labels()
Definition: deployment.h:258
void clear_fingerprint()
Definition: deployment.h:142
uint64 get_id() const
Definition: deployment.h:195
bool has_operation() const
Definition: deployment.h:368
void clear_target()
Definition: deployment.h:445
void clear_manifest()
Definition: deployment.h:294
void set_name(const StringPiece &value)
Definition: deployment.h:359
void set_description(const StringPiece &value)
Definition: deployment.h:126
void clear_description()
Definition: deployment.h:105
void set_self_link(const StringPiece &value)
Definition: deployment.h:429
const StringPiece get_insert_time() const
Definition: deployment.h:229
bool has_insert_time() const
Definition: deployment.h:214
const StringPiece get_description() const
Definition: deployment.h:113
void clear_update()
Definition: deployment.h:477
bool has_manifest() const
Definition: deployment.h:287
bool has_self_link() const
Definition: deployment.h:401
Definition: operation.h:55
void clear_name()
Definition: deployment.h:332
const StringPiece get_update_time() const
Definition: deployment.h:517
Definition: audit_config.h:40
bool has_target() const
Definition: deployment.h:438
const StringPiece get_name() const
Definition: deployment.h:340
const StringPiece GetTypeName() const
Definition: deployment.h:89
bool has_name() const
Definition: deployment.h:325
void set_insert_time(const StringPiece &value)
Definition: deployment.h:242
bool has_update() const
Definition: deployment.h:470
Definition: audit_config.cc:42
void set_update_time(const StringPiece &value)
Definition: deployment.h:530
void set_id(uint64 value)
Definition: deployment.h:204
void clear_id()
Definition: deployment.h:187
void set_fingerprint(const StringPiece &value)
Definition: deployment.h:171
bool has_description() const
Definition: deployment.h:98
void clear_update_time()
Definition: deployment.h:509
const StringPiece get_manifest() const
Definition: deployment.h:302
Definition: deployment_update.h:52
const StringPiece get_self_link() const
Definition: deployment.h:416
void clear_self_link()
Definition: deployment.h:408
void set_manifest(const StringPiece &value)
Definition: deployment.h:316
Definition: deployment.h:56
bool has_labels() const
Definition: deployment.h:251