google-cloud-domains-v1beta1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/domains/v1beta1/domains/client.rb +363 -45
- data/lib/google/cloud/domains/v1beta1/domains/operations.rb +118 -12
- data/lib/google/cloud/domains/v1beta1/domains_pb.rb +2 -1
- data/lib/google/cloud/domains/v1beta1/version.rb +1 -1
- data/lib/google/cloud/domains/v1beta1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e46f358019581c22d6b01c7dd50d942cd8bcfbb5ff2cd4db208b66cbcbd19892
|
4
|
+
data.tar.gz: c78b6d0780de5419faa64e6ef1f2e28a2d176870371e316a562158f72e183deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a1ef380b996f110705a10b7e79bdf40f21678f3cfe316b6913901bc1f14a6d646c01bb6a1c3facb238e06a7957f67fb872eb1e86a1b42f07044bf2be556ef1
|
7
|
+
data.tar.gz: 2dfdd1a5212bf73b34548dc323d7e6c7271b5cee4409501c569e2f4ac79cca36b25fb467124e8198be6186e2ef90162093c06243ac1dbb57e2a2840d8fb5493a
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Domains::V1beta1::SearchDomainsRequest.new # (request
|
|
37
37
|
response = client.search_domains request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/domains)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -135,6 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
@operations_client = Operations.new do |config|
|
137
137
|
config.credentials = credentials
|
138
|
+
config.quota_project = @quota_project_id
|
138
139
|
config.endpoint = @config.endpoint
|
139
140
|
end
|
140
141
|
|
@@ -191,6 +192,21 @@ module Google
|
|
191
192
|
#
|
192
193
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
193
194
|
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/domains/v1beta1"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::Domains::V1beta1::SearchDomainsRequest.new
|
203
|
+
#
|
204
|
+
# # Call the search_domains method.
|
205
|
+
# result = client.search_domains request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::SearchDomainsResponse.
|
208
|
+
# p result
|
209
|
+
#
|
194
210
|
def search_domains request, options = nil
|
195
211
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
196
212
|
|
@@ -208,9 +224,11 @@ module Google
|
|
208
224
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
209
225
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
210
226
|
|
211
|
-
header_params = {
|
212
|
-
|
213
|
-
|
227
|
+
header_params = {}
|
228
|
+
if request.location
|
229
|
+
header_params["location"] = request.location
|
230
|
+
end
|
231
|
+
|
214
232
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
215
233
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
216
234
|
|
@@ -262,6 +280,21 @@ module Google
|
|
262
280
|
#
|
263
281
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
264
282
|
#
|
283
|
+
# @example Basic example
|
284
|
+
# require "google/cloud/domains/v1beta1"
|
285
|
+
#
|
286
|
+
# # Create a client object. The client can be reused for multiple calls.
|
287
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
288
|
+
#
|
289
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
290
|
+
# request = Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest.new
|
291
|
+
#
|
292
|
+
# # Call the retrieve_register_parameters method.
|
293
|
+
# result = client.retrieve_register_parameters request
|
294
|
+
#
|
295
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse.
|
296
|
+
# p result
|
297
|
+
#
|
265
298
|
def retrieve_register_parameters request, options = nil
|
266
299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
267
300
|
|
@@ -279,9 +312,11 @@ module Google
|
|
279
312
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
280
313
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
281
314
|
|
282
|
-
header_params = {
|
283
|
-
|
284
|
-
|
315
|
+
header_params = {}
|
316
|
+
if request.location
|
317
|
+
header_params["location"] = request.location
|
318
|
+
end
|
319
|
+
|
285
320
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
286
321
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
287
322
|
|
@@ -360,6 +395,28 @@ module Google
|
|
360
395
|
#
|
361
396
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
362
397
|
#
|
398
|
+
# @example Basic example
|
399
|
+
# require "google/cloud/domains/v1beta1"
|
400
|
+
#
|
401
|
+
# # Create a client object. The client can be reused for multiple calls.
|
402
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
403
|
+
#
|
404
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
405
|
+
# request = Google::Cloud::Domains::V1beta1::RegisterDomainRequest.new
|
406
|
+
#
|
407
|
+
# # Call the register_domain method.
|
408
|
+
# result = client.register_domain request
|
409
|
+
#
|
410
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
411
|
+
# # object to check the status of an operation, cancel it, or wait
|
412
|
+
# # for results. Here is how to block until completion:
|
413
|
+
# result.wait_until_done! timeout: 60
|
414
|
+
# if result.response?
|
415
|
+
# p result.response
|
416
|
+
# else
|
417
|
+
# puts "Error!"
|
418
|
+
# end
|
419
|
+
#
|
363
420
|
def register_domain request, options = nil
|
364
421
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
365
422
|
|
@@ -377,9 +434,11 @@ module Google
|
|
377
434
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
378
435
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
379
436
|
|
380
|
-
header_params = {
|
381
|
-
|
382
|
-
|
437
|
+
header_params = {}
|
438
|
+
if request.parent
|
439
|
+
header_params["parent"] = request.parent
|
440
|
+
end
|
441
|
+
|
383
442
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
384
443
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
385
444
|
|
@@ -436,6 +495,21 @@ module Google
|
|
436
495
|
#
|
437
496
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
438
497
|
#
|
498
|
+
# @example Basic example
|
499
|
+
# require "google/cloud/domains/v1beta1"
|
500
|
+
#
|
501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
502
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
503
|
+
#
|
504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
505
|
+
# request = Google::Cloud::Domains::V1beta1::RetrieveTransferParametersRequest.new
|
506
|
+
#
|
507
|
+
# # Call the retrieve_transfer_parameters method.
|
508
|
+
# result = client.retrieve_transfer_parameters request
|
509
|
+
#
|
510
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponse.
|
511
|
+
# p result
|
512
|
+
#
|
439
513
|
def retrieve_transfer_parameters request, options = nil
|
440
514
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
515
|
|
@@ -453,9 +527,11 @@ module Google
|
|
453
527
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
454
528
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
529
|
|
456
|
-
header_params = {
|
457
|
-
|
458
|
-
|
530
|
+
header_params = {}
|
531
|
+
if request.location
|
532
|
+
header_params["location"] = request.location
|
533
|
+
end
|
534
|
+
|
459
535
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
460
536
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
461
537
|
|
@@ -546,6 +622,28 @@ module Google
|
|
546
622
|
#
|
547
623
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
548
624
|
#
|
625
|
+
# @example Basic example
|
626
|
+
# require "google/cloud/domains/v1beta1"
|
627
|
+
#
|
628
|
+
# # Create a client object. The client can be reused for multiple calls.
|
629
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
630
|
+
#
|
631
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
632
|
+
# request = Google::Cloud::Domains::V1beta1::TransferDomainRequest.new
|
633
|
+
#
|
634
|
+
# # Call the transfer_domain method.
|
635
|
+
# result = client.transfer_domain request
|
636
|
+
#
|
637
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
638
|
+
# # object to check the status of an operation, cancel it, or wait
|
639
|
+
# # for results. Here is how to block until completion:
|
640
|
+
# result.wait_until_done! timeout: 60
|
641
|
+
# if result.response?
|
642
|
+
# p result.response
|
643
|
+
# else
|
644
|
+
# puts "Error!"
|
645
|
+
# end
|
646
|
+
#
|
549
647
|
def transfer_domain request, options = nil
|
550
648
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
649
|
|
@@ -563,9 +661,11 @@ module Google
|
|
563
661
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
564
662
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
565
663
|
|
566
|
-
header_params = {
|
567
|
-
|
568
|
-
|
664
|
+
header_params = {}
|
665
|
+
if request.parent
|
666
|
+
header_params["parent"] = request.parent
|
667
|
+
end
|
668
|
+
|
569
669
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
570
670
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
571
671
|
|
@@ -638,6 +738,27 @@ module Google
|
|
638
738
|
#
|
639
739
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
640
740
|
#
|
741
|
+
# @example Basic example
|
742
|
+
# require "google/cloud/domains/v1beta1"
|
743
|
+
#
|
744
|
+
# # Create a client object. The client can be reused for multiple calls.
|
745
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
746
|
+
#
|
747
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
748
|
+
# request = Google::Cloud::Domains::V1beta1::ListRegistrationsRequest.new
|
749
|
+
#
|
750
|
+
# # Call the list_registrations method.
|
751
|
+
# result = client.list_registrations request
|
752
|
+
#
|
753
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
754
|
+
# # iterate over all elements by calling #each, and the enumerable
|
755
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
756
|
+
# # methods are also available for managing paging directly.
|
757
|
+
# result.each do |response|
|
758
|
+
# # Each element is of type ::Google::Cloud::Domains::V1beta1::Registration.
|
759
|
+
# p response
|
760
|
+
# end
|
761
|
+
#
|
641
762
|
def list_registrations request, options = nil
|
642
763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
643
764
|
|
@@ -655,9 +776,11 @@ module Google
|
|
655
776
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
656
777
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
657
778
|
|
658
|
-
header_params = {
|
659
|
-
|
660
|
-
|
779
|
+
header_params = {}
|
780
|
+
if request.parent
|
781
|
+
header_params["parent"] = request.parent
|
782
|
+
end
|
783
|
+
|
661
784
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
662
785
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
663
786
|
|
@@ -708,6 +831,21 @@ module Google
|
|
708
831
|
#
|
709
832
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
710
833
|
#
|
834
|
+
# @example Basic example
|
835
|
+
# require "google/cloud/domains/v1beta1"
|
836
|
+
#
|
837
|
+
# # Create a client object. The client can be reused for multiple calls.
|
838
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
839
|
+
#
|
840
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
841
|
+
# request = Google::Cloud::Domains::V1beta1::GetRegistrationRequest.new
|
842
|
+
#
|
843
|
+
# # Call the get_registration method.
|
844
|
+
# result = client.get_registration request
|
845
|
+
#
|
846
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::Registration.
|
847
|
+
# p result
|
848
|
+
#
|
711
849
|
def get_registration request, options = nil
|
712
850
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
713
851
|
|
@@ -725,9 +863,11 @@ module Google
|
|
725
863
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
726
864
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
727
865
|
|
728
|
-
header_params = {
|
729
|
-
|
730
|
-
|
866
|
+
header_params = {}
|
867
|
+
if request.name
|
868
|
+
header_params["name"] = request.name
|
869
|
+
end
|
870
|
+
|
731
871
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
732
872
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
733
873
|
|
@@ -785,6 +925,28 @@ module Google
|
|
785
925
|
#
|
786
926
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
787
927
|
#
|
928
|
+
# @example Basic example
|
929
|
+
# require "google/cloud/domains/v1beta1"
|
930
|
+
#
|
931
|
+
# # Create a client object. The client can be reused for multiple calls.
|
932
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
933
|
+
#
|
934
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
935
|
+
# request = Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest.new
|
936
|
+
#
|
937
|
+
# # Call the update_registration method.
|
938
|
+
# result = client.update_registration request
|
939
|
+
#
|
940
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
941
|
+
# # object to check the status of an operation, cancel it, or wait
|
942
|
+
# # for results. Here is how to block until completion:
|
943
|
+
# result.wait_until_done! timeout: 60
|
944
|
+
# if result.response?
|
945
|
+
# p result.response
|
946
|
+
# else
|
947
|
+
# puts "Error!"
|
948
|
+
# end
|
949
|
+
#
|
788
950
|
def update_registration request, options = nil
|
789
951
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
790
952
|
|
@@ -802,9 +964,11 @@ module Google
|
|
802
964
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
803
965
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
804
966
|
|
805
|
-
header_params = {
|
806
|
-
|
807
|
-
|
967
|
+
header_params = {}
|
968
|
+
if request.registration&.name
|
969
|
+
header_params["registration.name"] = request.registration.name
|
970
|
+
end
|
971
|
+
|
808
972
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
809
973
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
810
974
|
|
@@ -861,6 +1025,28 @@ module Google
|
|
861
1025
|
#
|
862
1026
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
863
1027
|
#
|
1028
|
+
# @example Basic example
|
1029
|
+
# require "google/cloud/domains/v1beta1"
|
1030
|
+
#
|
1031
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1032
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1033
|
+
#
|
1034
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1035
|
+
# request = Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest.new
|
1036
|
+
#
|
1037
|
+
# # Call the configure_management_settings method.
|
1038
|
+
# result = client.configure_management_settings request
|
1039
|
+
#
|
1040
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1041
|
+
# # object to check the status of an operation, cancel it, or wait
|
1042
|
+
# # for results. Here is how to block until completion:
|
1043
|
+
# result.wait_until_done! timeout: 60
|
1044
|
+
# if result.response?
|
1045
|
+
# p result.response
|
1046
|
+
# else
|
1047
|
+
# puts "Error!"
|
1048
|
+
# end
|
1049
|
+
#
|
864
1050
|
def configure_management_settings request, options = nil
|
865
1051
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
866
1052
|
|
@@ -878,9 +1064,11 @@ module Google
|
|
878
1064
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
879
1065
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
880
1066
|
|
881
|
-
header_params = {
|
882
|
-
|
883
|
-
|
1067
|
+
header_params = {}
|
1068
|
+
if request.registration
|
1069
|
+
header_params["registration"] = request.registration
|
1070
|
+
end
|
1071
|
+
|
884
1072
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
885
1073
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
886
1074
|
|
@@ -945,6 +1133,28 @@ module Google
|
|
945
1133
|
#
|
946
1134
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
947
1135
|
#
|
1136
|
+
# @example Basic example
|
1137
|
+
# require "google/cloud/domains/v1beta1"
|
1138
|
+
#
|
1139
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1140
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1141
|
+
#
|
1142
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1143
|
+
# request = Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest.new
|
1144
|
+
#
|
1145
|
+
# # Call the configure_dns_settings method.
|
1146
|
+
# result = client.configure_dns_settings request
|
1147
|
+
#
|
1148
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1149
|
+
# # object to check the status of an operation, cancel it, or wait
|
1150
|
+
# # for results. Here is how to block until completion:
|
1151
|
+
# result.wait_until_done! timeout: 60
|
1152
|
+
# if result.response?
|
1153
|
+
# p result.response
|
1154
|
+
# else
|
1155
|
+
# puts "Error!"
|
1156
|
+
# end
|
1157
|
+
#
|
948
1158
|
def configure_dns_settings request, options = nil
|
949
1159
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
950
1160
|
|
@@ -962,9 +1172,11 @@ module Google
|
|
962
1172
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
963
1173
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
964
1174
|
|
965
|
-
header_params = {
|
966
|
-
|
967
|
-
|
1175
|
+
header_params = {}
|
1176
|
+
if request.registration
|
1177
|
+
header_params["registration"] = request.registration
|
1178
|
+
end
|
1179
|
+
|
968
1180
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
969
1181
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
970
1182
|
|
@@ -1027,6 +1239,28 @@ module Google
|
|
1027
1239
|
#
|
1028
1240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1029
1241
|
#
|
1242
|
+
# @example Basic example
|
1243
|
+
# require "google/cloud/domains/v1beta1"
|
1244
|
+
#
|
1245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1246
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1247
|
+
#
|
1248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1249
|
+
# request = Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest.new
|
1250
|
+
#
|
1251
|
+
# # Call the configure_contact_settings method.
|
1252
|
+
# result = client.configure_contact_settings request
|
1253
|
+
#
|
1254
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1255
|
+
# # object to check the status of an operation, cancel it, or wait
|
1256
|
+
# # for results. Here is how to block until completion:
|
1257
|
+
# result.wait_until_done! timeout: 60
|
1258
|
+
# if result.response?
|
1259
|
+
# p result.response
|
1260
|
+
# else
|
1261
|
+
# puts "Error!"
|
1262
|
+
# end
|
1263
|
+
#
|
1030
1264
|
def configure_contact_settings request, options = nil
|
1031
1265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1032
1266
|
|
@@ -1044,9 +1278,11 @@ module Google
|
|
1044
1278
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
1045
1279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1046
1280
|
|
1047
|
-
header_params = {
|
1048
|
-
|
1049
|
-
|
1281
|
+
header_params = {}
|
1282
|
+
if request.registration
|
1283
|
+
header_params["registration"] = request.registration
|
1284
|
+
end
|
1285
|
+
|
1050
1286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1051
1287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1052
1288
|
|
@@ -1105,6 +1341,28 @@ module Google
|
|
1105
1341
|
#
|
1106
1342
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1107
1343
|
#
|
1344
|
+
# @example Basic example
|
1345
|
+
# require "google/cloud/domains/v1beta1"
|
1346
|
+
#
|
1347
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1348
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1349
|
+
#
|
1350
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1351
|
+
# request = Google::Cloud::Domains::V1beta1::ExportRegistrationRequest.new
|
1352
|
+
#
|
1353
|
+
# # Call the export_registration method.
|
1354
|
+
# result = client.export_registration request
|
1355
|
+
#
|
1356
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1357
|
+
# # object to check the status of an operation, cancel it, or wait
|
1358
|
+
# # for results. Here is how to block until completion:
|
1359
|
+
# result.wait_until_done! timeout: 60
|
1360
|
+
# if result.response?
|
1361
|
+
# p result.response
|
1362
|
+
# else
|
1363
|
+
# puts "Error!"
|
1364
|
+
# end
|
1365
|
+
#
|
1108
1366
|
def export_registration request, options = nil
|
1109
1367
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1110
1368
|
|
@@ -1122,9 +1380,11 @@ module Google
|
|
1122
1380
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
1123
1381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1124
1382
|
|
1125
|
-
header_params = {
|
1126
|
-
|
1127
|
-
|
1383
|
+
header_params = {}
|
1384
|
+
if request.name
|
1385
|
+
header_params["name"] = request.name
|
1386
|
+
end
|
1387
|
+
|
1128
1388
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1129
1389
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1130
1390
|
|
@@ -1193,6 +1453,28 @@ module Google
|
|
1193
1453
|
#
|
1194
1454
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1195
1455
|
#
|
1456
|
+
# @example Basic example
|
1457
|
+
# require "google/cloud/domains/v1beta1"
|
1458
|
+
#
|
1459
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1460
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1461
|
+
#
|
1462
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1463
|
+
# request = Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest.new
|
1464
|
+
#
|
1465
|
+
# # Call the delete_registration method.
|
1466
|
+
# result = client.delete_registration request
|
1467
|
+
#
|
1468
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1469
|
+
# # object to check the status of an operation, cancel it, or wait
|
1470
|
+
# # for results. Here is how to block until completion:
|
1471
|
+
# result.wait_until_done! timeout: 60
|
1472
|
+
# if result.response?
|
1473
|
+
# p result.response
|
1474
|
+
# else
|
1475
|
+
# puts "Error!"
|
1476
|
+
# end
|
1477
|
+
#
|
1196
1478
|
def delete_registration request, options = nil
|
1197
1479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1198
1480
|
|
@@ -1210,9 +1492,11 @@ module Google
|
|
1210
1492
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
1211
1493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1212
1494
|
|
1213
|
-
header_params = {
|
1214
|
-
|
1215
|
-
|
1495
|
+
header_params = {}
|
1496
|
+
if request.name
|
1497
|
+
header_params["name"] = request.name
|
1498
|
+
end
|
1499
|
+
|
1216
1500
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1217
1501
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1218
1502
|
|
@@ -1267,6 +1551,21 @@ module Google
|
|
1267
1551
|
#
|
1268
1552
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1269
1553
|
#
|
1554
|
+
# @example Basic example
|
1555
|
+
# require "google/cloud/domains/v1beta1"
|
1556
|
+
#
|
1557
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1558
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1559
|
+
#
|
1560
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1561
|
+
# request = Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest.new
|
1562
|
+
#
|
1563
|
+
# # Call the retrieve_authorization_code method.
|
1564
|
+
# result = client.retrieve_authorization_code request
|
1565
|
+
#
|
1566
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode.
|
1567
|
+
# p result
|
1568
|
+
#
|
1270
1569
|
def retrieve_authorization_code request, options = nil
|
1271
1570
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1272
1571
|
|
@@ -1284,9 +1583,11 @@ module Google
|
|
1284
1583
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
1285
1584
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1286
1585
|
|
1287
|
-
header_params = {
|
1288
|
-
|
1289
|
-
|
1586
|
+
header_params = {}
|
1587
|
+
if request.registration
|
1588
|
+
header_params["registration"] = request.registration
|
1589
|
+
end
|
1590
|
+
|
1290
1591
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1291
1592
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1292
1593
|
|
@@ -1339,6 +1640,21 @@ module Google
|
|
1339
1640
|
#
|
1340
1641
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1341
1642
|
#
|
1643
|
+
# @example Basic example
|
1644
|
+
# require "google/cloud/domains/v1beta1"
|
1645
|
+
#
|
1646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1647
|
+
# client = Google::Cloud::Domains::V1beta1::Domains::Client.new
|
1648
|
+
#
|
1649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1650
|
+
# request = Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest.new
|
1651
|
+
#
|
1652
|
+
# # Call the reset_authorization_code method.
|
1653
|
+
# result = client.reset_authorization_code request
|
1654
|
+
#
|
1655
|
+
# # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode.
|
1656
|
+
# p result
|
1657
|
+
#
|
1342
1658
|
def reset_authorization_code request, options = nil
|
1343
1659
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1344
1660
|
|
@@ -1356,9 +1672,11 @@ module Google
|
|
1356
1672
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
1357
1673
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1358
1674
|
|
1359
|
-
header_params = {
|
1360
|
-
|
1361
|
-
|
1675
|
+
header_params = {}
|
1676
|
+
if request.registration
|
1677
|
+
header_params["registration"] = request.registration
|
1678
|
+
end
|
1679
|
+
|
1362
1680
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1363
1681
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1364
1682
|
|
@@ -95,6 +95,9 @@ module Google
|
|
95
95
|
channel_args: @config.channel_args,
|
96
96
|
interceptors: @config.interceptors
|
97
97
|
)
|
98
|
+
|
99
|
+
# Used by an LRO wrapper for some methods of this service
|
100
|
+
@operations_client = self
|
98
101
|
end
|
99
102
|
|
100
103
|
# Service calls
|
@@ -143,6 +146,27 @@ module Google
|
|
143
146
|
#
|
144
147
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
148
|
#
|
149
|
+
# @example Basic example
|
150
|
+
# require "google/longrunning"
|
151
|
+
#
|
152
|
+
# # Create a client object. The client can be reused for multiple calls.
|
153
|
+
# client = Google::Longrunning::Operations::Client.new
|
154
|
+
#
|
155
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
156
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
157
|
+
#
|
158
|
+
# # Call the list_operations method.
|
159
|
+
# result = client.list_operations request
|
160
|
+
#
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
+
# # iterate over all elements by calling #each, and the enumerable
|
163
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
164
|
+
# # methods are also available for managing paging directly.
|
165
|
+
# result.each do |response|
|
166
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
+
# p response
|
168
|
+
# end
|
169
|
+
#
|
146
170
|
def list_operations request, options = nil
|
147
171
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
172
|
|
@@ -160,9 +184,11 @@ module Google
|
|
160
184
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
161
185
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
186
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
187
|
+
header_params = {}
|
188
|
+
if request.name
|
189
|
+
header_params["name"] = request.name
|
190
|
+
end
|
191
|
+
|
166
192
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
193
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
194
|
|
@@ -215,6 +241,28 @@ module Google
|
|
215
241
|
#
|
216
242
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
243
|
#
|
244
|
+
# @example Basic example
|
245
|
+
# require "google/longrunning"
|
246
|
+
#
|
247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
248
|
+
# client = Google::Longrunning::Operations::Client.new
|
249
|
+
#
|
250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
251
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
252
|
+
#
|
253
|
+
# # Call the get_operation method.
|
254
|
+
# result = client.get_operation request
|
255
|
+
#
|
256
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
257
|
+
# # object to check the status of an operation, cancel it, or wait
|
258
|
+
# # for results. Here is how to block until completion:
|
259
|
+
# result.wait_until_done! timeout: 60
|
260
|
+
# if result.response?
|
261
|
+
# p result.response
|
262
|
+
# else
|
263
|
+
# puts "Error!"
|
264
|
+
# end
|
265
|
+
#
|
218
266
|
def get_operation request, options = nil
|
219
267
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
268
|
|
@@ -232,9 +280,11 @@ module Google
|
|
232
280
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
233
281
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
282
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
283
|
+
header_params = {}
|
284
|
+
if request.name
|
285
|
+
header_params["name"] = request.name
|
286
|
+
end
|
287
|
+
|
238
288
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
289
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
290
|
|
@@ -287,6 +337,21 @@ module Google
|
|
287
337
|
#
|
288
338
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
339
|
#
|
340
|
+
# @example Basic example
|
341
|
+
# require "google/longrunning"
|
342
|
+
#
|
343
|
+
# # Create a client object. The client can be reused for multiple calls.
|
344
|
+
# client = Google::Longrunning::Operations::Client.new
|
345
|
+
#
|
346
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
347
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
348
|
+
#
|
349
|
+
# # Call the delete_operation method.
|
350
|
+
# result = client.delete_operation request
|
351
|
+
#
|
352
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
353
|
+
# p result
|
354
|
+
#
|
290
355
|
def delete_operation request, options = nil
|
291
356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
357
|
|
@@ -304,9 +369,11 @@ module Google
|
|
304
369
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
305
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
371
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
372
|
+
header_params = {}
|
373
|
+
if request.name
|
374
|
+
header_params["name"] = request.name
|
375
|
+
end
|
376
|
+
|
310
377
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
378
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
379
|
|
@@ -364,6 +431,21 @@ module Google
|
|
364
431
|
#
|
365
432
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
433
|
#
|
434
|
+
# @example Basic example
|
435
|
+
# require "google/longrunning"
|
436
|
+
#
|
437
|
+
# # Create a client object. The client can be reused for multiple calls.
|
438
|
+
# client = Google::Longrunning::Operations::Client.new
|
439
|
+
#
|
440
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
441
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
442
|
+
#
|
443
|
+
# # Call the cancel_operation method.
|
444
|
+
# result = client.cancel_operation request
|
445
|
+
#
|
446
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
447
|
+
# p result
|
448
|
+
#
|
367
449
|
def cancel_operation request, options = nil
|
368
450
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
451
|
|
@@ -381,9 +463,11 @@ module Google
|
|
381
463
|
gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
|
382
464
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
465
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
466
|
+
header_params = {}
|
467
|
+
if request.name
|
468
|
+
header_params["name"] = request.name
|
469
|
+
end
|
470
|
+
|
387
471
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
472
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
473
|
|
@@ -444,6 +528,28 @@ module Google
|
|
444
528
|
#
|
445
529
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
530
|
#
|
531
|
+
# @example Basic example
|
532
|
+
# require "google/longrunning"
|
533
|
+
#
|
534
|
+
# # Create a client object. The client can be reused for multiple calls.
|
535
|
+
# client = Google::Longrunning::Operations::Client.new
|
536
|
+
#
|
537
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
538
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
539
|
+
#
|
540
|
+
# # Call the wait_operation method.
|
541
|
+
# result = client.wait_operation request
|
542
|
+
#
|
543
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
544
|
+
# # object to check the status of an operation, cancel it, or wait
|
545
|
+
# # for results. Here is how to block until completion:
|
546
|
+
# result.wait_until_done! timeout: 60
|
547
|
+
# if result.response?
|
548
|
+
# p result.response
|
549
|
+
# else
|
550
|
+
# puts "Error!"
|
551
|
+
# end
|
552
|
+
#
|
447
553
|
def wait_operation request, options = nil
|
448
554
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
555
|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/domains/v1beta1/domains.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -10,7 +12,6 @@ require 'google/protobuf/field_mask_pb'
|
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
13
|
require 'google/type/money_pb'
|
12
14
|
require 'google/type/postal_address_pb'
|
13
|
-
require 'google/protobuf'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/domains/v1beta1/domains.proto", :syntax => :proto3) do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-domains-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
204
|
requirements:
|
205
205
|
- - ">="
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '2.
|
207
|
+
version: '2.6'
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
210
|
- - ">="
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
214
|
+
rubygems_version: 3.3.14
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: API Client library for the Cloud Domains V1beta1 API
|