google-cloud-resource_manager-v3 0.6.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -101
  3. data/lib/google/cloud/resource_manager/v3/folders/client.rb +42 -9
  4. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +38 -7
  5. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +253 -7
  6. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +108 -8
  7. data/lib/google/cloud/resource_manager/v3/folders/rest/service_stub.rb +14 -2
  8. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +41 -9
  9. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +117 -7
  10. data/lib/google/cloud/resource_manager/v3/organizations/rest/service_stub.rb +14 -2
  11. data/lib/google/cloud/resource_manager/v3/projects/client.rb +42 -9
  12. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +38 -7
  13. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +253 -7
  14. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +108 -8
  15. data/lib/google/cloud/resource_manager/v3/projects/rest/service_stub.rb +14 -2
  16. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +42 -9
  17. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +38 -7
  18. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +120 -7
  19. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +108 -8
  20. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/service_stub.rb +14 -2
  21. data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +42 -9
  22. data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +38 -7
  23. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +100 -7
  24. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +108 -8
  25. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/service_stub.rb +14 -2
  26. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +42 -9
  27. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +38 -7
  28. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +203 -7
  29. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +108 -8
  30. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +14 -2
  31. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +42 -9
  32. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +38 -7
  33. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +203 -7
  34. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +108 -8
  35. data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +14 -2
  36. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  37. data/proto_docs/google/api/client.rb +14 -0
  38. data/proto_docs/google/api/field_behavior.rb +14 -0
  39. metadata +5 -5
@@ -30,6 +30,9 @@ module Google
30
30
  # Allow users to create and manage tag keys.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
35
+
33
36
  include Paths
34
37
 
35
38
  # @private
@@ -113,6 +116,15 @@ module Google
113
116
  @config
114
117
  end
115
118
 
119
+ ##
120
+ # The effective universe domain
121
+ #
122
+ # @return [String]
123
+ #
124
+ def universe_domain
125
+ @tag_keys_stub.universe_domain
126
+ end
127
+
116
128
  ##
117
129
  # Create a new TagKeys client object.
118
130
  #
@@ -146,8 +158,9 @@ module Google
146
158
  credentials = @config.credentials
147
159
  # Use self-signed JWT if the endpoint is unchanged from default,
148
160
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
150
- !@config.endpoint.split(".").first.include?("-")
161
+ enable_self_signed_jwt = @config.endpoint.nil? ||
162
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
163
+ !@config.endpoint.split(".").first.include?("-"))
151
164
  credentials ||= Credentials.default scope: @config.scope,
152
165
  enable_self_signed_jwt: enable_self_signed_jwt
153
166
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -160,14 +173,18 @@ module Google
160
173
  config.credentials = credentials
161
174
  config.quota_project = @quota_project_id
162
175
  config.endpoint = @config.endpoint
176
+ config.universe_domain = @config.universe_domain
163
177
  end
164
178
 
165
179
  @tag_keys_stub = ::Gapic::ServiceStub.new(
166
180
  ::Google::Cloud::ResourceManager::V3::TagKeys::Stub,
167
- credentials: credentials,
168
- endpoint: @config.endpoint,
181
+ credentials: credentials,
182
+ endpoint: @config.endpoint,
183
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
184
+ universe_domain: @config.universe_domain,
169
185
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
186
+ interceptors: @config.interceptors,
187
+ channel_pool_config: @config.channel_pool
171
188
  )
172
189
  end
173
190
 
@@ -1057,9 +1074,9 @@ module Google
1057
1074
  # end
1058
1075
  #
1059
1076
  # @!attribute [rw] endpoint
1060
- # The hostname or hostname:port of the service endpoint.
1061
- # Defaults to `"cloudresourcemanager.googleapis.com"`.
1062
- # @return [::String]
1077
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1078
+ # nil, indicating to use the default endpoint in the current universe domain.
1079
+ # @return [::String,nil]
1063
1080
  # @!attribute [rw] credentials
1064
1081
  # Credentials to send with calls. You may provide any of the following types:
1065
1082
  # * (`String`) The path to a service account key file in JSON format
@@ -1105,13 +1122,20 @@ module Google
1105
1122
  # @!attribute [rw] quota_project
1106
1123
  # A separate project against which to charge quota.
1107
1124
  # @return [::String]
1125
+ # @!attribute [rw] universe_domain
1126
+ # The universe domain within which to make requests. This determines the
1127
+ # default endpoint URL. The default value of nil uses the environment
1128
+ # universe (usually the default "googleapis.com" universe).
1129
+ # @return [::String,nil]
1108
1130
  #
1109
1131
  class Configuration
1110
1132
  extend ::Gapic::Config
1111
1133
 
1134
+ # @private
1135
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1112
1136
  DEFAULT_ENDPOINT = "cloudresourcemanager.googleapis.com"
1113
1137
 
1114
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1138
+ config_attr :endpoint, nil, ::String, nil
1115
1139
  config_attr :credentials, nil do |value|
1116
1140
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1117
1141
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1126,6 +1150,7 @@ module Google
1126
1150
  config_attr :metadata, nil, ::Hash, nil
1127
1151
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1128
1152
  config_attr :quota_project, nil, ::String, nil
1153
+ config_attr :universe_domain, nil, ::String, nil
1129
1154
 
1130
1155
  # @private
1131
1156
  def initialize parent_config = nil
@@ -1146,6 +1171,14 @@ module Google
1146
1171
  end
1147
1172
  end
1148
1173
 
1174
+ ##
1175
+ # Configuration for the channel pool
1176
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1177
+ #
1178
+ def channel_pool
1179
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1180
+ end
1181
+
1149
1182
  ##
1150
1183
  # Configuration RPC class for the TagKeys API.
1151
1184
  #
@@ -26,6 +26,9 @@ module Google
26
26
  module TagKeys
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,10 +102,13 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
110
+ interceptors: @config.interceptors,
111
+ channel_pool_config: @config.channel_pool
97
112
  )
98
113
 
99
114
  # Used by an LRO wrapper for some methods of this service
@@ -612,9 +627,9 @@ module Google
612
627
  # end
613
628
  #
614
629
  # @!attribute [rw] endpoint
615
- # The hostname or hostname:port of the service endpoint.
616
- # Defaults to `"cloudresourcemanager.googleapis.com"`.
617
- # @return [::String]
630
+ # A custom service endpoint, as a hostname or hostname:port. The default is
631
+ # nil, indicating to use the default endpoint in the current universe domain.
632
+ # @return [::String,nil]
618
633
  # @!attribute [rw] credentials
619
634
  # Credentials to send with calls. You may provide any of the following types:
620
635
  # * (`String`) The path to a service account key file in JSON format
@@ -660,13 +675,20 @@ module Google
660
675
  # @!attribute [rw] quota_project
661
676
  # A separate project against which to charge quota.
662
677
  # @return [::String]
678
+ # @!attribute [rw] universe_domain
679
+ # The universe domain within which to make requests. This determines the
680
+ # default endpoint URL. The default value of nil uses the environment
681
+ # universe (usually the default "googleapis.com" universe).
682
+ # @return [::String,nil]
663
683
  #
664
684
  class Configuration
665
685
  extend ::Gapic::Config
666
686
 
687
+ # @private
688
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
667
689
  DEFAULT_ENDPOINT = "cloudresourcemanager.googleapis.com"
668
690
 
669
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
691
+ config_attr :endpoint, nil, ::String, nil
670
692
  config_attr :credentials, nil do |value|
671
693
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
694
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -681,6 +703,7 @@ module Google
681
703
  config_attr :metadata, nil, ::Hash, nil
682
704
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
683
705
  config_attr :quota_project, nil, ::String, nil
706
+ config_attr :universe_domain, nil, ::String, nil
684
707
 
685
708
  # @private
686
709
  def initialize parent_config = nil
@@ -701,6 +724,14 @@ module Google
701
724
  end
702
725
  end
703
726
 
727
+ ##
728
+ # Configuration for the channel pool
729
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
730
+ #
731
+ def channel_pool
732
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
733
+ end
734
+
704
735
  ##
705
736
  # Configuration RPC class for the Operations API.
706
737
  #
@@ -32,6 +32,9 @@ module Google
32
32
  # Allow users to create and manage tag keys.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
37
+
35
38
  include Paths
36
39
 
37
40
  # @private
@@ -115,6 +118,15 @@ module Google
115
118
  @config
116
119
  end
117
120
 
121
+ ##
122
+ # The effective universe domain
123
+ #
124
+ # @return [String]
125
+ #
126
+ def universe_domain
127
+ @tag_keys_stub.universe_domain
128
+ end
129
+
118
130
  ##
119
131
  # Create a new TagKeys REST client object.
120
132
  #
@@ -142,8 +154,9 @@ module Google
142
154
  credentials = @config.credentials
143
155
  # Use self-signed JWT if the endpoint is unchanged from default,
144
156
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
- !@config.endpoint.split(".").first.include?("-")
157
+ enable_self_signed_jwt = @config.endpoint.nil? ||
158
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
159
+ !@config.endpoint.split(".").first.include?("-"))
147
160
  credentials ||= Credentials.default scope: @config.scope,
148
161
  enable_self_signed_jwt: enable_self_signed_jwt
149
162
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -157,9 +170,15 @@ module Google
157
170
  config.credentials = credentials
158
171
  config.quota_project = @quota_project_id
159
172
  config.endpoint = @config.endpoint
173
+ config.universe_domain = @config.universe_domain
160
174
  end
161
175
 
162
- @tag_keys_stub = ::Google::Cloud::ResourceManager::V3::TagKeys::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
176
+ @tag_keys_stub = ::Google::Cloud::ResourceManager::V3::TagKeys::Rest::ServiceStub.new(
177
+ endpoint: @config.endpoint,
178
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
179
+ universe_domain: @config.universe_domain,
180
+ credentials: credentials
181
+ )
163
182
  end
164
183
 
165
184
  ##
@@ -207,6 +226,26 @@ module Google
207
226
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagKey>]
208
227
  #
209
228
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
229
+ #
230
+ # @example Basic example
231
+ # require "google/cloud/resource_manager/v3"
232
+ #
233
+ # # Create a client object. The client can be reused for multiple calls.
234
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
235
+ #
236
+ # # Create a request. To set request fields, pass in keyword arguments.
237
+ # request = Google::Cloud::ResourceManager::V3::ListTagKeysRequest.new
238
+ #
239
+ # # Call the list_tag_keys method.
240
+ # result = client.list_tag_keys request
241
+ #
242
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
243
+ # # over elements, and API calls will be issued to fetch pages as needed.
244
+ # result.each do |item|
245
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::TagKey.
246
+ # p item
247
+ # end
248
+ #
210
249
  def list_tag_keys request, options = nil
211
250
  raise ::ArgumentError, "request must be provided" if request.nil?
212
251
 
@@ -272,6 +311,22 @@ module Google
272
311
  # @return [::Google::Cloud::ResourceManager::V3::TagKey]
273
312
  #
274
313
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
314
+ #
315
+ # @example Basic example
316
+ # require "google/cloud/resource_manager/v3"
317
+ #
318
+ # # Create a client object. The client can be reused for multiple calls.
319
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
320
+ #
321
+ # # Create a request. To set request fields, pass in keyword arguments.
322
+ # request = Google::Cloud::ResourceManager::V3::GetTagKeyRequest.new
323
+ #
324
+ # # Call the get_tag_key method.
325
+ # result = client.get_tag_key request
326
+ #
327
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::TagKey.
328
+ # p result
329
+ #
275
330
  def get_tag_key request, options = nil
276
331
  raise ::ArgumentError, "request must be provided" if request.nil?
277
332
 
@@ -339,6 +394,22 @@ module Google
339
394
  # @return [::Google::Cloud::ResourceManager::V3::TagKey]
340
395
  #
341
396
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
397
+ #
398
+ # @example Basic example
399
+ # require "google/cloud/resource_manager/v3"
400
+ #
401
+ # # Create a client object. The client can be reused for multiple calls.
402
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
403
+ #
404
+ # # Create a request. To set request fields, pass in keyword arguments.
405
+ # request = Google::Cloud::ResourceManager::V3::GetNamespacedTagKeyRequest.new
406
+ #
407
+ # # Call the get_namespaced_tag_key method.
408
+ # result = client.get_namespaced_tag_key request
409
+ #
410
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::TagKey.
411
+ # p result
412
+ #
342
413
  def get_namespaced_tag_key request, options = nil
343
414
  raise ::ArgumentError, "request must be provided" if request.nil?
344
415
 
@@ -408,6 +479,29 @@ module Google
408
479
  # @return [::Gapic::Operation]
409
480
  #
410
481
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
482
+ #
483
+ # @example Basic example
484
+ # require "google/cloud/resource_manager/v3"
485
+ #
486
+ # # Create a client object. The client can be reused for multiple calls.
487
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
488
+ #
489
+ # # Create a request. To set request fields, pass in keyword arguments.
490
+ # request = Google::Cloud::ResourceManager::V3::CreateTagKeyRequest.new
491
+ #
492
+ # # Call the create_tag_key method.
493
+ # result = client.create_tag_key request
494
+ #
495
+ # # The returned object is of type Gapic::Operation. You can use it to
496
+ # # check the status of an operation, cancel it, or wait for results.
497
+ # # Here is how to wait for a response.
498
+ # result.wait_until_done! timeout: 60
499
+ # if result.response?
500
+ # p result.response
501
+ # else
502
+ # puts "No response received."
503
+ # end
504
+ #
411
505
  def create_tag_key request, options = nil
412
506
  raise ::ArgumentError, "request must be provided" if request.nil?
413
507
 
@@ -481,6 +575,29 @@ module Google
481
575
  # @return [::Gapic::Operation]
482
576
  #
483
577
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
578
+ #
579
+ # @example Basic example
580
+ # require "google/cloud/resource_manager/v3"
581
+ #
582
+ # # Create a client object. The client can be reused for multiple calls.
583
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
584
+ #
585
+ # # Create a request. To set request fields, pass in keyword arguments.
586
+ # request = Google::Cloud::ResourceManager::V3::UpdateTagKeyRequest.new
587
+ #
588
+ # # Call the update_tag_key method.
589
+ # result = client.update_tag_key request
590
+ #
591
+ # # The returned object is of type Gapic::Operation. You can use it to
592
+ # # check the status of an operation, cancel it, or wait for results.
593
+ # # Here is how to wait for a response.
594
+ # result.wait_until_done! timeout: 60
595
+ # if result.response?
596
+ # p result.response
597
+ # else
598
+ # puts "No response received."
599
+ # end
600
+ #
484
601
  def update_tag_key request, options = nil
485
602
  raise ::ArgumentError, "request must be provided" if request.nil?
486
603
 
@@ -553,6 +670,29 @@ module Google
553
670
  # @return [::Gapic::Operation]
554
671
  #
555
672
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
673
+ #
674
+ # @example Basic example
675
+ # require "google/cloud/resource_manager/v3"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::ResourceManager::V3::DeleteTagKeyRequest.new
682
+ #
683
+ # # Call the delete_tag_key method.
684
+ # result = client.delete_tag_key request
685
+ #
686
+ # # The returned object is of type Gapic::Operation. You can use it to
687
+ # # check the status of an operation, cancel it, or wait for results.
688
+ # # Here is how to wait for a response.
689
+ # result.wait_until_done! timeout: 60
690
+ # if result.response?
691
+ # p result.response
692
+ # else
693
+ # puts "No response received."
694
+ # end
695
+ #
556
696
  def delete_tag_key request, options = nil
557
697
  raise ::ArgumentError, "request must be provided" if request.nil?
558
698
 
@@ -625,6 +765,22 @@ module Google
625
765
  # @return [::Google::Iam::V1::Policy]
626
766
  #
627
767
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
768
+ #
769
+ # @example Basic example
770
+ # require "google/cloud/resource_manager/v3"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
777
+ #
778
+ # # Call the get_iam_policy method.
779
+ # result = client.get_iam_policy request
780
+ #
781
+ # # The returned object is of type Google::Iam::V1::Policy.
782
+ # p result
783
+ #
628
784
  def get_iam_policy request, options = nil
629
785
  raise ::ArgumentError, "request must be provided" if request.nil?
630
786
 
@@ -703,6 +859,22 @@ module Google
703
859
  # @return [::Google::Iam::V1::Policy]
704
860
  #
705
861
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
862
+ #
863
+ # @example Basic example
864
+ # require "google/cloud/resource_manager/v3"
865
+ #
866
+ # # Create a client object. The client can be reused for multiple calls.
867
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
868
+ #
869
+ # # Create a request. To set request fields, pass in keyword arguments.
870
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
871
+ #
872
+ # # Call the set_iam_policy method.
873
+ # result = client.set_iam_policy request
874
+ #
875
+ # # The returned object is of type Google::Iam::V1::Policy.
876
+ # p result
877
+ #
706
878
  def set_iam_policy request, options = nil
707
879
  raise ::ArgumentError, "request must be provided" if request.nil?
708
880
 
@@ -775,6 +947,22 @@ module Google
775
947
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
776
948
  #
777
949
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
950
+ #
951
+ # @example Basic example
952
+ # require "google/cloud/resource_manager/v3"
953
+ #
954
+ # # Create a client object. The client can be reused for multiple calls.
955
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
956
+ #
957
+ # # Create a request. To set request fields, pass in keyword arguments.
958
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
959
+ #
960
+ # # Call the test_iam_permissions method.
961
+ # result = client.test_iam_permissions request
962
+ #
963
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
964
+ # p result
965
+ #
778
966
  def test_iam_permissions request, options = nil
779
967
  raise ::ArgumentError, "request must be provided" if request.nil?
780
968
 
@@ -840,9 +1028,9 @@ module Google
840
1028
  # end
841
1029
  #
842
1030
  # @!attribute [rw] endpoint
843
- # The hostname or hostname:port of the service endpoint.
844
- # Defaults to `"cloudresourcemanager.googleapis.com"`.
845
- # @return [::String]
1031
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1032
+ # nil, indicating to use the default endpoint in the current universe domain.
1033
+ # @return [::String,nil]
846
1034
  # @!attribute [rw] credentials
847
1035
  # Credentials to send with calls. You may provide any of the following types:
848
1036
  # * (`String`) The path to a service account key file in JSON format
@@ -879,13 +1067,20 @@ module Google
879
1067
  # @!attribute [rw] quota_project
880
1068
  # A separate project against which to charge quota.
881
1069
  # @return [::String]
1070
+ # @!attribute [rw] universe_domain
1071
+ # The universe domain within which to make requests. This determines the
1072
+ # default endpoint URL. The default value of nil uses the environment
1073
+ # universe (usually the default "googleapis.com" universe).
1074
+ # @return [::String,nil]
882
1075
  #
883
1076
  class Configuration
884
1077
  extend ::Gapic::Config
885
1078
 
1079
+ # @private
1080
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
886
1081
  DEFAULT_ENDPOINT = "cloudresourcemanager.googleapis.com"
887
1082
 
888
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1083
+ config_attr :endpoint, nil, ::String, nil
889
1084
  config_attr :credentials, nil do |value|
890
1085
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
891
1086
  allowed.any? { |klass| klass === value }
@@ -897,6 +1092,7 @@ module Google
897
1092
  config_attr :metadata, nil, ::Hash, nil
898
1093
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
899
1094
  config_attr :quota_project, nil, ::String, nil
1095
+ config_attr :universe_domain, nil, ::String, nil
900
1096
 
901
1097
  # @private
902
1098
  def initialize parent_config = nil