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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/resource_manager/v3/folders/client.rb +28 -32
  5. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +15 -14
  6. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1269 -0
  7. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +793 -0
  8. data/lib/google/cloud/resource_manager/v3/folders/rest/service_stub.rb +698 -0
  9. data/lib/google/cloud/resource_manager/v3/folders/rest.rb +55 -0
  10. data/lib/google/cloud/resource_manager/v3/folders.rb +7 -1
  11. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +4 -6
  12. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +702 -0
  13. data/lib/google/cloud/resource_manager/v3/organizations/rest/service_stub.rb +344 -0
  14. data/lib/google/cloud/resource_manager/v3/organizations/rest.rb +52 -0
  15. data/lib/google/cloud/resource_manager/v3/organizations.rb +7 -1
  16. data/lib/google/cloud/resource_manager/v3/projects/client.rb +28 -32
  17. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +15 -14
  18. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1299 -0
  19. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +793 -0
  20. data/lib/google/cloud/resource_manager/v3/projects/rest/service_stub.rb +698 -0
  21. data/lib/google/cloud/resource_manager/v3/projects/rest.rb +53 -0
  22. data/lib/google/cloud/resource_manager/v3/projects.rb +7 -1
  23. data/lib/google/cloud/resource_manager/v3/rest.rb +42 -0
  24. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +12 -14
  25. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +15 -14
  26. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +527 -0
  27. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +793 -0
  28. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/service_stub.rb +222 -0
  29. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest.rb +54 -0
  30. data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +7 -1
  31. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +16 -18
  32. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +15 -14
  33. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +938 -0
  34. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +793 -0
  35. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +521 -0
  36. data/lib/google/cloud/resource_manager/v3/tag_keys/rest.rb +53 -0
  37. data/lib/google/cloud/resource_manager/v3/tag_keys.rb +7 -1
  38. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +16 -18
  39. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +15 -14
  40. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +934 -0
  41. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +793 -0
  42. data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +521 -0
  43. data/lib/google/cloud/resource_manager/v3/tag_values/rest.rb +53 -0
  44. data/lib/google/cloud/resource_manager/v3/tag_values.rb +7 -1
  45. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  46. data/lib/google/cloud/resource_manager/v3.rb +7 -2
  47. data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +2 -1
  48. data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +2 -2
  49. data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +2 -1
  50. data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +2 -1
  51. data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +2 -1
  52. data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +2 -1
  53. data/proto_docs/google/api/client.rb +318 -0
  54. data/proto_docs/google/api/launch_stage.rb +71 -0
  55. data/proto_docs/google/protobuf/any.rb +3 -3
  56. data/proto_docs/google/protobuf/empty.rb +0 -2
  57. data/proto_docs/google/rpc/status.rb +4 -2
  58. metadata +39 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16bb00438dba33ecb8014be7a9f3ea87ee36f5229c8c16a08d69f48ac59346a9
4
- data.tar.gz: 7a1357019595e4cbf9b587d6b4338a9ca1af2fa1f57d10e85d0c0728806bfd61
3
+ metadata.gz: 32d1fb7149f69726573b065cb5d2b5cb4cff94813c08d1594ce4758569a871fa
4
+ data.tar.gz: 1b0e2ed2a459d2c4047a35f2d2cf7dc870e9a861d3a6e90590310ebd9dc1e0d8
5
5
  SHA512:
6
- metadata.gz: 0f6b8221c30a2723405172c60ae93356fc1301277e72fc05e5f2990cf27e28710bc08170729389c8457d7f0e4f7d9467053086e314ac3aa4890e5a43b9ee21ac
7
- data.tar.gz: 645c36f4d58480ed1ebfbe7ce0545d6275b88ac81330ce7c54bd0ceb429e2b3e7393bdc8c1522157bc44aa2bee7e43da36652fbd1a59c3c0ec8f71932f9a4606
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
- API Client library for the Resource Manager V3 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
- # # iterate over all elements by calling #each, and the enumerable
344
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
469
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
579
- # # object to check the status of an operation, cancel it, or wait
580
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
682
- # # object to check the status of an operation, cancel it, or wait
683
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
796
- # # object to check the status of an operation, cancel it, or wait
797
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
898
- # # object to check the status of an operation, cancel it, or wait
899
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1000
- # # object to check the status of an operation, cancel it, or wait
1001
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
160
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil