google-apis-firebasehosting_v1beta1 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 FirebasehostingV1beta1
18
+ # Version of the google-apis-firebasehosting_v1beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201024"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,517 @@
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 FirebasehostingV1beta1
24
+
25
+ class ActingUser
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CertDnsChallenge
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CertHttpChallenge
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Channel
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CloneVersionRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CloudRunRewrite
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Domain
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DomainProvisioning
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class DomainRedirect
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Empty
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Header
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class I18nConfig
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListChannelsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListDomainsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListReleasesResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListVersionFilesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListVersionsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Operation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PathFilter
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class PopulateVersionFilesRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class PopulateVersionFilesResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class PreviewConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Redirect
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Release
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Rewrite
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ServingConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SiteConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Status
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Version
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class VersionFile
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ActingUser
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :email, as: 'email'
209
+ property :image_url, as: 'imageUrl'
210
+ end
211
+ end
212
+
213
+ class CertDnsChallenge
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :domain_name, as: 'domainName'
217
+ property :token, as: 'token'
218
+ end
219
+ end
220
+
221
+ class CertHttpChallenge
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ property :path, as: 'path'
225
+ property :token, as: 'token'
226
+ end
227
+ end
228
+
229
+ class Channel
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :create_time, as: 'createTime'
233
+ property :expire_time, as: 'expireTime'
234
+ hash :labels, as: 'labels'
235
+ property :name, as: 'name'
236
+ property :release, as: 'release', class: Google::Apis::FirebasehostingV1beta1::Release, decorator: Google::Apis::FirebasehostingV1beta1::Release::Representation
237
+
238
+ property :retained_release_count, as: 'retainedReleaseCount'
239
+ property :ttl, as: 'ttl'
240
+ property :update_time, as: 'updateTime'
241
+ property :url, as: 'url'
242
+ end
243
+ end
244
+
245
+ class CloneVersionRequest
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ property :exclude, as: 'exclude', class: Google::Apis::FirebasehostingV1beta1::PathFilter, decorator: Google::Apis::FirebasehostingV1beta1::PathFilter::Representation
249
+
250
+ property :finalize, as: 'finalize'
251
+ property :include, as: 'include', class: Google::Apis::FirebasehostingV1beta1::PathFilter, decorator: Google::Apis::FirebasehostingV1beta1::PathFilter::Representation
252
+
253
+ property :source_version, as: 'sourceVersion'
254
+ end
255
+ end
256
+
257
+ class CloudRunRewrite
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :region, as: 'region'
261
+ property :service_id, as: 'serviceId'
262
+ end
263
+ end
264
+
265
+ class Domain
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :domain_name, as: 'domainName'
269
+ property :domain_redirect, as: 'domainRedirect', class: Google::Apis::FirebasehostingV1beta1::DomainRedirect, decorator: Google::Apis::FirebasehostingV1beta1::DomainRedirect::Representation
270
+
271
+ property :provisioning, as: 'provisioning', class: Google::Apis::FirebasehostingV1beta1::DomainProvisioning, decorator: Google::Apis::FirebasehostingV1beta1::DomainProvisioning::Representation
272
+
273
+ property :site, as: 'site'
274
+ property :status, as: 'status'
275
+ property :update_time, as: 'updateTime'
276
+ end
277
+ end
278
+
279
+ class DomainProvisioning
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ collection :cert_challenge_discovered_txt, as: 'certChallengeDiscoveredTxt'
283
+ property :cert_challenge_dns, as: 'certChallengeDns', class: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge::Representation
284
+
285
+ property :cert_challenge_http, as: 'certChallengeHttp', class: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge::Representation
286
+
287
+ property :cert_status, as: 'certStatus'
288
+ collection :discovered_ips, as: 'discoveredIps'
289
+ property :dns_fetch_time, as: 'dnsFetchTime'
290
+ property :dns_status, as: 'dnsStatus'
291
+ collection :expected_ips, as: 'expectedIps'
292
+ end
293
+ end
294
+
295
+ class DomainRedirect
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :domain_name, as: 'domainName'
299
+ property :type, as: 'type'
300
+ end
301
+ end
302
+
303
+ class Empty
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ end
307
+ end
308
+
309
+ class Header
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :glob, as: 'glob'
313
+ hash :headers, as: 'headers'
314
+ property :regex, as: 'regex'
315
+ end
316
+ end
317
+
318
+ class I18nConfig
319
+ # @private
320
+ class Representation < Google::Apis::Core::JsonRepresentation
321
+ property :root, as: 'root'
322
+ end
323
+ end
324
+
325
+ class ListChannelsResponse
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ collection :channels, as: 'channels', class: Google::Apis::FirebasehostingV1beta1::Channel, decorator: Google::Apis::FirebasehostingV1beta1::Channel::Representation
329
+
330
+ property :next_page_token, as: 'nextPageToken'
331
+ end
332
+ end
333
+
334
+ class ListDomainsResponse
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ collection :domains, as: 'domains', class: Google::Apis::FirebasehostingV1beta1::Domain, decorator: Google::Apis::FirebasehostingV1beta1::Domain::Representation
338
+
339
+ property :next_page_token, as: 'nextPageToken'
340
+ end
341
+ end
342
+
343
+ class ListReleasesResponse
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :next_page_token, as: 'nextPageToken'
347
+ collection :releases, as: 'releases', class: Google::Apis::FirebasehostingV1beta1::Release, decorator: Google::Apis::FirebasehostingV1beta1::Release::Representation
348
+
349
+ end
350
+ end
351
+
352
+ class ListVersionFilesResponse
353
+ # @private
354
+ class Representation < Google::Apis::Core::JsonRepresentation
355
+ collection :files, as: 'files', class: Google::Apis::FirebasehostingV1beta1::VersionFile, decorator: Google::Apis::FirebasehostingV1beta1::VersionFile::Representation
356
+
357
+ property :next_page_token, as: 'nextPageToken'
358
+ end
359
+ end
360
+
361
+ class ListVersionsResponse
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :next_page_token, as: 'nextPageToken'
365
+ collection :versions, as: 'versions', class: Google::Apis::FirebasehostingV1beta1::Version, decorator: Google::Apis::FirebasehostingV1beta1::Version::Representation
366
+
367
+ end
368
+ end
369
+
370
+ class Operation
371
+ # @private
372
+ class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :done, as: 'done'
374
+ property :error, as: 'error', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
375
+
376
+ hash :metadata, as: 'metadata'
377
+ property :name, as: 'name'
378
+ hash :response, as: 'response'
379
+ end
380
+ end
381
+
382
+ class PathFilter
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ collection :regexes, as: 'regexes'
386
+ end
387
+ end
388
+
389
+ class PopulateVersionFilesRequest
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ hash :files, as: 'files'
393
+ end
394
+ end
395
+
396
+ class PopulateVersionFilesResponse
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ collection :upload_required_hashes, as: 'uploadRequiredHashes'
400
+ property :upload_url, as: 'uploadUrl'
401
+ end
402
+ end
403
+
404
+ class PreviewConfig
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :active, as: 'active'
408
+ property :expire_time, as: 'expireTime'
409
+ end
410
+ end
411
+
412
+ class Redirect
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :glob, as: 'glob'
416
+ property :location, as: 'location'
417
+ property :regex, as: 'regex'
418
+ property :status_code, as: 'statusCode'
419
+ end
420
+ end
421
+
422
+ class Release
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :message, as: 'message'
426
+ property :name, as: 'name'
427
+ property :release_time, as: 'releaseTime'
428
+ property :release_user, as: 'releaseUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
429
+
430
+ property :type, as: 'type'
431
+ property :version, as: 'version', class: Google::Apis::FirebasehostingV1beta1::Version, decorator: Google::Apis::FirebasehostingV1beta1::Version::Representation
432
+
433
+ end
434
+ end
435
+
436
+ class Rewrite
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :dynamic_links, as: 'dynamicLinks'
440
+ property :function, as: 'function'
441
+ property :glob, as: 'glob'
442
+ property :path, as: 'path'
443
+ property :regex, as: 'regex'
444
+ property :run, as: 'run', class: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite, decorator: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite::Representation
445
+
446
+ end
447
+ end
448
+
449
+ class ServingConfig
450
+ # @private
451
+ class Representation < Google::Apis::Core::JsonRepresentation
452
+ property :app_association, as: 'appAssociation'
453
+ property :clean_urls, as: 'cleanUrls'
454
+ collection :headers, as: 'headers', class: Google::Apis::FirebasehostingV1beta1::Header, decorator: Google::Apis::FirebasehostingV1beta1::Header::Representation
455
+
456
+ property :i18n, as: 'i18n', class: Google::Apis::FirebasehostingV1beta1::I18nConfig, decorator: Google::Apis::FirebasehostingV1beta1::I18nConfig::Representation
457
+
458
+ collection :redirects, as: 'redirects', class: Google::Apis::FirebasehostingV1beta1::Redirect, decorator: Google::Apis::FirebasehostingV1beta1::Redirect::Representation
459
+
460
+ collection :rewrites, as: 'rewrites', class: Google::Apis::FirebasehostingV1beta1::Rewrite, decorator: Google::Apis::FirebasehostingV1beta1::Rewrite::Representation
461
+
462
+ property :trailing_slash_behavior, as: 'trailingSlashBehavior'
463
+ end
464
+ end
465
+
466
+ class SiteConfig
467
+ # @private
468
+ class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :cloud_logging_enabled, as: 'cloudLoggingEnabled'
470
+ property :max_versions, :numeric_string => true, as: 'maxVersions'
471
+ end
472
+ end
473
+
474
+ class Status
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :code, as: 'code'
478
+ collection :details, as: 'details'
479
+ property :message, as: 'message'
480
+ end
481
+ end
482
+
483
+ class Version
484
+ # @private
485
+ class Representation < Google::Apis::Core::JsonRepresentation
486
+ property :config, as: 'config', class: Google::Apis::FirebasehostingV1beta1::ServingConfig, decorator: Google::Apis::FirebasehostingV1beta1::ServingConfig::Representation
487
+
488
+ property :create_time, as: 'createTime'
489
+ property :create_user, as: 'createUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
490
+
491
+ property :delete_time, as: 'deleteTime'
492
+ property :delete_user, as: 'deleteUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
493
+
494
+ property :file_count, :numeric_string => true, as: 'fileCount'
495
+ property :finalize_time, as: 'finalizeTime'
496
+ property :finalize_user, as: 'finalizeUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
497
+
498
+ hash :labels, as: 'labels'
499
+ property :name, as: 'name'
500
+ property :preview, as: 'preview', class: Google::Apis::FirebasehostingV1beta1::PreviewConfig, decorator: Google::Apis::FirebasehostingV1beta1::PreviewConfig::Representation
501
+
502
+ property :status, as: 'status'
503
+ property :version_bytes, :numeric_string => true, as: 'versionBytes'
504
+ end
505
+ end
506
+
507
+ class VersionFile
508
+ # @private
509
+ class Representation < Google::Apis::Core::JsonRepresentation
510
+ property :hash_prop, as: 'hash'
511
+ property :path, as: 'path'
512
+ property :status, as: 'status'
513
+ end
514
+ end
515
+ end
516
+ end
517
+ end