google-cloud-resource_manager-v3 0.2.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/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +28 -32
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +15 -14
- data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1269 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/service_stub.rb +698 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest.rb +55 -0
- data/lib/google/cloud/resource_manager/v3/folders.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +4 -6
- data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +702 -0
- data/lib/google/cloud/resource_manager/v3/organizations/rest/service_stub.rb +344 -0
- data/lib/google/cloud/resource_manager/v3/organizations/rest.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/organizations.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +28 -32
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +15 -14
- data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1299 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/service_stub.rb +698 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/projects.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/rest.rb +42 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +12 -14
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +15 -14
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +527 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/service_stub.rb +222 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest.rb +54 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +16 -18
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +15 -14
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +938 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +521 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +16 -18
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +15 -14
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +934 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +521 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/tag_values.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/lib/google/cloud/resource_manager/v3.rb +7 -2
- data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +2 -1
- data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +2 -1
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +2 -1
- data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +2 -1
- data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +39 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32d1fb7149f69726573b065cb5d2b5cb4cff94813c08d1594ce4758569a871fa
|
4
|
+
data.tar.gz: 1b0e2ed2a459d2c4047a35f2d2cf7dc870e9a861d3a6e90590310ebd9dc1e0d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcfa4939eef4a80768d48c8ebee090c5bb034655327f80f6fff3e29269fb75118318ce9138197f82a36e17a3c09adeeddf1021fe819adb913a460e550934bdc1
|
7
|
+
data.tar.gz: 45583f5b44936d9ba558c9df9fb1dade858ad8f3ae0d8c980aa2dbf9492487fe9e4ad47284af11fbe8e4c71e7ae3f6dd903aee4d172b9491d2e13465d4202a37
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Resource Manager V3 API
|
2
2
|
|
3
|
-
|
3
|
+
Creates, reads, and updates metadata for Google Cloud Platform resource containers.
|
4
4
|
|
5
5
|
Google Cloud provides container resources such as organizations and projects that allow you to group and hierarchically organize other Google Cloud resources. This hierarchical organization helps you manage common aspects of your resources, such as access control and configuration settings. The Resource Manager API enables you to programmatically manage these container resources.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -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
|
|
@@ -339,13 +339,11 @@ module Google
|
|
339
339
|
# # Call the list_folders method.
|
340
340
|
# result = client.list_folders request
|
341
341
|
#
|
342
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
343
|
-
# #
|
344
|
-
#
|
345
|
-
# # methods are also available for managing paging directly.
|
346
|
-
# result.each do |response|
|
342
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
343
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
344
|
+
# result.each do |item|
|
347
345
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
|
348
|
-
# p
|
346
|
+
# p item
|
349
347
|
# end
|
350
348
|
#
|
351
349
|
def list_folders request, options = nil
|
@@ -464,13 +462,11 @@ module Google
|
|
464
462
|
# # Call the search_folders method.
|
465
463
|
# result = client.search_folders request
|
466
464
|
#
|
467
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
468
|
-
# #
|
469
|
-
#
|
470
|
-
# # methods are also available for managing paging directly.
|
471
|
-
# result.each do |response|
|
465
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
466
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
467
|
+
# result.each do |item|
|
472
468
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
|
473
|
-
# p
|
469
|
+
# p item
|
474
470
|
# end
|
475
471
|
#
|
476
472
|
def search_folders request, options = nil
|
@@ -575,14 +571,14 @@ module Google
|
|
575
571
|
# # Call the create_folder method.
|
576
572
|
# result = client.create_folder request
|
577
573
|
#
|
578
|
-
# # The returned object is of type Gapic::Operation. You can use
|
579
|
-
# #
|
580
|
-
# #
|
574
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
575
|
+
# # check the status of an operation, cancel it, or wait for results.
|
576
|
+
# # Here is how to wait for a response.
|
581
577
|
# result.wait_until_done! timeout: 60
|
582
578
|
# if result.response?
|
583
579
|
# p result.response
|
584
580
|
# else
|
585
|
-
# puts "
|
581
|
+
# puts "No response received."
|
586
582
|
# end
|
587
583
|
#
|
588
584
|
def create_folder request, options = nil
|
@@ -678,14 +674,14 @@ module Google
|
|
678
674
|
# # Call the update_folder method.
|
679
675
|
# result = client.update_folder request
|
680
676
|
#
|
681
|
-
# # The returned object is of type Gapic::Operation. You can use
|
682
|
-
# #
|
683
|
-
# #
|
677
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
678
|
+
# # check the status of an operation, cancel it, or wait for results.
|
679
|
+
# # Here is how to wait for a response.
|
684
680
|
# result.wait_until_done! timeout: 60
|
685
681
|
# if result.response?
|
686
682
|
# p result.response
|
687
683
|
# else
|
688
|
-
# puts "
|
684
|
+
# puts "No response received."
|
689
685
|
# end
|
690
686
|
#
|
691
687
|
def update_folder request, options = nil
|
@@ -792,14 +788,14 @@ module Google
|
|
792
788
|
# # Call the move_folder method.
|
793
789
|
# result = client.move_folder request
|
794
790
|
#
|
795
|
-
# # The returned object is of type Gapic::Operation. You can use
|
796
|
-
# #
|
797
|
-
# #
|
791
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
792
|
+
# # check the status of an operation, cancel it, or wait for results.
|
793
|
+
# # Here is how to wait for a response.
|
798
794
|
# result.wait_until_done! timeout: 60
|
799
795
|
# if result.response?
|
800
796
|
# p result.response
|
801
797
|
# else
|
802
|
-
# puts "
|
798
|
+
# puts "No response received."
|
803
799
|
# end
|
804
800
|
#
|
805
801
|
def move_folder request, options = nil
|
@@ -894,14 +890,14 @@ module Google
|
|
894
890
|
# # Call the delete_folder method.
|
895
891
|
# result = client.delete_folder request
|
896
892
|
#
|
897
|
-
# # The returned object is of type Gapic::Operation. You can use
|
898
|
-
# #
|
899
|
-
# #
|
893
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
894
|
+
# # check the status of an operation, cancel it, or wait for results.
|
895
|
+
# # Here is how to wait for a response.
|
900
896
|
# result.wait_until_done! timeout: 60
|
901
897
|
# if result.response?
|
902
898
|
# p result.response
|
903
899
|
# else
|
904
|
-
# puts "
|
900
|
+
# puts "No response received."
|
905
901
|
# end
|
906
902
|
#
|
907
903
|
def delete_folder request, options = nil
|
@@ -996,14 +992,14 @@ module Google
|
|
996
992
|
# # Call the undelete_folder method.
|
997
993
|
# result = client.undelete_folder request
|
998
994
|
#
|
999
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1000
|
-
# #
|
1001
|
-
# #
|
995
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
996
|
+
# # check the status of an operation, cancel it, or wait for results.
|
997
|
+
# # Here is how to wait for a response.
|
1002
998
|
# result.wait_until_done! timeout: 60
|
1003
999
|
# if result.response?
|
1004
1000
|
# p result.response
|
1005
1001
|
# else
|
1006
|
-
# puts "
|
1002
|
+
# puts "No response received."
|
1007
1003
|
# end
|
1008
1004
|
#
|
1009
1005
|
def undelete_folder request, options = nil
|
@@ -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
|
@@ -155,13 +158,11 @@ module Google
|
|
155
158
|
# # Call the list_operations method.
|
156
159
|
# result = client.list_operations request
|
157
160
|
#
|
158
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
-
# #
|
160
|
-
#
|
161
|
-
# # methods are also available for managing paging directly.
|
162
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
163
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
-
# p
|
165
|
+
# p item
|
165
166
|
# end
|
166
167
|
#
|
167
168
|
def list_operations request, options = nil
|
@@ -250,14 +251,14 @@ module Google
|
|
250
251
|
# # Call the get_operation method.
|
251
252
|
# result = client.get_operation request
|
252
253
|
#
|
253
|
-
# # The returned object is of type Gapic::Operation. You can use
|
254
|
-
# #
|
255
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
256
257
|
# result.wait_until_done! timeout: 60
|
257
258
|
# if result.response?
|
258
259
|
# p result.response
|
259
260
|
# else
|
260
|
-
# puts "
|
261
|
+
# puts "No response received."
|
261
262
|
# end
|
262
263
|
#
|
263
264
|
def get_operation request, options = nil
|
@@ -537,14 +538,14 @@ module Google
|
|
537
538
|
# # Call the wait_operation method.
|
538
539
|
# result = client.wait_operation request
|
539
540
|
#
|
540
|
-
# # The returned object is of type Gapic::Operation. You can use
|
541
|
-
# #
|
542
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
543
544
|
# result.wait_until_done! timeout: 60
|
544
545
|
# if result.response?
|
545
546
|
# p result.response
|
546
547
|
# else
|
547
|
-
# puts "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|