compute  v1
url_map_validation_result.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_URL_MAP_VALIDATION_RESULT_H_
31 #define GOOGLE_COMPUTE_API_URL_MAP_VALIDATION_RESULT_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/compute_api/test_failure.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_compute_api {
45 using namespace googleapis;
46 
52 class UrlMapValidationResult : public client::JsonCppData {
53  public:
59  static UrlMapValidationResult* New();
60 
66  explicit UrlMapValidationResult(const Json::Value& storage);
67 
73  explicit UrlMapValidationResult(Json::Value* storage);
74 
78  virtual ~UrlMapValidationResult();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_compute_api::UrlMapValidationResult");
87  }
88 
94  bool has_load_errors() const {
95  return Storage().isMember("loadErrors");
96  }
97 
102  MutableStorage()->removeMember("loadErrors");
103  }
104 
105 
109  const client::JsonCppArray<string > get_load_errors() const {
110  const Json::Value& storage = Storage("loadErrors");
111  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
112  }
113 
119  client::JsonCppArray<string > mutable_loadErrors() {
120  Json::Value* storage = MutableStorage("loadErrors");
121  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
122  }
123 
129  bool has_load_succeeded() const {
130  return Storage().isMember("loadSucceeded");
131  }
132 
137  MutableStorage()->removeMember("loadSucceeded");
138  }
139 
140 
144  bool get_load_succeeded() const {
145  const Json::Value& storage = Storage("loadSucceeded");
146  return client::JsonValueToCppValueHelper<bool >(storage);
147  }
148 
157  void set_load_succeeded(bool value) {
158  client::SetJsonValueFromCppValueHelper<bool >(
159  value, MutableStorage("loadSucceeded"));
160  }
161 
167  bool has_test_failures() const {
168  return Storage().isMember("testFailures");
169  }
170 
175  MutableStorage()->removeMember("testFailures");
176  }
177 
178 
182  const client::JsonCppArray<TestFailure > get_test_failures() const;
183 
189  client::JsonCppArray<TestFailure > mutable_testFailures();
190 
196  bool has_test_passed() const {
197  return Storage().isMember("testPassed");
198  }
199 
204  MutableStorage()->removeMember("testPassed");
205  }
206 
207 
211  bool get_test_passed() const {
212  const Json::Value& storage = Storage("testPassed");
213  return client::JsonValueToCppValueHelper<bool >(storage);
214  }
215 
224  void set_test_passed(bool value) {
225  client::SetJsonValueFromCppValueHelper<bool >(
226  value, MutableStorage("testPassed"));
227  }
228 
229  private:
230  void operator=(const UrlMapValidationResult&);
231 }; // UrlMapValidationResult
232 } // namespace google_compute_api
233 #endif // GOOGLE_COMPUTE_API_URL_MAP_VALIDATION_RESULT_H_
bool has_test_failures() const
Definition: url_map_validation_result.h:167
bool has_test_passed() const
Definition: url_map_validation_result.h:196
const client::JsonCppArray< string > get_load_errors() const
Definition: url_map_validation_result.h:109
const StringPiece GetTypeName() const
Definition: url_map_validation_result.h:85
client::JsonCppArray< string > mutable_loadErrors()
Definition: url_map_validation_result.h:119
Definition: url_map_validation_result.h:52
void clear_load_errors()
Definition: url_map_validation_result.h:101
void set_test_passed(bool value)
Definition: url_map_validation_result.h:224
Definition: accelerator_config.h:39
void set_load_succeeded(bool value)
Definition: url_map_validation_result.h:157
void clear_test_passed()
Definition: url_map_validation_result.h:203
bool get_test_passed() const
Definition: url_map_validation_result.h:211
bool has_load_succeeded() const
Definition: url_map_validation_result.h:129
Definition: accelerator_config.cc:41
bool has_load_errors() const
Definition: url_map_validation_result.h:94
void clear_test_failures()
Definition: url_map_validation_result.h:174
void clear_load_succeeded()
Definition: url_map_validation_result.h:136
bool get_load_succeeded() const
Definition: url_map_validation_result.h:144