google-cloud-resource_manager-v3 0.3.0 → 0.5.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 +3 -3
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +75 -67
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1281 -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 +16 -16
- data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +704 -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 +72 -71
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1304 -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 +43 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +127 -31
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +606 -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 +279 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest.rb +54 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +640 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +768 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/paths.rb +64 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +533 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/service_stub.rb +226 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest.rb +57 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds.rb +60 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +127 -40
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +1012 -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 +578 -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 +139 -47
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +1013 -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 +578 -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 +8 -2
- data/lib/google/cloud/resourcemanager/v3/folders_services_pb.rb +23 -17
- data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +0 -1
- data/lib/google/cloud/resourcemanager/v3/projects_services_pb.rb +16 -13
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +22 -0
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_services_pb.rb +7 -5
- data/lib/google/cloud/resourcemanager/v3/tag_holds_pb.rb +63 -0
- data/lib/google/cloud/resourcemanager/v3/tag_holds_services_pb.rb +54 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +11 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_services_pb.rb +6 -2
- data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +4 -0
- data/lib/google/cloud/resourcemanager/v3/tag_values_services_pb.rb +7 -4
- data/proto_docs/google/api/client.rb +372 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/resourcemanager/v3/folders.rb +25 -19
- data/proto_docs/google/cloud/resourcemanager/v3/organizations.rb +13 -11
- data/proto_docs/google/cloud/resourcemanager/v3/projects.rb +32 -30
- data/proto_docs/google/cloud/resourcemanager/v3/tag_bindings.rb +101 -15
- data/proto_docs/google/cloud/resourcemanager/v3/tag_holds.rb +161 -0
- data/proto_docs/google/cloud/resourcemanager/v3/tag_keys.rb +81 -23
- data/proto_docs/google/cloud/resourcemanager/v3/tag_values.rb +52 -29
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +46 -8
@@ -0,0 +1,55 @@
|
|
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/folders/credentials"
|
26
|
+
require "google/cloud/resource_manager/v3/folders/paths"
|
27
|
+
require "google/cloud/resource_manager/v3/folders/rest/operations"
|
28
|
+
require "google/cloud/resource_manager/v3/folders/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module ResourceManager
|
33
|
+
module V3
|
34
|
+
##
|
35
|
+
# Manages Cloud Platform folder resources.
|
36
|
+
# Folders can be used to organize the resources under an
|
37
|
+
# organization and to control the policies applied to groups of resources.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a REST client:
|
40
|
+
#
|
41
|
+
# require "google/cloud/resource_manager/v3/folders/rest"
|
42
|
+
# client = ::Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
|
43
|
+
#
|
44
|
+
module Folders
|
45
|
+
# Client for the REST transport
|
46
|
+
module Rest
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
55
|
+
require "google/cloud/resource_manager/v3/folders/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/resource_manager/v3/folders/credentials"
|
|
26
26
|
require "google/cloud/resource_manager/v3/folders/paths"
|
27
27
|
require "google/cloud/resource_manager/v3/folders/operations"
|
28
28
|
require "google/cloud/resource_manager/v3/folders/client"
|
29
|
+
require "google/cloud/resource_manager/v3/folders/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -36,11 +37,16 @@ module Google
|
|
36
37
|
# Folders can be used to organize the resources under an
|
37
38
|
# organization and to control the policies applied to groups of resources.
|
38
39
|
#
|
39
|
-
#
|
40
|
+
# @example Load this service and instantiate a gRPC client
|
40
41
|
#
|
41
42
|
# require "google/cloud/resource_manager/v3/folders"
|
42
43
|
# client = ::Google::Cloud::ResourceManager::V3::Folders::Client.new
|
43
44
|
#
|
45
|
+
# @example Load this service and instantiate a REST client
|
46
|
+
#
|
47
|
+
# require "google/cloud/resource_manager/v3/folders/rest"
|
48
|
+
# client = ::Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
|
49
|
+
#
|
44
50
|
module Folders
|
45
51
|
end
|
46
52
|
end
|
@@ -177,9 +177,9 @@ module Google
|
|
177
177
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
178
178
|
#
|
179
179
|
# @param name [::String]
|
180
|
-
# Required. The resource name of the Organization to fetch. This is the
|
181
|
-
# relative path in the API, formatted as
|
182
|
-
# For example, "organizations/1234".
|
180
|
+
# Required. The resource name of the Organization to fetch. This is the
|
181
|
+
# organization's relative path in the API, formatted as
|
182
|
+
# "organizations/[organizationId]". For example, "organizations/1234".
|
183
183
|
#
|
184
184
|
# @yield [response, operation] Access the result along with the RPC operation
|
185
185
|
# @yieldparam response [::Google::Cloud::ResourceManager::V3::Organization]
|
@@ -271,13 +271,15 @@ module Google
|
|
271
271
|
#
|
272
272
|
# @param page_size [::Integer]
|
273
273
|
# Optional. The maximum number of organizations to return in the response.
|
274
|
-
#
|
274
|
+
# The server can return fewer organizations than requested. If unspecified,
|
275
|
+
# server picks an appropriate default.
|
275
276
|
# @param page_token [::String]
|
276
|
-
# Optional. A pagination token returned from a previous call to
|
277
|
-
# that indicates from where listing should continue.
|
277
|
+
# Optional. A pagination token returned from a previous call to
|
278
|
+
# `SearchOrganizations` that indicates from where listing should continue.
|
278
279
|
# @param query [::String]
|
279
|
-
# Optional. An optional query string used to filter the Organizations to
|
280
|
-
# the response. Query rules are case-insensitive.
|
280
|
+
# Optional. An optional query string used to filter the Organizations to
|
281
|
+
# return in the response. Query rules are case-insensitive.
|
282
|
+
#
|
281
283
|
#
|
282
284
|
# ```
|
283
285
|
# | Field | Description |
|
@@ -315,13 +317,11 @@ module Google
|
|
315
317
|
# # Call the search_organizations method.
|
316
318
|
# result = client.search_organizations request
|
317
319
|
#
|
318
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
319
|
-
# #
|
320
|
-
#
|
321
|
-
# # methods are also available for managing paging directly.
|
322
|
-
# result.each do |response|
|
320
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
321
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
322
|
+
# result.each do |item|
|
323
323
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Organization.
|
324
|
-
# p
|
324
|
+
# p item
|
325
325
|
# end
|
326
326
|
#
|
327
327
|
def search_organizations request, options = nil
|
@@ -687,9 +687,9 @@ module Google
|
|
687
687
|
# * (`String`) The path to a service account key file in JSON format
|
688
688
|
# * (`Hash`) A service account key as a Hash
|
689
689
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
690
|
-
# (see the [googleauth docs](https://
|
690
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
691
691
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
692
|
-
# (see the [signet docs](https://
|
692
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
693
693
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
694
694
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
695
695
|
# * (`nil`) indicating no credentials
|