google-apis-certificatemanager_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of 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,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module CertificatemanagerV1
18
+ # Version of the google-apis-certificatemanager_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20220119"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,406 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of 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,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CertificatemanagerV1
24
+
25
+ class AuthorizationAttemptInfo
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CancelOperationRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Certificate
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CertificateMap
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CertificateMapEntry
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DnsAuthorization
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DnsResourceRecord
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Empty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GclbTarget
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class IpConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListCertificateMapEntriesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListCertificateMapsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListCertificatesResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListDnsAuthorizationsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListOperationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Location
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ManagedCertificate
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Operation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class OperationMetadata
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ProvisioningIssue
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SelfManagedCertificate
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Status
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class AuthorizationAttemptInfo
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :details, as: 'details'
167
+ property :domain, as: 'domain'
168
+ property :failure_reason, as: 'failureReason'
169
+ property :state, as: 'state'
170
+ end
171
+ end
172
+
173
+ class CancelOperationRequest
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ end
177
+ end
178
+
179
+ class Certificate
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ property :create_time, as: 'createTime'
183
+ property :description, as: 'description'
184
+ property :expire_time, as: 'expireTime'
185
+ hash :labels, as: 'labels'
186
+ property :managed, as: 'managed', class: Google::Apis::CertificatemanagerV1::ManagedCertificate, decorator: Google::Apis::CertificatemanagerV1::ManagedCertificate::Representation
187
+
188
+ property :name, as: 'name'
189
+ property :pem_certificate, as: 'pemCertificate'
190
+ collection :san_dnsnames, as: 'sanDnsnames'
191
+ property :scope, as: 'scope'
192
+ property :self_managed, as: 'selfManaged', class: Google::Apis::CertificatemanagerV1::SelfManagedCertificate, decorator: Google::Apis::CertificatemanagerV1::SelfManagedCertificate::Representation
193
+
194
+ property :update_time, as: 'updateTime'
195
+ end
196
+ end
197
+
198
+ class CertificateMap
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :create_time, as: 'createTime'
202
+ property :description, as: 'description'
203
+ collection :gclb_targets, as: 'gclbTargets', class: Google::Apis::CertificatemanagerV1::GclbTarget, decorator: Google::Apis::CertificatemanagerV1::GclbTarget::Representation
204
+
205
+ hash :labels, as: 'labels'
206
+ property :name, as: 'name'
207
+ property :update_time, as: 'updateTime'
208
+ end
209
+ end
210
+
211
+ class CertificateMapEntry
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ collection :certificates, as: 'certificates'
215
+ property :create_time, as: 'createTime'
216
+ property :description, as: 'description'
217
+ property :hostname, as: 'hostname'
218
+ hash :labels, as: 'labels'
219
+ property :matcher, as: 'matcher'
220
+ property :name, as: 'name'
221
+ property :state, as: 'state'
222
+ property :update_time, as: 'updateTime'
223
+ end
224
+ end
225
+
226
+ class DnsAuthorization
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :create_time, as: 'createTime'
230
+ property :description, as: 'description'
231
+ property :dns_resource_record, as: 'dnsResourceRecord', class: Google::Apis::CertificatemanagerV1::DnsResourceRecord, decorator: Google::Apis::CertificatemanagerV1::DnsResourceRecord::Representation
232
+
233
+ property :domain, as: 'domain'
234
+ hash :labels, as: 'labels'
235
+ property :name, as: 'name'
236
+ property :update_time, as: 'updateTime'
237
+ end
238
+ end
239
+
240
+ class DnsResourceRecord
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :data, as: 'data'
244
+ property :name, as: 'name'
245
+ property :type, as: 'type'
246
+ end
247
+ end
248
+
249
+ class Empty
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ end
253
+ end
254
+
255
+ class GclbTarget
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ collection :ip_configs, as: 'ipConfigs', class: Google::Apis::CertificatemanagerV1::IpConfig, decorator: Google::Apis::CertificatemanagerV1::IpConfig::Representation
259
+
260
+ property :target_https_proxy, as: 'targetHttpsProxy'
261
+ property :target_ssl_proxy, as: 'targetSslProxy'
262
+ end
263
+ end
264
+
265
+ class IpConfig
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :ip_address, as: 'ipAddress'
269
+ collection :ports, as: 'ports'
270
+ end
271
+ end
272
+
273
+ class ListCertificateMapEntriesResponse
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ collection :certificate_map_entries, as: 'certificateMapEntries', class: Google::Apis::CertificatemanagerV1::CertificateMapEntry, decorator: Google::Apis::CertificatemanagerV1::CertificateMapEntry::Representation
277
+
278
+ property :next_page_token, as: 'nextPageToken'
279
+ collection :unreachable, as: 'unreachable'
280
+ end
281
+ end
282
+
283
+ class ListCertificateMapsResponse
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ collection :certificate_maps, as: 'certificateMaps', class: Google::Apis::CertificatemanagerV1::CertificateMap, decorator: Google::Apis::CertificatemanagerV1::CertificateMap::Representation
287
+
288
+ property :next_page_token, as: 'nextPageToken'
289
+ collection :unreachable, as: 'unreachable'
290
+ end
291
+ end
292
+
293
+ class ListCertificatesResponse
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ collection :certificates, as: 'certificates', class: Google::Apis::CertificatemanagerV1::Certificate, decorator: Google::Apis::CertificatemanagerV1::Certificate::Representation
297
+
298
+ property :next_page_token, as: 'nextPageToken'
299
+ collection :unreachable, as: 'unreachable'
300
+ end
301
+ end
302
+
303
+ class ListDnsAuthorizationsResponse
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ collection :dns_authorizations, as: 'dnsAuthorizations', class: Google::Apis::CertificatemanagerV1::DnsAuthorization, decorator: Google::Apis::CertificatemanagerV1::DnsAuthorization::Representation
307
+
308
+ property :next_page_token, as: 'nextPageToken'
309
+ collection :unreachable, as: 'unreachable'
310
+ end
311
+ end
312
+
313
+ class ListLocationsResponse
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ collection :locations, as: 'locations', class: Google::Apis::CertificatemanagerV1::Location, decorator: Google::Apis::CertificatemanagerV1::Location::Representation
317
+
318
+ property :next_page_token, as: 'nextPageToken'
319
+ end
320
+ end
321
+
322
+ class ListOperationsResponse
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :next_page_token, as: 'nextPageToken'
326
+ collection :operations, as: 'operations', class: Google::Apis::CertificatemanagerV1::Operation, decorator: Google::Apis::CertificatemanagerV1::Operation::Representation
327
+
328
+ end
329
+ end
330
+
331
+ class Location
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :display_name, as: 'displayName'
335
+ hash :labels, as: 'labels'
336
+ property :location_id, as: 'locationId'
337
+ hash :metadata, as: 'metadata'
338
+ property :name, as: 'name'
339
+ end
340
+ end
341
+
342
+ class ManagedCertificate
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ collection :authorization_attempt_info, as: 'authorizationAttemptInfo', class: Google::Apis::CertificatemanagerV1::AuthorizationAttemptInfo, decorator: Google::Apis::CertificatemanagerV1::AuthorizationAttemptInfo::Representation
346
+
347
+ collection :dns_authorizations, as: 'dnsAuthorizations'
348
+ collection :domains, as: 'domains'
349
+ property :provisioning_issue, as: 'provisioningIssue', class: Google::Apis::CertificatemanagerV1::ProvisioningIssue, decorator: Google::Apis::CertificatemanagerV1::ProvisioningIssue::Representation
350
+
351
+ property :state, as: 'state'
352
+ end
353
+ end
354
+
355
+ class Operation
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :done, as: 'done'
359
+ property :error, as: 'error', class: Google::Apis::CertificatemanagerV1::Status, decorator: Google::Apis::CertificatemanagerV1::Status::Representation
360
+
361
+ hash :metadata, as: 'metadata'
362
+ property :name, as: 'name'
363
+ hash :response, as: 'response'
364
+ end
365
+ end
366
+
367
+ class OperationMetadata
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :api_version, as: 'apiVersion'
371
+ property :create_time, as: 'createTime'
372
+ property :end_time, as: 'endTime'
373
+ property :requested_cancellation, as: 'requestedCancellation'
374
+ property :status_message, as: 'statusMessage'
375
+ property :target, as: 'target'
376
+ property :verb, as: 'verb'
377
+ end
378
+ end
379
+
380
+ class ProvisioningIssue
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :details, as: 'details'
384
+ property :reason, as: 'reason'
385
+ end
386
+ end
387
+
388
+ class SelfManagedCertificate
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ property :pem_certificate, as: 'pemCertificate'
392
+ property :pem_private_key, as: 'pemPrivateKey'
393
+ end
394
+ end
395
+
396
+ class Status
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ property :code, as: 'code'
400
+ collection :details, as: 'details'
401
+ property :message, as: 'message'
402
+ end
403
+ end
404
+ end
405
+ end
406
+ end