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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +28 -32
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +12 -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 +12 -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 +12 -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 +12 -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 +12 -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/organizations_pb.rb +0 -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/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- 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
|
-
#
|
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
|
-
# #
|
226
|
-
#
|
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
|
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
|
313
|
-
# #
|
314
|
-
# #
|
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 "
|
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
|
400
|
-
# #
|
401
|
-
# #
|
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 "
|
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
|
-
# #
|
163
|
-
#
|
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
|
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
|
257
|
-
# #
|
258
|
-
# #
|
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 "
|
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
|
544
|
-
# #
|
545
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|