google-apis-firebasehosting_v1beta1 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -35,6 +35,8 @@ module Google
35
35
  #
36
36
  # @see https://firebase.google.com/docs/hosting/
37
37
  class FirebaseHostingService < Google::Apis::Core::BaseService
38
+ DEFAULT_ENDPOINT_TEMPLATE = "https://firebasehosting.$UNIVERSE_DOMAIN$/"
39
+
38
40
  # @return [String]
39
41
  # API key. Your API key identifies your project and provides you with API access,
40
42
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -46,7 +48,7 @@ module Google
46
48
  attr_accessor :quota_user
47
49
 
48
50
  def initialize
49
- super('https://firebasehosting.googleapis.com/', '',
51
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
52
  client_name: 'google-apis-firebasehosting_v1beta1',
51
53
  client_version: Google::Apis::FirebasehostingV1beta1::GEM_VERSION)
52
54
  @batch_path = 'batch'
@@ -648,6 +650,315 @@ module Google
648
650
  execute_or_queue_command(command, &block)
649
651
  end
650
652
 
653
+ # Creates a `CustomDomain`.
654
+ # @param [String] parent
655
+ # Required. The custom domain's parent, specifically a Firebase Hosting `Site`.
656
+ # @param [Google::Apis::FirebasehostingV1beta1::CustomDomain] custom_domain_object
657
+ # @param [String] custom_domain_id
658
+ # Required. The ID of the `CustomDomain`, which is the domain name you'd like to
659
+ # use with Firebase Hosting.
660
+ # @param [Boolean] validate_only
661
+ # If true, Hosting validates that it's possible to complete your request but
662
+ # doesn't actually create a new `CustomDomain`.
663
+ # @param [String] fields
664
+ # Selector specifying which fields to include in a partial response.
665
+ # @param [String] quota_user
666
+ # Available to use for quota purposes for server-side applications. Can be any
667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
668
+ # @param [Google::Apis::RequestOptions] options
669
+ # Request-specific options
670
+ #
671
+ # @yield [result, err] Result & error if block supplied
672
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
673
+ # @yieldparam err [StandardError] error object if request failed
674
+ #
675
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
676
+ #
677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
680
+ 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)
681
+ command = make_simple_command(:post, 'v1beta1/{+parent}/customDomains', options)
682
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
683
+ command.request_object = custom_domain_object
684
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
685
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
686
+ command.params['parent'] = parent unless parent.nil?
687
+ command.query['customDomainId'] = custom_domain_id unless custom_domain_id.nil?
688
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Deletes the specified `CustomDomain`.
695
+ # @param [String] name
696
+ # Required. The name of the `CustomDomain` to delete.
697
+ # @param [Boolean] allow_missing
698
+ # If true, the request succeeds even if the `CustomDomain` doesn't exist.
699
+ # @param [String] etag
700
+ # A tag that represents the state of the `CustomDomain` as you know it. If
701
+ # present, the supplied tag must match the current value on your `CustomDomain`,
702
+ # or the request fails.
703
+ # @param [Boolean] validate_only
704
+ # If true, Hosting validates that it's possible to complete your request but
705
+ # doesn't actually delete the `CustomDomain`.
706
+ # @param [String] fields
707
+ # Selector specifying which fields to include in a partial response.
708
+ # @param [String] quota_user
709
+ # Available to use for quota purposes for server-side applications. Can be any
710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
711
+ # @param [Google::Apis::RequestOptions] options
712
+ # Request-specific options
713
+ #
714
+ # @yield [result, err] Result & error if block supplied
715
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
716
+ # @yieldparam err [StandardError] error object if request failed
717
+ #
718
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
719
+ #
720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
723
+ def delete_project_site_custom_domain(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
724
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
725
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
726
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
727
+ command.params['name'] = name unless name.nil?
728
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
729
+ command.query['etag'] = etag unless etag.nil?
730
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
731
+ command.query['fields'] = fields unless fields.nil?
732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
733
+ execute_or_queue_command(command, &block)
734
+ end
735
+
736
+ # Gets the specified `CustomDomain`.
737
+ # @param [String] name
738
+ # Required. The name of the `CustomDomain` to get.
739
+ # @param [String] fields
740
+ # Selector specifying which fields to include in a partial response.
741
+ # @param [String] quota_user
742
+ # Available to use for quota purposes for server-side applications. Can be any
743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
744
+ # @param [Google::Apis::RequestOptions] options
745
+ # Request-specific options
746
+ #
747
+ # @yield [result, err] Result & error if block supplied
748
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::CustomDomain] parsed result object
749
+ # @yieldparam err [StandardError] error object if request failed
750
+ #
751
+ # @return [Google::Apis::FirebasehostingV1beta1::CustomDomain]
752
+ #
753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
756
+ def get_project_site_custom_domain(name, fields: nil, quota_user: nil, options: nil, &block)
757
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
758
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
759
+ command.response_class = Google::Apis::FirebasehostingV1beta1::CustomDomain
760
+ command.params['name'] = name unless name.nil?
761
+ command.query['fields'] = fields unless fields.nil?
762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
763
+ execute_or_queue_command(command, &block)
764
+ end
765
+
766
+ # Lists each `CustomDomain` associated with the specified parent Hosting site.
767
+ # Returns `CustomDomain`s in a consistent, but undefined, order to facilitate
768
+ # pagination.
769
+ # @param [String] parent
770
+ # Required. The Firebase Hosting `Site` with `CustomDomain` entities you'd like
771
+ # to list.
772
+ # @param [Fixnum] page_size
773
+ # The max number of `CustomDomain` entities to return in a request. Defaults to
774
+ # 10.
775
+ # @param [String] page_token
776
+ # A token from a previous call to `ListCustomDomains` that tells the server
777
+ # where to resume listing.
778
+ # @param [Boolean] show_deleted
779
+ # If true, the request returns soft-deleted `CustomDomain`s that haven't been
780
+ # fully-deleted yet. To restore deleted `CustomDomain`s, make an `
781
+ # UndeleteCustomDomain` request.
782
+ # @param [String] fields
783
+ # Selector specifying which fields to include in a partial response.
784
+ # @param [String] quota_user
785
+ # Available to use for quota purposes for server-side applications. Can be any
786
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
787
+ # @param [Google::Apis::RequestOptions] options
788
+ # Request-specific options
789
+ #
790
+ # @yield [result, err] Result & error if block supplied
791
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse] parsed result object
792
+ # @yieldparam err [StandardError] error object if request failed
793
+ #
794
+ # @return [Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse]
795
+ #
796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
799
+ def list_project_site_custom_domains(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
800
+ command = make_simple_command(:get, 'v1beta1/{+parent}/customDomains', options)
801
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse::Representation
802
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListCustomDomainsResponse
803
+ command.params['parent'] = parent unless parent.nil?
804
+ command.query['pageSize'] = page_size unless page_size.nil?
805
+ command.query['pageToken'] = page_token unless page_token.nil?
806
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
807
+ command.query['fields'] = fields unless fields.nil?
808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
809
+ execute_or_queue_command(command, &block)
810
+ end
811
+
812
+ # Updates the specified `CustomDomain`.
813
+ # @param [String] name
814
+ # Output only. The fully-qualified name of the `CustomDomain`.
815
+ # @param [Google::Apis::FirebasehostingV1beta1::CustomDomain] custom_domain_object
816
+ # @param [Boolean] allow_missing
817
+ # If true, Hosting creates the `CustomDomain` if it doesn't already exist.
818
+ # @param [String] update_mask
819
+ # The set of field names from your `CustomDomain` that you want to update. A
820
+ # field will be overwritten if, and only if, it's in the mask. If you don't
821
+ # provide a mask, Hosting updates the entire `CustomDomain`.
822
+ # @param [Boolean] validate_only
823
+ # If true, Hosting validates that it's possible to complete your request but
824
+ # doesn't actually create or update the `CustomDomain`.
825
+ # @param [String] fields
826
+ # Selector specifying which fields to include in a partial response.
827
+ # @param [String] quota_user
828
+ # Available to use for quota purposes for server-side applications. Can be any
829
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
830
+ # @param [Google::Apis::RequestOptions] options
831
+ # Request-specific options
832
+ #
833
+ # @yield [result, err] Result & error if block supplied
834
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
835
+ # @yieldparam err [StandardError] error object if request failed
836
+ #
837
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
838
+ #
839
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
842
+ 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)
843
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
844
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::CustomDomain::Representation
845
+ command.request_object = custom_domain_object
846
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
847
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
848
+ command.params['name'] = name unless name.nil?
849
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
850
+ command.query['updateMask'] = update_mask unless update_mask.nil?
851
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
852
+ command.query['fields'] = fields unless fields.nil?
853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
854
+ execute_or_queue_command(command, &block)
855
+ end
856
+
857
+ # Undeletes the specified `CustomDomain` if it has been soft-deleted. Hosting
858
+ # retains soft-deleted custom domains for around 30 days before permanently
859
+ # deleting them.
860
+ # @param [String] name
861
+ # Required. The name of the `CustomDomain` to delete.
862
+ # @param [Google::Apis::FirebasehostingV1beta1::UndeleteCustomDomainRequest] undelete_custom_domain_request_object
863
+ # @param [String] fields
864
+ # Selector specifying which fields to include in a partial response.
865
+ # @param [String] quota_user
866
+ # Available to use for quota purposes for server-side applications. Can be any
867
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
868
+ # @param [Google::Apis::RequestOptions] options
869
+ # Request-specific options
870
+ #
871
+ # @yield [result, err] Result & error if block supplied
872
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
873
+ # @yieldparam err [StandardError] error object if request failed
874
+ #
875
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
876
+ #
877
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
878
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
879
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
880
+ def undelete_custom_domain(name, undelete_custom_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
881
+ command = make_simple_command(:post, 'v1beta1/{+name}:undelete', options)
882
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::UndeleteCustomDomainRequest::Representation
883
+ command.request_object = undelete_custom_domain_request_object
884
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
885
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
886
+ command.params['name'] = name unless name.nil?
887
+ command.query['fields'] = fields unless fields.nil?
888
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
889
+ execute_or_queue_command(command, &block)
890
+ end
891
+
892
+ # Gets the latest state of a long-running operation. Use this method to poll the
893
+ # operation result at intervals as recommended by the API service.
894
+ # @param [String] name
895
+ # The name of the operation resource.
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
898
+ # @param [String] quota_user
899
+ # Available to use for quota purposes for server-side applications. Can be any
900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
901
+ # @param [Google::Apis::RequestOptions] options
902
+ # Request-specific options
903
+ #
904
+ # @yield [result, err] Result & error if block supplied
905
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
906
+ # @yieldparam err [StandardError] error object if request failed
907
+ #
908
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
909
+ #
910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
913
+ def get_project_site_custom_domain_operation(name, fields: nil, quota_user: nil, options: nil, &block)
914
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
915
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
916
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
917
+ command.params['name'] = name unless name.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # Lists operations that match the specified filter in the request.
924
+ # @param [String] name
925
+ # The name of the operation's parent resource.
926
+ # @param [String] filter
927
+ # The standard list filter.
928
+ # @param [Fixnum] page_size
929
+ # The standard list page size.
930
+ # @param [String] page_token
931
+ # The standard list page token.
932
+ # @param [String] fields
933
+ # Selector specifying which fields to include in a partial response.
934
+ # @param [String] quota_user
935
+ # Available to use for quota purposes for server-side applications. Can be any
936
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
937
+ # @param [Google::Apis::RequestOptions] options
938
+ # Request-specific options
939
+ #
940
+ # @yield [result, err] Result & error if block supplied
941
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListOperationsResponse] parsed result object
942
+ # @yieldparam err [StandardError] error object if request failed
943
+ #
944
+ # @return [Google::Apis::FirebasehostingV1beta1::ListOperationsResponse]
945
+ #
946
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
947
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
948
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
949
+ def list_project_site_custom_domain_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
950
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
951
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListOperationsResponse::Representation
952
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListOperationsResponse
953
+ command.params['name'] = name unless name.nil?
954
+ command.query['filter'] = filter unless filter.nil?
955
+ command.query['pageSize'] = page_size unless page_size.nil?
956
+ command.query['pageToken'] = page_token unless page_token.nil?
957
+ command.query['fields'] = fields unless fields.nil?
958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
651
962
  # Creates a domain mapping on the specified site.
652
963
  # @param [String] parent
653
964
  # Required. The parent to create the domain association for, in the format: