google-apis-firebasehosting_v1beta1 0.24.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/firebasehosting_v1beta1/classes.rb +598 -0
- data/lib/google/apis/firebasehosting_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/firebasehosting_v1beta1/representations.rb +219 -0
- data/lib/google/apis/firebasehosting_v1beta1/service.rb +314 -1
- metadata +4 -4
@@ -40,6 +40,18 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class CertVerification
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Certificate
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class Channel
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
@@ -58,6 +70,36 @@ module Google
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
59
71
|
end
|
60
72
|
|
73
|
+
class CustomDomain
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class CustomDomainMetadata
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class DnsRecord
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class DnsRecordSet
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class DnsUpdates
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
61
103
|
class Domain
|
62
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
105
|
|
@@ -88,6 +130,12 @@ module Google
|
|
88
130
|
include Google::Apis::Core::JsonObjectSupport
|
89
131
|
end
|
90
132
|
|
133
|
+
class HttpUpdate
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
91
139
|
class I18nConfig
|
92
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
141
|
|
@@ -100,12 +148,24 @@ module Google
|
|
100
148
|
include Google::Apis::Core::JsonObjectSupport
|
101
149
|
end
|
102
150
|
|
151
|
+
class ListCustomDomainsResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
103
157
|
class ListDomainsResponse
|
104
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
159
|
|
106
160
|
include Google::Apis::Core::JsonObjectSupport
|
107
161
|
end
|
108
162
|
|
163
|
+
class ListOperationsResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
109
169
|
class ListReleasesResponse
|
110
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
171
|
|
@@ -130,6 +190,12 @@ module Google
|
|
130
190
|
include Google::Apis::Core::JsonObjectSupport
|
131
191
|
end
|
132
192
|
|
193
|
+
class LiveMigrationStep
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
133
199
|
class Operation
|
134
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
201
|
|
@@ -196,6 +262,12 @@ module Google
|
|
196
262
|
include Google::Apis::Core::JsonObjectSupport
|
197
263
|
end
|
198
264
|
|
265
|
+
class UndeleteCustomDomainRequest
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
199
271
|
class Version
|
200
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
273
|
|
@@ -232,6 +304,30 @@ module Google
|
|
232
304
|
end
|
233
305
|
end
|
234
306
|
|
307
|
+
class CertVerification
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :dns, as: 'dns', class: Google::Apis::FirebasehostingV1beta1::DnsUpdates, decorator: Google::Apis::FirebasehostingV1beta1::DnsUpdates::Representation
|
311
|
+
|
312
|
+
property :http, as: 'http', class: Google::Apis::FirebasehostingV1beta1::HttpUpdate, decorator: Google::Apis::FirebasehostingV1beta1::HttpUpdate::Representation
|
313
|
+
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
class Certificate
|
318
|
+
# @private
|
319
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
320
|
+
property :create_time, as: 'createTime'
|
321
|
+
property :expire_time, as: 'expireTime'
|
322
|
+
collection :issues, as: 'issues', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
323
|
+
|
324
|
+
property :state, as: 'state'
|
325
|
+
property :type, as: 'type'
|
326
|
+
property :verification, as: 'verification', class: Google::Apis::FirebasehostingV1beta1::CertVerification, decorator: Google::Apis::FirebasehostingV1beta1::CertVerification::Representation
|
327
|
+
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
235
331
|
class Channel
|
236
332
|
# @private
|
237
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -269,6 +365,78 @@ module Google
|
|
269
365
|
end
|
270
366
|
end
|
271
367
|
|
368
|
+
class CustomDomain
|
369
|
+
# @private
|
370
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
371
|
+
hash :annotations, as: 'annotations'
|
372
|
+
property :cert, as: 'cert', class: Google::Apis::FirebasehostingV1beta1::Certificate, decorator: Google::Apis::FirebasehostingV1beta1::Certificate::Representation
|
373
|
+
|
374
|
+
property :cert_preference, as: 'certPreference'
|
375
|
+
property :create_time, as: 'createTime'
|
376
|
+
property :delete_time, as: 'deleteTime'
|
377
|
+
property :etag, as: 'etag'
|
378
|
+
property :expire_time, as: 'expireTime'
|
379
|
+
property :host_state, as: 'hostState'
|
380
|
+
collection :issues, as: 'issues', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
381
|
+
|
382
|
+
hash :labels, as: 'labels'
|
383
|
+
property :name, as: 'name'
|
384
|
+
property :ownership_state, as: 'ownershipState'
|
385
|
+
property :reconciling, as: 'reconciling'
|
386
|
+
property :redirect_target, as: 'redirectTarget'
|
387
|
+
property :required_dns_updates, as: 'requiredDnsUpdates', class: Google::Apis::FirebasehostingV1beta1::DnsUpdates, decorator: Google::Apis::FirebasehostingV1beta1::DnsUpdates::Representation
|
388
|
+
|
389
|
+
property :update_time, as: 'updateTime'
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
class CustomDomainMetadata
|
394
|
+
# @private
|
395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
396
|
+
property :cert_state, as: 'certState'
|
397
|
+
property :host_state, as: 'hostState'
|
398
|
+
collection :issues, as: 'issues', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
399
|
+
|
400
|
+
collection :live_migration_steps, as: 'liveMigrationSteps', class: Google::Apis::FirebasehostingV1beta1::LiveMigrationStep, decorator: Google::Apis::FirebasehostingV1beta1::LiveMigrationStep::Representation
|
401
|
+
|
402
|
+
property :ownership_state, as: 'ownershipState'
|
403
|
+
property :quick_setup_updates, as: 'quickSetupUpdates', class: Google::Apis::FirebasehostingV1beta1::DnsUpdates, decorator: Google::Apis::FirebasehostingV1beta1::DnsUpdates::Representation
|
404
|
+
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
class DnsRecord
|
409
|
+
# @private
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
411
|
+
property :domain_name, as: 'domainName'
|
412
|
+
property :rdata, as: 'rdata'
|
413
|
+
property :required_action, as: 'requiredAction'
|
414
|
+
property :type, as: 'type'
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
class DnsRecordSet
|
419
|
+
# @private
|
420
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
421
|
+
property :check_error, as: 'checkError', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
422
|
+
|
423
|
+
property :domain_name, as: 'domainName'
|
424
|
+
collection :records, as: 'records', class: Google::Apis::FirebasehostingV1beta1::DnsRecord, decorator: Google::Apis::FirebasehostingV1beta1::DnsRecord::Representation
|
425
|
+
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
429
|
+
class DnsUpdates
|
430
|
+
# @private
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
property :check_time, as: 'checkTime'
|
433
|
+
collection :desired, as: 'desired', class: Google::Apis::FirebasehostingV1beta1::DnsRecordSet, decorator: Google::Apis::FirebasehostingV1beta1::DnsRecordSet::Representation
|
434
|
+
|
435
|
+
collection :discovered, as: 'discovered', class: Google::Apis::FirebasehostingV1beta1::DnsRecordSet, decorator: Google::Apis::FirebasehostingV1beta1::DnsRecordSet::Representation
|
436
|
+
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
272
440
|
class Domain
|
273
441
|
# @private
|
274
442
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -322,6 +490,18 @@ module Google
|
|
322
490
|
end
|
323
491
|
end
|
324
492
|
|
493
|
+
class HttpUpdate
|
494
|
+
# @private
|
495
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
496
|
+
property :check_error, as: 'checkError', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
497
|
+
|
498
|
+
property :desired, as: 'desired'
|
499
|
+
property :discovered, as: 'discovered'
|
500
|
+
property :last_check_time, as: 'lastCheckTime'
|
501
|
+
property :path, as: 'path'
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
325
505
|
class I18nConfig
|
326
506
|
# @private
|
327
507
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -338,6 +518,15 @@ module Google
|
|
338
518
|
end
|
339
519
|
end
|
340
520
|
|
521
|
+
class ListCustomDomainsResponse
|
522
|
+
# @private
|
523
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
524
|
+
collection :custom_domains, as: 'customDomains', class: Google::Apis::FirebasehostingV1beta1::CustomDomain, decorator: Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
|
525
|
+
|
526
|
+
property :next_page_token, as: 'nextPageToken'
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
341
530
|
class ListDomainsResponse
|
342
531
|
# @private
|
343
532
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -347,6 +536,15 @@ module Google
|
|
347
536
|
end
|
348
537
|
end
|
349
538
|
|
539
|
+
class ListOperationsResponse
|
540
|
+
# @private
|
541
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
542
|
+
property :next_page_token, as: 'nextPageToken'
|
543
|
+
collection :operations, as: 'operations', class: Google::Apis::FirebasehostingV1beta1::Operation, decorator: Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
544
|
+
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
350
548
|
class ListReleasesResponse
|
351
549
|
# @private
|
352
550
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -383,6 +581,19 @@ module Google
|
|
383
581
|
end
|
384
582
|
end
|
385
583
|
|
584
|
+
class LiveMigrationStep
|
585
|
+
# @private
|
586
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
587
|
+
property :cert_verification, as: 'certVerification', class: Google::Apis::FirebasehostingV1beta1::CertVerification, decorator: Google::Apis::FirebasehostingV1beta1::CertVerification::Representation
|
588
|
+
|
589
|
+
property :dns_updates, as: 'dnsUpdates', class: Google::Apis::FirebasehostingV1beta1::DnsUpdates, decorator: Google::Apis::FirebasehostingV1beta1::DnsUpdates::Representation
|
590
|
+
|
591
|
+
collection :issues, as: 'issues', class: Google::Apis::FirebasehostingV1beta1::Status, decorator: Google::Apis::FirebasehostingV1beta1::Status::Representation
|
592
|
+
|
593
|
+
property :state, as: 'state'
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
386
597
|
class Operation
|
387
598
|
# @private
|
388
599
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -500,6 +711,14 @@ module Google
|
|
500
711
|
end
|
501
712
|
end
|
502
713
|
|
714
|
+
class UndeleteCustomDomainRequest
|
715
|
+
# @private
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
717
|
+
property :etag, as: 'etag'
|
718
|
+
property :validate_only, as: 'validateOnly'
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
503
722
|
class Version
|
504
723
|
# @private
|
505
724
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -94,6 +94,9 @@ module Google
|
|
94
94
|
# Required. Immutable. A globally unique identifier for the Hosting site. This
|
95
95
|
# identifier is used to construct the Firebase-provisioned subdomains for the
|
96
96
|
# site, so it must also be a valid domain name label.
|
97
|
+
# @param [Boolean] validate_only
|
98
|
+
# Optional. If set, validates that the site_id is available and that the request
|
99
|
+
# would succeed, returning the expected resulting site or error.
|
97
100
|
# @param [String] fields
|
98
101
|
# Selector specifying which fields to include in a partial response.
|
99
102
|
# @param [String] quota_user
|
@@ -111,7 +114,7 @@ module Google
|
|
111
114
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
115
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
116
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
-
def create_project_site(parent, site_object = nil, site_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
def create_project_site(parent, site_object = nil, site_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
118
|
command = make_simple_command(:post, 'v1beta1/{+parent}/sites', options)
|
116
119
|
command.request_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
|
117
120
|
command.request_object = site_object
|
@@ -119,6 +122,7 @@ module Google
|
|
119
122
|
command.response_class = Google::Apis::FirebasehostingV1beta1::Site
|
120
123
|
command.params['parent'] = parent unless parent.nil?
|
121
124
|
command.query['siteId'] = site_id unless site_id.nil?
|
125
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
122
126
|
command.query['fields'] = fields unless fields.nil?
|
123
127
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
128
|
execute_or_queue_command(command, &block)
|
@@ -644,6 +648,315 @@ module Google
|
|
644
648
|
execute_or_queue_command(command, &block)
|
645
649
|
end
|
646
650
|
|
651
|
+
# Creates a `CustomDomain`.
|
652
|
+
# @param [String] parent
|
653
|
+
# Required. The custom domain's parent, specifically a Firebase Hosting `Site`.
|
654
|
+
# @param [Google::Apis::FirebasehostingV1beta1::CustomDomain] custom_domain_object
|
655
|
+
# @param [String] custom_domain_id
|
656
|
+
# Required. The ID of the `CustomDomain`, which is the domain name you'd like to
|
657
|
+
# use with Firebase Hosting.
|
658
|
+
# @param [Boolean] validate_only
|
659
|
+
# If true, Hosting validates that it's possible to complete your request but
|
660
|
+
# doesn't actually create a new `CustomDomain`.
|
661
|
+
# @param [String] fields
|
662
|
+
# Selector specifying which fields to include in a partial response.
|
663
|
+
# @param [String] quota_user
|
664
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
665
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
666
|
+
# @param [Google::Apis::RequestOptions] options
|
667
|
+
# Request-specific options
|
668
|
+
#
|
669
|
+
# @yield [result, err] Result & error if block supplied
|
670
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
|
671
|
+
# @yieldparam err [StandardError] error object if request failed
|
672
|
+
#
|
673
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Operation]
|
674
|
+
#
|
675
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
676
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
677
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
678
|
+
def create_project_site_custom_domain(parent, custom_domain_object = nil, custom_domain_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
679
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/customDomains', options)
|
680
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
|
681
|
+
command.request_object = custom_domain_object
|
682
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
683
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
|
684
|
+
command.params['parent'] = parent unless parent.nil?
|
685
|
+
command.query['customDomainId'] = custom_domain_id unless custom_domain_id.nil?
|
686
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
687
|
+
command.query['fields'] = fields unless fields.nil?
|
688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
689
|
+
execute_or_queue_command(command, &block)
|
690
|
+
end
|
691
|
+
|
692
|
+
# Deletes the specified `CustomDomain`.
|
693
|
+
# @param [String] name
|
694
|
+
# Required. The name of the `CustomDomain` to delete.
|
695
|
+
# @param [Boolean] allow_missing
|
696
|
+
# If true, the request succeeds even if the `CustomDomain` doesn't exist.
|
697
|
+
# @param [String] etag
|
698
|
+
# A tag that represents the state of the `CustomDomain` as you know it. If
|
699
|
+
# present, the supplied tag must match the current value on your `CustomDomain`,
|
700
|
+
# or the request fails.
|
701
|
+
# @param [Boolean] validate_only
|
702
|
+
# If true, Hosting validates that it's possible to complete your request but
|
703
|
+
# doesn't actually delete the `CustomDomain`.
|
704
|
+
# @param [String] fields
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
706
|
+
# @param [String] quota_user
|
707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
709
|
+
# @param [Google::Apis::RequestOptions] options
|
710
|
+
# Request-specific options
|
711
|
+
#
|
712
|
+
# @yield [result, err] Result & error if block supplied
|
713
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
|
714
|
+
# @yieldparam err [StandardError] error object if request failed
|
715
|
+
#
|
716
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Operation]
|
717
|
+
#
|
718
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
719
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
720
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
721
|
+
def delete_project_site_custom_domain(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
722
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
723
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
724
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
|
725
|
+
command.params['name'] = name unless name.nil?
|
726
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
727
|
+
command.query['etag'] = etag unless etag.nil?
|
728
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
729
|
+
command.query['fields'] = fields unless fields.nil?
|
730
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
731
|
+
execute_or_queue_command(command, &block)
|
732
|
+
end
|
733
|
+
|
734
|
+
# Gets the specified `CustomDomain`.
|
735
|
+
# @param [String] name
|
736
|
+
# Required. The name of the `CustomDomain` to get.
|
737
|
+
# @param [String] fields
|
738
|
+
# Selector specifying which fields to include in a partial response.
|
739
|
+
# @param [String] quota_user
|
740
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
741
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
742
|
+
# @param [Google::Apis::RequestOptions] options
|
743
|
+
# Request-specific options
|
744
|
+
#
|
745
|
+
# @yield [result, err] Result & error if block supplied
|
746
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::CustomDomain] parsed result object
|
747
|
+
# @yieldparam err [StandardError] error object if request failed
|
748
|
+
#
|
749
|
+
# @return [Google::Apis::FirebasehostingV1beta1::CustomDomain]
|
750
|
+
#
|
751
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
752
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
753
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
754
|
+
def get_project_site_custom_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
755
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
756
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
|
757
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::CustomDomain
|
758
|
+
command.params['name'] = name unless name.nil?
|
759
|
+
command.query['fields'] = fields unless fields.nil?
|
760
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
761
|
+
execute_or_queue_command(command, &block)
|
762
|
+
end
|
763
|
+
|
764
|
+
# Lists each `CustomDomain` associated with the specified parent Hosting site.
|
765
|
+
# Returns `CustomDomain`s in a consistent, but undefined, order to facilitate
|
766
|
+
# pagination.
|
767
|
+
# @param [String] parent
|
768
|
+
# Required. The Firebase Hosting `Site` with `CustomDomain` entities you'd like
|
769
|
+
# to list.
|
770
|
+
# @param [Fixnum] page_size
|
771
|
+
# The max number of `CustomDomain` entities to return in a request. Defaults to
|
772
|
+
# 10.
|
773
|
+
# @param [String] page_token
|
774
|
+
# A token from a previous call to `ListCustomDomains` that tells the server
|
775
|
+
# where to resume listing.
|
776
|
+
# @param [Boolean] show_deleted
|
777
|
+
# If true, the request returns soft-deleted `CustomDomain`s that haven't been
|
778
|
+
# fully-deleted yet. To restore deleted `CustomDomain`s, make an `
|
779
|
+
# UndeleteCustomDomain` request.
|
780
|
+
# @param [String] fields
|
781
|
+
# Selector specifying which fields to include in a partial response.
|
782
|
+
# @param [String] quota_user
|
783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
785
|
+
# @param [Google::Apis::RequestOptions] options
|
786
|
+
# Request-specific options
|
787
|
+
#
|
788
|
+
# @yield [result, err] Result & error if block supplied
|
789
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse] parsed result object
|
790
|
+
# @yieldparam err [StandardError] error object if request failed
|
791
|
+
#
|
792
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse]
|
793
|
+
#
|
794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
797
|
+
def list_project_site_custom_domains(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
798
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/customDomains', options)
|
799
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse::Representation
|
800
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse
|
801
|
+
command.params['parent'] = parent unless parent.nil?
|
802
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
803
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
804
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
805
|
+
command.query['fields'] = fields unless fields.nil?
|
806
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
807
|
+
execute_or_queue_command(command, &block)
|
808
|
+
end
|
809
|
+
|
810
|
+
# Updates the specified `CustomDomain`.
|
811
|
+
# @param [String] name
|
812
|
+
# Output only. The fully-qualified name of the `CustomDomain`.
|
813
|
+
# @param [Google::Apis::FirebasehostingV1beta1::CustomDomain] custom_domain_object
|
814
|
+
# @param [Boolean] allow_missing
|
815
|
+
# If true, Hosting creates the `CustomDomain` if it doesn't already exist.
|
816
|
+
# @param [String] update_mask
|
817
|
+
# The set of field names from your `CustomDomain` that you want to update. A
|
818
|
+
# field will be overwritten if, and only if, it's in the mask. If you don't
|
819
|
+
# provide a mask, Hosting updates the entire `CustomDomain`.
|
820
|
+
# @param [Boolean] validate_only
|
821
|
+
# If true, Hosting validates that it's possible to complete your request but
|
822
|
+
# doesn't actually create or update the `CustomDomain`.
|
823
|
+
# @param [String] fields
|
824
|
+
# Selector specifying which fields to include in a partial response.
|
825
|
+
# @param [String] quota_user
|
826
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
827
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
828
|
+
# @param [Google::Apis::RequestOptions] options
|
829
|
+
# Request-specific options
|
830
|
+
#
|
831
|
+
# @yield [result, err] Result & error if block supplied
|
832
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
|
833
|
+
# @yieldparam err [StandardError] error object if request failed
|
834
|
+
#
|
835
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Operation]
|
836
|
+
#
|
837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
840
|
+
def patch_project_site_custom_domain(name, custom_domain_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
841
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
842
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
|
843
|
+
command.request_object = custom_domain_object
|
844
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
845
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
|
846
|
+
command.params['name'] = name unless name.nil?
|
847
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
848
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
849
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
850
|
+
command.query['fields'] = fields unless fields.nil?
|
851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
852
|
+
execute_or_queue_command(command, &block)
|
853
|
+
end
|
854
|
+
|
855
|
+
# Undeletes the specified `CustomDomain` if it has been soft-deleted. Hosting
|
856
|
+
# retains soft-deleted custom domains for around 30 days before permanently
|
857
|
+
# deleting them.
|
858
|
+
# @param [String] name
|
859
|
+
# Required. The name of the `CustomDomain` to delete.
|
860
|
+
# @param [Google::Apis::FirebasehostingV1beta1::UndeleteCustomDomainRequest] undelete_custom_domain_request_object
|
861
|
+
# @param [String] fields
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
863
|
+
# @param [String] quota_user
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Operation]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def undelete_custom_domain(name, undelete_custom_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:undelete', options)
|
880
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::UndeleteCustomDomainRequest::Representation
|
881
|
+
command.request_object = undelete_custom_domain_request_object
|
882
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
883
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
|
884
|
+
command.params['name'] = name unless name.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
889
|
+
|
890
|
+
# Gets the latest state of a long-running operation. Use this method to poll the
|
891
|
+
# operation result at intervals as recommended by the API service.
|
892
|
+
# @param [String] name
|
893
|
+
# The name of the operation resource.
|
894
|
+
# @param [String] fields
|
895
|
+
# Selector specifying which fields to include in a partial response.
|
896
|
+
# @param [String] quota_user
|
897
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
898
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
899
|
+
# @param [Google::Apis::RequestOptions] options
|
900
|
+
# Request-specific options
|
901
|
+
#
|
902
|
+
# @yield [result, err] Result & error if block supplied
|
903
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
|
904
|
+
# @yieldparam err [StandardError] error object if request failed
|
905
|
+
#
|
906
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Operation]
|
907
|
+
#
|
908
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
909
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
910
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
911
|
+
def get_project_site_custom_domain_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
912
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
913
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
|
914
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
|
915
|
+
command.params['name'] = name unless name.nil?
|
916
|
+
command.query['fields'] = fields unless fields.nil?
|
917
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
918
|
+
execute_or_queue_command(command, &block)
|
919
|
+
end
|
920
|
+
|
921
|
+
# Lists operations that match the specified filter in the request.
|
922
|
+
# @param [String] name
|
923
|
+
# The name of the operation's parent resource.
|
924
|
+
# @param [String] filter
|
925
|
+
# The standard list filter.
|
926
|
+
# @param [Fixnum] page_size
|
927
|
+
# The standard list page size.
|
928
|
+
# @param [String] page_token
|
929
|
+
# The standard list page token.
|
930
|
+
# @param [String] fields
|
931
|
+
# Selector specifying which fields to include in a partial response.
|
932
|
+
# @param [String] quota_user
|
933
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
934
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
935
|
+
# @param [Google::Apis::RequestOptions] options
|
936
|
+
# Request-specific options
|
937
|
+
#
|
938
|
+
# @yield [result, err] Result & error if block supplied
|
939
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListOperationsResponse] parsed result object
|
940
|
+
# @yieldparam err [StandardError] error object if request failed
|
941
|
+
#
|
942
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ListOperationsResponse]
|
943
|
+
#
|
944
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
945
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
946
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
947
|
+
def list_project_site_custom_domain_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
948
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
949
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListOperationsResponse::Representation
|
950
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::ListOperationsResponse
|
951
|
+
command.params['name'] = name unless name.nil?
|
952
|
+
command.query['filter'] = filter unless filter.nil?
|
953
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
954
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
955
|
+
command.query['fields'] = fields unless fields.nil?
|
956
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
957
|
+
execute_or_queue_command(command, &block)
|
958
|
+
end
|
959
|
+
|
647
960
|
# Creates a domain mapping on the specified site.
|
648
961
|
# @param [String] parent
|
649
962
|
# Required. The parent to create the domain association for, in the format:
|