sqladmin  v1beta4
ssl_certs_insert_response.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-06-11, 00:07:27 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Cloud SQL Admin API (sqladmin/v1beta4)
24 // Generated from:
25 // Version: v1beta4
26 // Revision: 76
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_SQLADMIN_API_SSL_CERTS_INSERT_RESPONSE_H_
31 #define GOOGLE_SQLADMIN_API_SSL_CERTS_INSERT_RESPONSE_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/sqladmin_api/operation.h"
39 #include "google/sqladmin_api/ssl_cert.h"
40 #include "google/sqladmin_api/ssl_cert_detail.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_sqladmin_api {
47 using namespace googleapis;
48 
54 class SslCertsInsertResponse : public client::JsonCppData {
55  public:
61  static SslCertsInsertResponse* New();
62 
68  explicit SslCertsInsertResponse(const Json::Value& storage);
69 
75  explicit SslCertsInsertResponse(Json::Value* storage);
76 
80  virtual ~SslCertsInsertResponse();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_sqladmin_api::SslCertsInsertResponse");
89  }
90 
96  bool has_client_cert() const {
97  return Storage().isMember("clientCert");
98  }
99 
104  MutableStorage()->removeMember("clientCert");
105  }
106 
107 
111  const SslCertDetail get_client_cert() const;
112 
122  SslCertDetail mutable_clientCert();
123 
129  bool has_kind() const {
130  return Storage().isMember("kind");
131  }
132 
136  void clear_kind() {
137  MutableStorage()->removeMember("kind");
138  }
139 
140 
144  const StringPiece get_kind() const {
145  const Json::Value& v = Storage("kind");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
157  void set_kind(const StringPiece& value) {
158  *MutableStorage("kind") = value.data();
159  }
160 
166  bool has_operation() const {
167  return Storage().isMember("operation");
168  }
169 
174  MutableStorage()->removeMember("operation");
175  }
176 
177 
181  const Operation get_operation() const;
182 
191  Operation mutable_operation();
192 
198  bool has_server_ca_cert() const {
199  return Storage().isMember("serverCaCert");
200  }
201 
206  MutableStorage()->removeMember("serverCaCert");
207  }
208 
209 
213  const SslCert get_server_ca_cert() const;
214 
225  SslCert mutable_serverCaCert();
226 
227  private:
228  void operator=(const SslCertsInsertResponse&);
229 }; // SslCertsInsertResponse
230 } // namespace google_sqladmin_api
231 #endif // GOOGLE_SQLADMIN_API_SSL_CERTS_INSERT_RESPONSE_H_
bool has_server_ca_cert() const
Definition: ssl_certs_insert_response.h:198
void clear_client_cert()
Definition: ssl_certs_insert_response.h:103
bool has_kind() const
Definition: ssl_certs_insert_response.h:129
bool has_client_cert() const
Definition: ssl_certs_insert_response.h:96
const StringPiece get_kind() const
Definition: ssl_certs_insert_response.h:144
void clear_operation()
Definition: ssl_certs_insert_response.h:173
Definition: ssl_cert_detail.h:52
void clear_kind()
Definition: ssl_certs_insert_response.h:136
Definition: acl_entry.cc:41
Definition: acl_entry.h:39
void set_kind(const StringPiece &value)
Definition: ssl_certs_insert_response.h:157
Definition: ssl_cert.h:51
Definition: operation.h:57
Definition: ssl_certs_insert_response.h:54
void clear_server_ca_cert()
Definition: ssl_certs_insert_response.h:205
bool has_operation() const
Definition: ssl_certs_insert_response.h:166
const StringPiece GetTypeName() const
Definition: ssl_certs_insert_response.h:87