google-cloud-resource_manager-v3 0.3.0 → 0.4.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 (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
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/resource_manager/v3/version"
24
+
25
+ require "google/cloud/resource_manager/v3/projects/credentials"
26
+ require "google/cloud/resource_manager/v3/projects/paths"
27
+ require "google/cloud/resource_manager/v3/projects/rest/operations"
28
+ require "google/cloud/resource_manager/v3/projects/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module ResourceManager
33
+ module V3
34
+ ##
35
+ # Manages Google Cloud Projects.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/resource_manager/v3/projects/rest"
40
+ # client = ::Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
41
+ #
42
+ module Projects
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/resource_manager/v3/projects/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/resource_manager/v3/projects/credentials"
26
26
  require "google/cloud/resource_manager/v3/projects/paths"
27
27
  require "google/cloud/resource_manager/v3/projects/operations"
28
28
  require "google/cloud/resource_manager/v3/projects/client"
29
+ require "google/cloud/resource_manager/v3/projects/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -34,11 +35,16 @@ module Google
34
35
  ##
35
36
  # Manages Google Cloud Projects.
36
37
  #
37
- # To load this service and instantiate a client:
38
+ # @example Load this service and instantiate a gRPC client
38
39
  #
39
40
  # require "google/cloud/resource_manager/v3/projects"
40
41
  # client = ::Google::Cloud::ResourceManager::V3::Projects::Client.new
41
42
  #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/resource_manager/v3/projects/rest"
46
+ # client = ::Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
47
+ #
42
48
  module Projects
43
49
  end
44
50
  end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/resource_manager/v3/folders/rest"
20
+ require "google/cloud/resource_manager/v3/organizations/rest"
21
+ require "google/cloud/resource_manager/v3/projects/rest"
22
+ require "google/cloud/resource_manager/v3/tag_bindings/rest"
23
+ require "google/cloud/resource_manager/v3/tag_keys/rest"
24
+ require "google/cloud/resource_manager/v3/tag_values/rest"
25
+ require "google/cloud/resource_manager/v3/version"
26
+
27
+ module Google
28
+ module Cloud
29
+ module ResourceManager
30
+ ##
31
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
32
+ #
33
+ # @example
34
+ #
35
+ # require "google/cloud/resource_manager/v3/rest"
36
+ # client = ::Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
37
+ #
38
+ module V3
39
+ end
40
+ end
41
+ end
42
+ end
@@ -221,13 +221,11 @@ module Google
221
221
  # # Call the list_tag_bindings method.
222
222
  # result = client.list_tag_bindings request
223
223
  #
224
- # # The returned object is of type Gapic::PagedEnumerable. You can
225
- # # iterate over all elements by calling #each, and the enumerable
226
- # # will lazily make API calls to fetch subsequent pages. Other
227
- # # methods are also available for managing paging directly.
228
- # result.each do |response|
224
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
225
+ # # over elements, and API calls will be issued to fetch pages as needed.
226
+ # result.each do |item|
229
227
  # # Each element is of type ::Google::Cloud::ResourceManager::V3::TagBinding.
230
- # p response
228
+ # p item
231
229
  # end
232
230
  #
233
231
  def list_tag_bindings request, options = nil
@@ -309,14 +307,14 @@ module Google
309
307
  # # Call the create_tag_binding method.
310
308
  # result = client.create_tag_binding request
311
309
  #
312
- # # The returned object is of type Gapic::Operation. You can use this
313
- # # object to check the status of an operation, cancel it, or wait
314
- # # for results. Here is how to block until completion:
310
+ # # The returned object is of type Gapic::Operation. You can use it to
311
+ # # check the status of an operation, cancel it, or wait for results.
312
+ # # Here is how to wait for a response.
315
313
  # result.wait_until_done! timeout: 60
316
314
  # if result.response?
317
315
  # p result.response
318
316
  # else
319
- # puts "Error!"
317
+ # puts "No response received."
320
318
  # end
321
319
  #
322
320
  def create_tag_binding request, options = nil
@@ -396,14 +394,14 @@ module Google
396
394
  # # Call the delete_tag_binding method.
397
395
  # result = client.delete_tag_binding request
398
396
  #
399
- # # The returned object is of type Gapic::Operation. You can use this
400
- # # object to check the status of an operation, cancel it, or wait
401
- # # for results. Here is how to block until completion:
397
+ # # The returned object is of type Gapic::Operation. You can use it to
398
+ # # check the status of an operation, cancel it, or wait for results.
399
+ # # Here is how to wait for a response.
402
400
  # result.wait_until_done! timeout: 60
403
401
  # if result.response?
404
402
  # p result.response
405
403
  # else
406
- # puts "Error!"
404
+ # puts "No response received."
407
405
  # end
408
406
  #
409
407
  def delete_tag_binding 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