google-cloud-resource_manager-v3 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +219 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +84 -0
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +219 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +86 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +66 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +169 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +169 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -205,6 +205,26 @@ module Google
|
|
205
205
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagValue>]
|
206
206
|
#
|
207
207
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
208
|
+
#
|
209
|
+
# @example Basic example
|
210
|
+
# require "google/cloud/resource_manager/v3"
|
211
|
+
#
|
212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
213
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
214
|
+
#
|
215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
216
|
+
# request = Google::Cloud::ResourceManager::V3::ListTagValuesRequest.new
|
217
|
+
#
|
218
|
+
# # Call the list_tag_values method.
|
219
|
+
# result = client.list_tag_values request
|
220
|
+
#
|
221
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
222
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
223
|
+
# result.each do |item|
|
224
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::TagValue.
|
225
|
+
# p item
|
226
|
+
# end
|
227
|
+
#
|
208
228
|
def list_tag_values request, options = nil
|
209
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
210
230
|
|
@@ -270,6 +290,22 @@ module Google
|
|
270
290
|
# @return [::Google::Cloud::ResourceManager::V3::TagValue]
|
271
291
|
#
|
272
292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
293
|
+
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/resource_manager/v3"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::ResourceManager::V3::GetTagValueRequest.new
|
302
|
+
#
|
303
|
+
# # Call the get_tag_value method.
|
304
|
+
# result = client.get_tag_value request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::ResourceManager::V3::TagValue.
|
307
|
+
# p result
|
308
|
+
#
|
273
309
|
def get_tag_value request, options = nil
|
274
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
311
|
|
@@ -342,6 +378,22 @@ module Google
|
|
342
378
|
# @return [::Google::Cloud::ResourceManager::V3::TagValue]
|
343
379
|
#
|
344
380
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
381
|
+
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/resource_manager/v3"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::ResourceManager::V3::GetNamespacedTagValueRequest.new
|
390
|
+
#
|
391
|
+
# # Call the get_namespaced_tag_value method.
|
392
|
+
# result = client.get_namespaced_tag_value request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Google::Cloud::ResourceManager::V3::TagValue.
|
395
|
+
# p result
|
396
|
+
#
|
345
397
|
def get_namespaced_tag_value request, options = nil
|
346
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
347
399
|
|
@@ -411,6 +463,29 @@ module Google
|
|
411
463
|
# @return [::Gapic::Operation]
|
412
464
|
#
|
413
465
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
466
|
+
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/resource_manager/v3"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::ResourceManager::V3::CreateTagValueRequest.new
|
475
|
+
#
|
476
|
+
# # Call the create_tag_value method.
|
477
|
+
# result = client.create_tag_value request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
480
|
+
# # check the status of an operation, cancel it, or wait for results.
|
481
|
+
# # Here is how to wait for a response.
|
482
|
+
# result.wait_until_done! timeout: 60
|
483
|
+
# if result.response?
|
484
|
+
# p result.response
|
485
|
+
# else
|
486
|
+
# puts "No response received."
|
487
|
+
# end
|
488
|
+
#
|
414
489
|
def create_tag_value request, options = nil
|
415
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
416
491
|
|
@@ -482,6 +557,29 @@ module Google
|
|
482
557
|
# @return [::Gapic::Operation]
|
483
558
|
#
|
484
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/resource_manager/v3"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Cloud::ResourceManager::V3::UpdateTagValueRequest.new
|
569
|
+
#
|
570
|
+
# # Call the update_tag_value method.
|
571
|
+
# result = client.update_tag_value request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
574
|
+
# # check the status of an operation, cancel it, or wait for results.
|
575
|
+
# # Here is how to wait for a response.
|
576
|
+
# result.wait_until_done! timeout: 60
|
577
|
+
# if result.response?
|
578
|
+
# p result.response
|
579
|
+
# else
|
580
|
+
# puts "No response received."
|
581
|
+
# end
|
582
|
+
#
|
485
583
|
def update_tag_value request, options = nil
|
486
584
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
487
585
|
|
@@ -553,6 +651,29 @@ module Google
|
|
553
651
|
# @return [::Gapic::Operation]
|
554
652
|
#
|
555
653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
654
|
+
#
|
655
|
+
# @example Basic example
|
656
|
+
# require "google/cloud/resource_manager/v3"
|
657
|
+
#
|
658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
659
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
660
|
+
#
|
661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
662
|
+
# request = Google::Cloud::ResourceManager::V3::DeleteTagValueRequest.new
|
663
|
+
#
|
664
|
+
# # Call the delete_tag_value method.
|
665
|
+
# result = client.delete_tag_value request
|
666
|
+
#
|
667
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
668
|
+
# # check the status of an operation, cancel it, or wait for results.
|
669
|
+
# # Here is how to wait for a response.
|
670
|
+
# result.wait_until_done! timeout: 60
|
671
|
+
# if result.response?
|
672
|
+
# p result.response
|
673
|
+
# else
|
674
|
+
# puts "No response received."
|
675
|
+
# end
|
676
|
+
#
|
556
677
|
def delete_tag_value request, options = nil
|
557
678
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
558
679
|
|
@@ -625,6 +746,22 @@ module Google
|
|
625
746
|
# @return [::Google::Iam::V1::Policy]
|
626
747
|
#
|
627
748
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
749
|
+
#
|
750
|
+
# @example Basic example
|
751
|
+
# require "google/cloud/resource_manager/v3"
|
752
|
+
#
|
753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
754
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
755
|
+
#
|
756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
757
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
758
|
+
#
|
759
|
+
# # Call the get_iam_policy method.
|
760
|
+
# result = client.get_iam_policy request
|
761
|
+
#
|
762
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
763
|
+
# p result
|
764
|
+
#
|
628
765
|
def get_iam_policy request, options = nil
|
629
766
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
630
767
|
|
@@ -703,6 +840,22 @@ module Google
|
|
703
840
|
# @return [::Google::Iam::V1::Policy]
|
704
841
|
#
|
705
842
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
843
|
+
#
|
844
|
+
# @example Basic example
|
845
|
+
# require "google/cloud/resource_manager/v3"
|
846
|
+
#
|
847
|
+
# # Create a client object. The client can be reused for multiple calls.
|
848
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
849
|
+
#
|
850
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
851
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
852
|
+
#
|
853
|
+
# # Call the set_iam_policy method.
|
854
|
+
# result = client.set_iam_policy request
|
855
|
+
#
|
856
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
857
|
+
# p result
|
858
|
+
#
|
706
859
|
def set_iam_policy request, options = nil
|
707
860
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
708
861
|
|
@@ -775,6 +928,22 @@ module Google
|
|
775
928
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
776
929
|
#
|
777
930
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
931
|
+
#
|
932
|
+
# @example Basic example
|
933
|
+
# require "google/cloud/resource_manager/v3"
|
934
|
+
#
|
935
|
+
# # Create a client object. The client can be reused for multiple calls.
|
936
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
|
937
|
+
#
|
938
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
939
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
940
|
+
#
|
941
|
+
# # Call the test_iam_permissions method.
|
942
|
+
# result = client.test_iam_permissions request
|
943
|
+
#
|
944
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
945
|
+
# p result
|
946
|
+
#
|
778
947
|
def test_iam_permissions request, options = nil
|
779
948
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
780
949
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-resource_manager-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -308,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
308
|
- !ruby/object:Gem::Version
|
309
309
|
version: '0'
|
310
310
|
requirements: []
|
311
|
-
rubygems_version: 3.4.
|
311
|
+
rubygems_version: 3.4.19
|
312
312
|
signing_key:
|
313
313
|
specification_version: 4
|
314
314
|
summary: Creates, reads, and updates metadata for Google Cloud Platform resource containers.
|