container  v1
resource_usage_export_config.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: 2020-03-07, 01:20:42 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Kubernetes Engine API (container/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 93
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CONTAINER_API_RESOURCE_USAGE_EXPORT_CONFIG_H_
31 #define GOOGLE_CONTAINER_API_RESOURCE_USAGE_EXPORT_CONFIG_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/container_api/big_query_destination.h"
38 #include "google/container_api/consumption_metering_config.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
52 class ResourceUsageExportConfig : public client::JsonCppData {
53  public:
59  static ResourceUsageExportConfig* New();
60 
66  explicit ResourceUsageExportConfig(const Json::Value& storage);
67 
73  explicit ResourceUsageExportConfig(Json::Value* storage);
74 
78  virtual ~ResourceUsageExportConfig();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_container_api::ResourceUsageExportConfig");
87  }
88 
94  bool has_bigquery_destination() const {
95  return Storage().isMember("bigqueryDestination");
96  }
97 
102  MutableStorage()->removeMember("bigqueryDestination");
103  }
104 
105 
110  const BigQueryDestination get_bigquery_destination() const;
111 
120  BigQueryDestination mutable_bigqueryDestination();
121 
130  return Storage().isMember("consumptionMeteringConfig");
131  }
132 
137  MutableStorage()->removeMember("consumptionMeteringConfig");
138  }
139 
140 
145  const ConsumptionMeteringConfig get_consumption_metering_config() const;
146 
155  ConsumptionMeteringConfig mutable_consumptionMeteringConfig();
156 
165  return Storage().isMember("enableNetworkEgressMetering");
166  }
167 
172  MutableStorage()->removeMember("enableNetworkEgressMetering");
173  }
174 
175 
180  const Json::Value& storage = Storage("enableNetworkEgressMetering");
181  return client::JsonValueToCppValueHelper<bool >(storage);
182  }
183 
193  client::SetJsonValueFromCppValueHelper<bool >(
194  value, MutableStorage("enableNetworkEgressMetering"));
195  }
196 
197  private:
198  void operator=(const ResourceUsageExportConfig&);
199 }; // ResourceUsageExportConfig
200 } // namespace google_container_api
201 #endif // GOOGLE_CONTAINER_API_RESOURCE_USAGE_EXPORT_CONFIG_H_
void clear_consumption_metering_config()
Definition: resource_usage_export_config.h:136
bool has_enable_network_egress_metering() const
Definition: resource_usage_export_config.h:164
Definition: big_query_destination.h:50
bool get_enable_network_egress_metering() const
Definition: resource_usage_export_config.h:179
const StringPiece GetTypeName() const
Definition: resource_usage_export_config.h:85
Definition: consumption_metering_config.h:49
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
void clear_enable_network_egress_metering()
Definition: resource_usage_export_config.h:171
void set_enable_network_egress_metering(bool value)
Definition: resource_usage_export_config.h:192
bool has_bigquery_destination() const
Definition: resource_usage_export_config.h:94
void clear_bigquery_destination()
Definition: resource_usage_export_config.h:101
Definition: resource_usage_export_config.h:52
bool has_consumption_metering_config() const
Definition: resource_usage_export_config.h:129