google-cloud-resource_manager-v3 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-resource_manager-v3.rb +21 -0
- data/lib/google/cloud/resource_manager/v3.rb +43 -0
- data/lib/google/cloud/resource_manager/v3/folders.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +1328 -0
- data/lib/google/cloud/resource_manager/v3/folders/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +664 -0
- data/lib/google/cloud/resource_manager/v3/folders/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/organizations.rb +49 -0
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +739 -0
- data/lib/google/cloud/resource_manager/v3/organizations/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/organizations/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/projects.rb +50 -0
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +1356 -0
- data/lib/google/cloud/resource_manager/v3/projects/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +664 -0
- data/lib/google/cloud/resource_manager/v3/projects/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +51 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +552 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +664 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys.rb +50 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +987 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +664 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/tag_values.rb +50 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +983 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +664 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/paths.rb +47 -0
- data/lib/google/cloud/resource_manager/v3/version.rb +28 -0
- data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +113 -0
- data/lib/google/cloud/resourcemanager/v3/folders_services_pb.rb +166 -0
- data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +66 -0
- data/lib/google/cloud/resourcemanager/v3/organizations_services_pb.rb +73 -0
- data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +113 -0
- data/lib/google/cloud/resourcemanager/v3/projects_services_pb.rb +187 -0
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +55 -0
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_services_pb.rb +55 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +79 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_services_pb.rb +77 -0
- data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +79 -0
- data/lib/google/cloud/resourcemanager/v3/tag_values_services_pb.rb +78 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/resourcemanager/v3/folders.rb +307 -0
- data/proto_docs/google/cloud/resourcemanager/v3/organizations.rb +152 -0
- data/proto_docs/google/cloud/resourcemanager/v3/projects.rb +395 -0
- data/proto_docs/google/cloud/resourcemanager/v3/tag_bindings.rb +127 -0
- data/proto_docs/google/cloud/resourcemanager/v3/tag_keys.rb +181 -0
- data/proto_docs/google/cloud/resourcemanager/v3/tag_values.rb +179 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
- data/proto_docs/google/iam/v1/options.rb +40 -0
- data/proto_docs/google/iam/v1/policy.rb +248 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +283 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/cloud/resourcemanager/v3/projects.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/api/client_pb'
|
|
8
|
+
require 'google/api/field_behavior_pb'
|
|
9
|
+
require 'google/api/resource_pb'
|
|
10
|
+
require 'google/iam/v1/iam_policy_pb'
|
|
11
|
+
require 'google/iam/v1/policy_pb'
|
|
12
|
+
require 'google/longrunning/operations_pb'
|
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
|
+
add_file("google/cloud/resourcemanager/v3/projects.proto", :syntax => :proto3) do
|
|
17
|
+
add_message "google.cloud.resourcemanager.v3.Project" do
|
|
18
|
+
optional :name, :string, 1
|
|
19
|
+
optional :parent, :string, 2
|
|
20
|
+
optional :project_id, :string, 3
|
|
21
|
+
optional :state, :enum, 4, "google.cloud.resourcemanager.v3.Project.State"
|
|
22
|
+
optional :display_name, :string, 5
|
|
23
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
|
24
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
|
25
|
+
optional :delete_time, :message, 8, "google.protobuf.Timestamp"
|
|
26
|
+
optional :etag, :string, 9
|
|
27
|
+
map :labels, :string, :string, 10
|
|
28
|
+
end
|
|
29
|
+
add_enum "google.cloud.resourcemanager.v3.Project.State" do
|
|
30
|
+
value :STATE_UNSPECIFIED, 0
|
|
31
|
+
value :ACTIVE, 1
|
|
32
|
+
value :DELETE_REQUESTED, 2
|
|
33
|
+
end
|
|
34
|
+
add_message "google.cloud.resourcemanager.v3.GetProjectRequest" do
|
|
35
|
+
optional :name, :string, 1
|
|
36
|
+
end
|
|
37
|
+
add_message "google.cloud.resourcemanager.v3.ListProjectsRequest" do
|
|
38
|
+
optional :parent, :string, 1
|
|
39
|
+
optional :page_token, :string, 2
|
|
40
|
+
optional :page_size, :int32, 3
|
|
41
|
+
optional :show_deleted, :bool, 4
|
|
42
|
+
end
|
|
43
|
+
add_message "google.cloud.resourcemanager.v3.ListProjectsResponse" do
|
|
44
|
+
repeated :projects, :message, 1, "google.cloud.resourcemanager.v3.Project"
|
|
45
|
+
optional :next_page_token, :string, 2
|
|
46
|
+
end
|
|
47
|
+
add_message "google.cloud.resourcemanager.v3.SearchProjectsRequest" do
|
|
48
|
+
optional :query, :string, 1
|
|
49
|
+
optional :page_token, :string, 2
|
|
50
|
+
optional :page_size, :int32, 3
|
|
51
|
+
end
|
|
52
|
+
add_message "google.cloud.resourcemanager.v3.SearchProjectsResponse" do
|
|
53
|
+
repeated :projects, :message, 1, "google.cloud.resourcemanager.v3.Project"
|
|
54
|
+
optional :next_page_token, :string, 2
|
|
55
|
+
end
|
|
56
|
+
add_message "google.cloud.resourcemanager.v3.CreateProjectRequest" do
|
|
57
|
+
optional :project, :message, 1, "google.cloud.resourcemanager.v3.Project"
|
|
58
|
+
end
|
|
59
|
+
add_message "google.cloud.resourcemanager.v3.CreateProjectMetadata" do
|
|
60
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
|
61
|
+
optional :gettable, :bool, 2
|
|
62
|
+
optional :ready, :bool, 3
|
|
63
|
+
end
|
|
64
|
+
add_message "google.cloud.resourcemanager.v3.UpdateProjectRequest" do
|
|
65
|
+
optional :project, :message, 1, "google.cloud.resourcemanager.v3.Project"
|
|
66
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
|
67
|
+
end
|
|
68
|
+
add_message "google.cloud.resourcemanager.v3.UpdateProjectMetadata" do
|
|
69
|
+
end
|
|
70
|
+
add_message "google.cloud.resourcemanager.v3.MoveProjectRequest" do
|
|
71
|
+
optional :name, :string, 1
|
|
72
|
+
optional :destination_parent, :string, 2
|
|
73
|
+
end
|
|
74
|
+
add_message "google.cloud.resourcemanager.v3.MoveProjectMetadata" do
|
|
75
|
+
end
|
|
76
|
+
add_message "google.cloud.resourcemanager.v3.DeleteProjectRequest" do
|
|
77
|
+
optional :name, :string, 1
|
|
78
|
+
end
|
|
79
|
+
add_message "google.cloud.resourcemanager.v3.DeleteProjectMetadata" do
|
|
80
|
+
end
|
|
81
|
+
add_message "google.cloud.resourcemanager.v3.UndeleteProjectRequest" do
|
|
82
|
+
optional :name, :string, 1
|
|
83
|
+
end
|
|
84
|
+
add_message "google.cloud.resourcemanager.v3.UndeleteProjectMetadata" do
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
module Google
|
|
90
|
+
module Cloud
|
|
91
|
+
module ResourceManager
|
|
92
|
+
module V3
|
|
93
|
+
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.Project").msgclass
|
|
94
|
+
Project::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.Project.State").enummodule
|
|
95
|
+
GetProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.GetProjectRequest").msgclass
|
|
96
|
+
ListProjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListProjectsRequest").msgclass
|
|
97
|
+
ListProjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListProjectsResponse").msgclass
|
|
98
|
+
SearchProjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.SearchProjectsRequest").msgclass
|
|
99
|
+
SearchProjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.SearchProjectsResponse").msgclass
|
|
100
|
+
CreateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateProjectRequest").msgclass
|
|
101
|
+
CreateProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateProjectMetadata").msgclass
|
|
102
|
+
UpdateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateProjectRequest").msgclass
|
|
103
|
+
UpdateProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateProjectMetadata").msgclass
|
|
104
|
+
MoveProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.MoveProjectRequest").msgclass
|
|
105
|
+
MoveProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.MoveProjectMetadata").msgclass
|
|
106
|
+
DeleteProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteProjectRequest").msgclass
|
|
107
|
+
DeleteProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteProjectMetadata").msgclass
|
|
108
|
+
UndeleteProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UndeleteProjectRequest").msgclass
|
|
109
|
+
UndeleteProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UndeleteProjectMetadata").msgclass
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/resourcemanager/v3/projects.proto for package 'Google.Cloud.ResourceManager.V3'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2021 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/resourcemanager/v3/projects_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module ResourceManager
|
|
25
|
+
module V3
|
|
26
|
+
module Projects
|
|
27
|
+
# Manages Google Cloud Projects.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.resourcemanager.v3.Projects'
|
|
35
|
+
|
|
36
|
+
# Retrieves the project identified by the specified `name` (for example,
|
|
37
|
+
# `projects/415104041262`).
|
|
38
|
+
#
|
|
39
|
+
# The caller must have `resourcemanager.projects.get` permission
|
|
40
|
+
# for this project.
|
|
41
|
+
rpc :GetProject, ::Google::Cloud::ResourceManager::V3::GetProjectRequest, ::Google::Cloud::ResourceManager::V3::Project
|
|
42
|
+
# Lists projects that are direct children of the specified folder or
|
|
43
|
+
# organization resource. `list()` provides a strongly consistent view of the
|
|
44
|
+
# projects underneath the specified parent resource. `list()` returns
|
|
45
|
+
# projects sorted based upon the (ascending) lexical ordering of their
|
|
46
|
+
# `display_name`. The caller must have `resourcemanager.projects.list`
|
|
47
|
+
# permission on the identified parent.
|
|
48
|
+
rpc :ListProjects, ::Google::Cloud::ResourceManager::V3::ListProjectsRequest, ::Google::Cloud::ResourceManager::V3::ListProjectsResponse
|
|
49
|
+
# Search for projects that the caller has both `resourcemanager.projects.get`
|
|
50
|
+
# permission on, and also satisfy the specified query.
|
|
51
|
+
#
|
|
52
|
+
# This method returns projects in an unspecified order.
|
|
53
|
+
#
|
|
54
|
+
# This method is eventually consistent with project mutations; this means
|
|
55
|
+
# that a newly created project may not appear in the results or recent
|
|
56
|
+
# updates to an existing project may not be reflected in the results. To
|
|
57
|
+
# retrieve the latest state of a project, use the
|
|
58
|
+
# [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.
|
|
59
|
+
rpc :SearchProjects, ::Google::Cloud::ResourceManager::V3::SearchProjectsRequest, ::Google::Cloud::ResourceManager::V3::SearchProjectsResponse
|
|
60
|
+
# Request that a new project be created. The result is an `Operation` which
|
|
61
|
+
# can be used to track the creation process. This process usually takes a few
|
|
62
|
+
# seconds, but can sometimes take much longer. The tracking `Operation` is
|
|
63
|
+
# automatically deleted after a few hours, so there is no need to call
|
|
64
|
+
# `DeleteOperation`.
|
|
65
|
+
rpc :CreateProject, ::Google::Cloud::ResourceManager::V3::CreateProjectRequest, ::Google::Longrunning::Operation
|
|
66
|
+
# Updates the `display_name` and labels of the project identified by the
|
|
67
|
+
# specified `name` (for example, `projects/415104041262`). Deleting all
|
|
68
|
+
# labels requires an update mask for labels field.
|
|
69
|
+
#
|
|
70
|
+
# The caller must have `resourcemanager.projects.update` permission for this
|
|
71
|
+
# project.
|
|
72
|
+
rpc :UpdateProject, ::Google::Cloud::ResourceManager::V3::UpdateProjectRequest, ::Google::Longrunning::Operation
|
|
73
|
+
# Move a project to another place in your resource hierarchy, under a new
|
|
74
|
+
# resource parent.
|
|
75
|
+
#
|
|
76
|
+
# Returns an operation which can be used to track the process of the project
|
|
77
|
+
# move workflow.
|
|
78
|
+
# Upon success, the `Operation.response` field will be populated with the
|
|
79
|
+
# moved project.
|
|
80
|
+
#
|
|
81
|
+
# The caller must have `resourcemanager.projects.update` permission on the
|
|
82
|
+
# project and have `resourcemanager.projects.move` permission on the
|
|
83
|
+
# project's current and proposed new parent.
|
|
84
|
+
#
|
|
85
|
+
#
|
|
86
|
+
rpc :MoveProject, ::Google::Cloud::ResourceManager::V3::MoveProjectRequest, ::Google::Longrunning::Operation
|
|
87
|
+
# Marks the project identified by the specified
|
|
88
|
+
# `name` (for example, `projects/415104041262`) for deletion.
|
|
89
|
+
#
|
|
90
|
+
# This method will only affect the project if it has a lifecycle state of
|
|
91
|
+
# [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE].
|
|
92
|
+
#
|
|
93
|
+
# This method changes the Project's lifecycle state from
|
|
94
|
+
# [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE]
|
|
95
|
+
# to [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Project.State.DELETE_REQUESTED].
|
|
96
|
+
# The deletion starts at an unspecified time,
|
|
97
|
+
# at which point the Project is no longer accessible.
|
|
98
|
+
#
|
|
99
|
+
# Until the deletion completes, you can check the lifecycle state
|
|
100
|
+
# checked by retrieving the project with [GetProject]
|
|
101
|
+
# [google.cloud.resourcemanager.v3.Projects.GetProject],
|
|
102
|
+
# and the project remains visible to [ListProjects]
|
|
103
|
+
# [google.cloud.resourcemanager.v3.Projects.ListProjects].
|
|
104
|
+
# However, you cannot update the project.
|
|
105
|
+
#
|
|
106
|
+
# After the deletion completes, the project is not retrievable by
|
|
107
|
+
# the [GetProject]
|
|
108
|
+
# [google.cloud.resourcemanager.v3.Projects.GetProject],
|
|
109
|
+
# [ListProjects]
|
|
110
|
+
# [google.cloud.resourcemanager.v3.Projects.ListProjects], and
|
|
111
|
+
# [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects]
|
|
112
|
+
# methods.
|
|
113
|
+
#
|
|
114
|
+
# This method behaves idempotently, such that deleting a `DELETE_REQUESTED`
|
|
115
|
+
# project will not cause an error, but also won't do anything.
|
|
116
|
+
#
|
|
117
|
+
# The caller must have `resourcemanager.projects.delete` permissions for this
|
|
118
|
+
# project.
|
|
119
|
+
rpc :DeleteProject, ::Google::Cloud::ResourceManager::V3::DeleteProjectRequest, ::Google::Longrunning::Operation
|
|
120
|
+
# Restores the project identified by the specified
|
|
121
|
+
# `name` (for example, `projects/415104041262`).
|
|
122
|
+
# You can only use this method for a project that has a lifecycle state of
|
|
123
|
+
# [DELETE_REQUESTED]
|
|
124
|
+
# [Projects.State.DELETE_REQUESTED].
|
|
125
|
+
# After deletion starts, the project cannot be restored.
|
|
126
|
+
#
|
|
127
|
+
# The caller must have `resourcemanager.projects.undelete` permission for
|
|
128
|
+
# this project.
|
|
129
|
+
rpc :UndeleteProject, ::Google::Cloud::ResourceManager::V3::UndeleteProjectRequest, ::Google::Longrunning::Operation
|
|
130
|
+
# Returns the IAM access control policy for the specified project.
|
|
131
|
+
# Permission is denied if the policy or the resource do not exist.
|
|
132
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
|
133
|
+
# Sets the IAM access control policy for the specified project.
|
|
134
|
+
#
|
|
135
|
+
# CAUTION: This method will replace the existing policy, and cannot be used
|
|
136
|
+
# to append additional IAM settings.
|
|
137
|
+
#
|
|
138
|
+
# Note: Removing service accounts from policies or changing their roles can
|
|
139
|
+
# render services completely inoperable. It is important to understand how
|
|
140
|
+
# the service account is being used before removing or updating its roles.
|
|
141
|
+
#
|
|
142
|
+
# The following constraints apply when using `setIamPolicy()`:
|
|
143
|
+
#
|
|
144
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
|
145
|
+
# `members` in a `Binding` of a `Policy`.
|
|
146
|
+
#
|
|
147
|
+
# + The owner role can be granted to a `user`, `serviceAccount`, or a group
|
|
148
|
+
# that is part of an organization. For example,
|
|
149
|
+
# group@myownpersonaldomain.com could be added as an owner to a project in
|
|
150
|
+
# the myownpersonaldomain.com organization, but not the examplepetstore.com
|
|
151
|
+
# organization.
|
|
152
|
+
#
|
|
153
|
+
# + Service accounts can be made owners of a project directly
|
|
154
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
|
155
|
+
# invited using the Cloud Platform console and must accept the invitation.
|
|
156
|
+
#
|
|
157
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
|
158
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
|
159
|
+
# explicitly accept the invitation.
|
|
160
|
+
#
|
|
161
|
+
# + Invitations to grant the owner role cannot be sent using
|
|
162
|
+
# `setIamPolicy()`;
|
|
163
|
+
# they must be sent only using the Cloud Platform Console.
|
|
164
|
+
#
|
|
165
|
+
# + Membership changes that leave the project without any owners that have
|
|
166
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
|
167
|
+
#
|
|
168
|
+
# + If the project is not part of an organization, there must be at least
|
|
169
|
+
# one owner who has accepted the Terms of Service (ToS) agreement in the
|
|
170
|
+
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
|
|
171
|
+
# from the policy will fail. This restriction also applies to legacy
|
|
172
|
+
# projects that no longer have owners who have accepted the ToS. Edits to
|
|
173
|
+
# IAM policies will be rejected until the lack of a ToS-accepting owner is
|
|
174
|
+
# rectified.
|
|
175
|
+
#
|
|
176
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
|
177
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
|
178
|
+
# Returns permissions that a caller has on the specified project.
|
|
179
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
Stub = Service.rpc_stub_class
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/cloud/resourcemanager/v3/tag_bindings.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/api/client_pb'
|
|
8
|
+
require 'google/api/field_behavior_pb'
|
|
9
|
+
require 'google/api/resource_pb'
|
|
10
|
+
require 'google/longrunning/operations_pb'
|
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
|
+
add_file("google/cloud/resourcemanager/v3/tag_bindings.proto", :syntax => :proto3) do
|
|
13
|
+
add_message "google.cloud.resourcemanager.v3.TagBinding" do
|
|
14
|
+
optional :name, :string, 1
|
|
15
|
+
optional :parent, :string, 2
|
|
16
|
+
optional :tag_value, :string, 3
|
|
17
|
+
end
|
|
18
|
+
add_message "google.cloud.resourcemanager.v3.CreateTagBindingMetadata" do
|
|
19
|
+
end
|
|
20
|
+
add_message "google.cloud.resourcemanager.v3.CreateTagBindingRequest" do
|
|
21
|
+
optional :tag_binding, :message, 1, "google.cloud.resourcemanager.v3.TagBinding"
|
|
22
|
+
optional :validate_only, :bool, 2
|
|
23
|
+
end
|
|
24
|
+
add_message "google.cloud.resourcemanager.v3.DeleteTagBindingMetadata" do
|
|
25
|
+
end
|
|
26
|
+
add_message "google.cloud.resourcemanager.v3.DeleteTagBindingRequest" do
|
|
27
|
+
optional :name, :string, 1
|
|
28
|
+
end
|
|
29
|
+
add_message "google.cloud.resourcemanager.v3.ListTagBindingsRequest" do
|
|
30
|
+
optional :parent, :string, 1
|
|
31
|
+
optional :page_size, :int32, 2
|
|
32
|
+
optional :page_token, :string, 3
|
|
33
|
+
end
|
|
34
|
+
add_message "google.cloud.resourcemanager.v3.ListTagBindingsResponse" do
|
|
35
|
+
repeated :tag_bindings, :message, 1, "google.cloud.resourcemanager.v3.TagBinding"
|
|
36
|
+
optional :next_page_token, :string, 2
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
module Google
|
|
42
|
+
module Cloud
|
|
43
|
+
module ResourceManager
|
|
44
|
+
module V3
|
|
45
|
+
TagBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.TagBinding").msgclass
|
|
46
|
+
CreateTagBindingMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateTagBindingMetadata").msgclass
|
|
47
|
+
CreateTagBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateTagBindingRequest").msgclass
|
|
48
|
+
DeleteTagBindingMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteTagBindingMetadata").msgclass
|
|
49
|
+
DeleteTagBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteTagBindingRequest").msgclass
|
|
50
|
+
ListTagBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListTagBindingsRequest").msgclass
|
|
51
|
+
ListTagBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListTagBindingsResponse").msgclass
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/resourcemanager/v3/tag_bindings.proto for package 'Google.Cloud.ResourceManager.V3'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2021 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/resourcemanager/v3/tag_bindings_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module ResourceManager
|
|
25
|
+
module V3
|
|
26
|
+
module TagBindings
|
|
27
|
+
# Allow users to create and manage TagBindings between TagValues and
|
|
28
|
+
# different cloud resources throughout the GCP resource hierarchy.
|
|
29
|
+
class Service
|
|
30
|
+
|
|
31
|
+
include GRPC::GenericService
|
|
32
|
+
|
|
33
|
+
self.marshal_class_method = :encode
|
|
34
|
+
self.unmarshal_class_method = :decode
|
|
35
|
+
self.service_name = 'google.cloud.resourcemanager.v3.TagBindings'
|
|
36
|
+
|
|
37
|
+
# Lists the TagBindings for the given cloud resource, as specified with
|
|
38
|
+
# `parent`.
|
|
39
|
+
#
|
|
40
|
+
# NOTE: The `parent` field is expected to be a full resource name:
|
|
41
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
42
|
+
rpc :ListTagBindings, ::Google::Cloud::ResourceManager::V3::ListTagBindingsRequest, ::Google::Cloud::ResourceManager::V3::ListTagBindingsResponse
|
|
43
|
+
# Creates a TagBinding between a TagValue and a cloud resource
|
|
44
|
+
# (currently project, folder, or organization).
|
|
45
|
+
rpc :CreateTagBinding, ::Google::Cloud::ResourceManager::V3::CreateTagBindingRequest, ::Google::Longrunning::Operation
|
|
46
|
+
# Deletes a TagBinding.
|
|
47
|
+
rpc :DeleteTagBinding, ::Google::Cloud::ResourceManager::V3::DeleteTagBindingRequest, ::Google::Longrunning::Operation
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
Stub = Service.rpc_stub_class
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/cloud/resourcemanager/v3/tag_keys.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/api/client_pb'
|
|
8
|
+
require 'google/api/field_behavior_pb'
|
|
9
|
+
require 'google/api/resource_pb'
|
|
10
|
+
require 'google/iam/v1/iam_policy_pb'
|
|
11
|
+
require 'google/iam/v1/policy_pb'
|
|
12
|
+
require 'google/longrunning/operations_pb'
|
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
|
+
add_file("google/cloud/resourcemanager/v3/tag_keys.proto", :syntax => :proto3) do
|
|
17
|
+
add_message "google.cloud.resourcemanager.v3.TagKey" do
|
|
18
|
+
optional :name, :string, 1
|
|
19
|
+
optional :parent, :string, 2
|
|
20
|
+
optional :short_name, :string, 3
|
|
21
|
+
optional :namespaced_name, :string, 4
|
|
22
|
+
optional :description, :string, 5
|
|
23
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
|
24
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
|
25
|
+
optional :etag, :string, 8
|
|
26
|
+
end
|
|
27
|
+
add_message "google.cloud.resourcemanager.v3.ListTagKeysRequest" do
|
|
28
|
+
optional :parent, :string, 1
|
|
29
|
+
optional :page_size, :int32, 2
|
|
30
|
+
optional :page_token, :string, 3
|
|
31
|
+
end
|
|
32
|
+
add_message "google.cloud.resourcemanager.v3.ListTagKeysResponse" do
|
|
33
|
+
repeated :tag_keys, :message, 1, "google.cloud.resourcemanager.v3.TagKey"
|
|
34
|
+
optional :next_page_token, :string, 2
|
|
35
|
+
end
|
|
36
|
+
add_message "google.cloud.resourcemanager.v3.GetTagKeyRequest" do
|
|
37
|
+
optional :name, :string, 1
|
|
38
|
+
end
|
|
39
|
+
add_message "google.cloud.resourcemanager.v3.CreateTagKeyRequest" do
|
|
40
|
+
optional :tag_key, :message, 1, "google.cloud.resourcemanager.v3.TagKey"
|
|
41
|
+
optional :validate_only, :bool, 2
|
|
42
|
+
end
|
|
43
|
+
add_message "google.cloud.resourcemanager.v3.CreateTagKeyMetadata" do
|
|
44
|
+
end
|
|
45
|
+
add_message "google.cloud.resourcemanager.v3.UpdateTagKeyRequest" do
|
|
46
|
+
optional :tag_key, :message, 1, "google.cloud.resourcemanager.v3.TagKey"
|
|
47
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
|
48
|
+
optional :validate_only, :bool, 3
|
|
49
|
+
end
|
|
50
|
+
add_message "google.cloud.resourcemanager.v3.UpdateTagKeyMetadata" do
|
|
51
|
+
end
|
|
52
|
+
add_message "google.cloud.resourcemanager.v3.DeleteTagKeyRequest" do
|
|
53
|
+
optional :name, :string, 1
|
|
54
|
+
optional :validate_only, :bool, 2
|
|
55
|
+
optional :etag, :string, 3
|
|
56
|
+
end
|
|
57
|
+
add_message "google.cloud.resourcemanager.v3.DeleteTagKeyMetadata" do
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
module Google
|
|
63
|
+
module Cloud
|
|
64
|
+
module ResourceManager
|
|
65
|
+
module V3
|
|
66
|
+
TagKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.TagKey").msgclass
|
|
67
|
+
ListTagKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListTagKeysRequest").msgclass
|
|
68
|
+
ListTagKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListTagKeysResponse").msgclass
|
|
69
|
+
GetTagKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.GetTagKeyRequest").msgclass
|
|
70
|
+
CreateTagKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateTagKeyRequest").msgclass
|
|
71
|
+
CreateTagKeyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateTagKeyMetadata").msgclass
|
|
72
|
+
UpdateTagKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateTagKeyRequest").msgclass
|
|
73
|
+
UpdateTagKeyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateTagKeyMetadata").msgclass
|
|
74
|
+
DeleteTagKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteTagKeyRequest").msgclass
|
|
75
|
+
DeleteTagKeyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteTagKeyMetadata").msgclass
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|