google-cloud-resource_manager-v3 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/resource_manager/v3/folders/client.rb +28 -32
  5. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +12 -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 +12 -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 +12 -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 +12 -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 +12 -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/organizations_pb.rb +0 -1
  48. data/proto_docs/google/api/client.rb +318 -0
  49. data/proto_docs/google/api/launch_stage.rb +71 -0
  50. data/proto_docs/google/protobuf/empty.rb +0 -2
  51. data/proto_docs/google/rpc/status.rb +4 -2
  52. metadata +34 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e523c1cb266cd9b756c272e1b430c75be6928807457b7ac3f062b26ef9ec74c9
4
- data.tar.gz: 9e595c1bbb6770f4707a75539f7102094a998cbdcda8120535cbd0ec50821fc8
3
+ metadata.gz: 32d1fb7149f69726573b065cb5d2b5cb4cff94813c08d1594ce4758569a871fa
4
+ data.tar.gz: 1b0e2ed2a459d2c4047a35f2d2cf7dc870e9a861d3a6e90590310ebd9dc1e0d8
5
5
  SHA512:
6
- metadata.gz: 7f702ba458a56118dbda432efd645b40f169e95a4dd61b93f264d5e1646fd6041fc4911524bc8c779c5640d2c95e9d8b2db457e88950f0fab3459e8b81159f8e
7
- data.tar.gz: '0284dbdc2a2ec36a512701c1be5d95e8c6398e6a8b2ac71bd48497fac5fdbc52d00e371497480a8e8063522259f8e73b57071d4ca11056e84c47559d5ef7d317'
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.
@@ -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
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
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|
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|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
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:
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.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
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:
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.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil