compute  v1
instance_group_manager_actions_summary.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-05-15, 03:08:54 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Compute Engine API (compute/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 214
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_COMPUTE_API_INSTANCE_GROUP_MANAGER_ACTIONS_SUMMARY_H_
31 #define GOOGLE_COMPUTE_API_INSTANCE_GROUP_MANAGER_ACTIONS_SUMMARY_H_
32 
33 #include "googleapis/base/integral_types.h"
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_compute_api {
43 using namespace googleapis;
44 
50 class InstanceGroupManagerActionsSummary : public client::JsonCppData {
51  public:
58 
64  explicit InstanceGroupManagerActionsSummary(const Json::Value& storage);
65 
71  explicit InstanceGroupManagerActionsSummary(Json::Value* storage);
72 
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_compute_api::InstanceGroupManagerActionsSummary");
85  }
86 
92  bool has_abandoning() const {
93  return Storage().isMember("abandoning");
94  }
95 
100  MutableStorage()->removeMember("abandoning");
101  }
102 
103 
107  int32 get_abandoning() const {
108  const Json::Value& storage = Storage("abandoning");
109  return client::JsonValueToCppValueHelper<int32 >(storage);
110  }
111 
121  void set_abandoning(int32 value) {
122  client::SetJsonValueFromCppValueHelper<int32 >(
123  value, MutableStorage("abandoning"));
124  }
125 
131  bool has_creating() const {
132  return Storage().isMember("creating");
133  }
134 
138  void clear_creating() {
139  MutableStorage()->removeMember("creating");
140  }
141 
142 
146  int32 get_creating() const {
147  const Json::Value& storage = Storage("creating");
148  return client::JsonValueToCppValueHelper<int32 >(storage);
149  }
150 
164  void set_creating(int32 value) {
165  client::SetJsonValueFromCppValueHelper<int32 >(
166  value, MutableStorage("creating"));
167  }
168 
176  return Storage().isMember("creatingWithoutRetries");
177  }
178 
183  MutableStorage()->removeMember("creatingWithoutRetries");
184  }
185 
186 
191  const Json::Value& storage = Storage("creatingWithoutRetries");
192  return client::JsonValueToCppValueHelper<int32 >(storage);
193  }
194 
205  void set_creating_without_retries(int32 value) {
206  client::SetJsonValueFromCppValueHelper<int32 >(
207  value, MutableStorage("creatingWithoutRetries"));
208  }
209 
215  bool has_deleting() const {
216  return Storage().isMember("deleting");
217  }
218 
222  void clear_deleting() {
223  MutableStorage()->removeMember("deleting");
224  }
225 
226 
230  int32 get_deleting() const {
231  const Json::Value& storage = Storage("deleting");
232  return client::JsonValueToCppValueHelper<int32 >(storage);
233  }
234 
243  void set_deleting(int32 value) {
244  client::SetJsonValueFromCppValueHelper<int32 >(
245  value, MutableStorage("deleting"));
246  }
247 
253  bool has_none() const {
254  return Storage().isMember("none");
255  }
256 
260  void clear_none() {
261  MutableStorage()->removeMember("none");
262  }
263 
264 
268  int32 get_none() const {
269  const Json::Value& storage = Storage("none");
270  return client::JsonValueToCppValueHelper<int32 >(storage);
271  }
272 
281  void set_none(int32 value) {
282  client::SetJsonValueFromCppValueHelper<int32 >(
283  value, MutableStorage("none"));
284  }
285 
291  bool has_recreating() const {
292  return Storage().isMember("recreating");
293  }
294 
299  MutableStorage()->removeMember("recreating");
300  }
301 
302 
306  int32 get_recreating() const {
307  const Json::Value& storage = Storage("recreating");
308  return client::JsonValueToCppValueHelper<int32 >(storage);
309  }
310 
321  void set_recreating(int32 value) {
322  client::SetJsonValueFromCppValueHelper<int32 >(
323  value, MutableStorage("recreating"));
324  }
325 
331  bool has_refreshing() const {
332  return Storage().isMember("refreshing");
333  }
334 
339  MutableStorage()->removeMember("refreshing");
340  }
341 
342 
346  int32 get_refreshing() const {
347  const Json::Value& storage = Storage("refreshing");
348  return client::JsonValueToCppValueHelper<int32 >(storage);
349  }
350 
361  void set_refreshing(int32 value) {
362  client::SetJsonValueFromCppValueHelper<int32 >(
363  value, MutableStorage("refreshing"));
364  }
365 
371  bool has_restarting() const {
372  return Storage().isMember("restarting");
373  }
374 
379  MutableStorage()->removeMember("restarting");
380  }
381 
382 
386  int32 get_restarting() const {
387  const Json::Value& storage = Storage("restarting");
388  return client::JsonValueToCppValueHelper<int32 >(storage);
389  }
390 
399  void set_restarting(int32 value) {
400  client::SetJsonValueFromCppValueHelper<int32 >(
401  value, MutableStorage("restarting"));
402  }
403 
409  bool has_verifying() const {
410  return Storage().isMember("verifying");
411  }
412 
417  MutableStorage()->removeMember("verifying");
418  }
419 
420 
424  int32 get_verifying() const {
425  const Json::Value& storage = Storage("verifying");
426  return client::JsonValueToCppValueHelper<int32 >(storage);
427  }
428 
438  void set_verifying(int32 value) {
439  client::SetJsonValueFromCppValueHelper<int32 >(
440  value, MutableStorage("verifying"));
441  }
442 
443  private:
444  void operator=(const InstanceGroupManagerActionsSummary&);
445 }; // InstanceGroupManagerActionsSummary
446 } // namespace google_compute_api
447 #endif // GOOGLE_COMPUTE_API_INSTANCE_GROUP_MANAGER_ACTIONS_SUMMARY_H_
Definition: instance_group_manager_actions_summary.h:50
void clear_creating_without_retries()
Definition: instance_group_manager_actions_summary.h:182
int32 get_none() const
Definition: instance_group_manager_actions_summary.h:268
void set_deleting(int32 value)
Definition: instance_group_manager_actions_summary.h:243
void clear_creating()
Definition: instance_group_manager_actions_summary.h:138
void set_restarting(int32 value)
Definition: instance_group_manager_actions_summary.h:399
void set_none(int32 value)
Definition: instance_group_manager_actions_summary.h:281
void set_creating_without_retries(int32 value)
Definition: instance_group_manager_actions_summary.h:205
void set_abandoning(int32 value)
Definition: instance_group_manager_actions_summary.h:121
const StringPiece GetTypeName() const
Definition: instance_group_manager_actions_summary.h:83
int32 get_creating_without_retries() const
Definition: instance_group_manager_actions_summary.h:190
int32 get_refreshing() const
Definition: instance_group_manager_actions_summary.h:346
bool has_recreating() const
Definition: instance_group_manager_actions_summary.h:291
void clear_verifying()
Definition: instance_group_manager_actions_summary.h:416
int32 get_creating() const
Definition: instance_group_manager_actions_summary.h:146
bool has_abandoning() const
Definition: instance_group_manager_actions_summary.h:92
void clear_deleting()
Definition: instance_group_manager_actions_summary.h:222
bool has_creating() const
Definition: instance_group_manager_actions_summary.h:131
void set_creating(int32 value)
Definition: instance_group_manager_actions_summary.h:164
bool has_verifying() const
Definition: instance_group_manager_actions_summary.h:409
bool has_restarting() const
Definition: instance_group_manager_actions_summary.h:371
void clear_recreating()
Definition: instance_group_manager_actions_summary.h:298
int32 get_restarting() const
Definition: instance_group_manager_actions_summary.h:386
void set_recreating(int32 value)
Definition: instance_group_manager_actions_summary.h:321
void clear_none()
Definition: instance_group_manager_actions_summary.h:260
Definition: accelerator_config.h:39
void clear_abandoning()
Definition: instance_group_manager_actions_summary.h:99
bool has_creating_without_retries() const
Definition: instance_group_manager_actions_summary.h:175
void set_verifying(int32 value)
Definition: instance_group_manager_actions_summary.h:438
int32 get_abandoning() const
Definition: instance_group_manager_actions_summary.h:107
bool has_deleting() const
Definition: instance_group_manager_actions_summary.h:215
Definition: accelerator_config.cc:41
void clear_refreshing()
Definition: instance_group_manager_actions_summary.h:338
void clear_restarting()
Definition: instance_group_manager_actions_summary.h:378
void set_refreshing(int32 value)
Definition: instance_group_manager_actions_summary.h:361
int32 get_deleting() const
Definition: instance_group_manager_actions_summary.h:230
bool has_refreshing() const
Definition: instance_group_manager_actions_summary.h:331
int32 get_verifying() const
Definition: instance_group_manager_actions_summary.h:424
bool has_none() const
Definition: instance_group_manager_actions_summary.h:253
int32 get_recreating() const
Definition: instance_group_manager_actions_summary.h:306