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,395 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module ResourceManager
|
|
23
|
+
module V3
|
|
24
|
+
# A project is a high-level Google Cloud entity. It is a
|
|
25
|
+
# container for ACLs, APIs, App Engine Apps, VMs, and other
|
|
26
|
+
# Google Cloud Platform resources.
|
|
27
|
+
# @!attribute [r] name
|
|
28
|
+
# @return [::String]
|
|
29
|
+
# Output only. The unique resource name of the project. It is an int64 generated number
|
|
30
|
+
# prefixed by "projects/".
|
|
31
|
+
#
|
|
32
|
+
# Example: `projects/415104041262`
|
|
33
|
+
# @!attribute [rw] parent
|
|
34
|
+
# @return [::String]
|
|
35
|
+
# Optional. A reference to a parent Resource. eg., `organizations/123` or
|
|
36
|
+
# `folders/876`.
|
|
37
|
+
# @!attribute [rw] project_id
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# Immutable. The unique, user-assigned id of the project.
|
|
40
|
+
# It must be 6 to 30 lowercase ASCII letters, digits, or hyphens.
|
|
41
|
+
# It must start with a letter.
|
|
42
|
+
# Trailing hyphens are prohibited.
|
|
43
|
+
#
|
|
44
|
+
# Example: `tokyo-rain-123`
|
|
45
|
+
# @!attribute [r] state
|
|
46
|
+
# @return [::Google::Cloud::ResourceManager::V3::Project::State]
|
|
47
|
+
# Output only. The project lifecycle state.
|
|
48
|
+
# @!attribute [rw] display_name
|
|
49
|
+
# @return [::String]
|
|
50
|
+
# Optional. A user-assigned display name of the project.
|
|
51
|
+
# When present it must be between 4 to 30 characters.
|
|
52
|
+
# Allowed characters are: lowercase and uppercase letters, numbers,
|
|
53
|
+
# hyphen, single-quote, double-quote, space, and exclamation point.
|
|
54
|
+
#
|
|
55
|
+
# Example: `My Project`
|
|
56
|
+
# @!attribute [r] create_time
|
|
57
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
58
|
+
# Output only. Creation time.
|
|
59
|
+
# @!attribute [r] update_time
|
|
60
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
61
|
+
# Output only. The most recent time this resource was modified.
|
|
62
|
+
# @!attribute [r] delete_time
|
|
63
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
64
|
+
# Output only. The time at which this resource was requested for deletion.
|
|
65
|
+
# @!attribute [r] etag
|
|
66
|
+
# @return [::String]
|
|
67
|
+
# Output only. A checksum computed by the server based on the current value of the Project
|
|
68
|
+
# resource. This may be sent on update and delete requests to ensure the
|
|
69
|
+
# client has an up-to-date value before proceeding.
|
|
70
|
+
# @!attribute [rw] labels
|
|
71
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
72
|
+
# Optional. The labels associated with this project.
|
|
73
|
+
#
|
|
74
|
+
# Label keys must be between 1 and 63 characters long and must conform
|
|
75
|
+
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
|
|
76
|
+
#
|
|
77
|
+
# Label values must be between 0 and 63 characters long and must conform
|
|
78
|
+
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
|
79
|
+
#
|
|
80
|
+
# No more than 256 labels can be associated with a given resource.
|
|
81
|
+
#
|
|
82
|
+
# Clients should store labels in a representation such as JSON that does not
|
|
83
|
+
# depend on specific characters being disallowed.
|
|
84
|
+
#
|
|
85
|
+
# Example: `"myBusinessDimension" : "businessValue"`
|
|
86
|
+
class Project
|
|
87
|
+
include ::Google::Protobuf::MessageExts
|
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
89
|
+
|
|
90
|
+
# @!attribute [rw] key
|
|
91
|
+
# @return [::String]
|
|
92
|
+
# @!attribute [rw] value
|
|
93
|
+
# @return [::String]
|
|
94
|
+
class LabelsEntry
|
|
95
|
+
include ::Google::Protobuf::MessageExts
|
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Project lifecycle states.
|
|
100
|
+
module State
|
|
101
|
+
# Unspecified state. This is only used/useful for distinguishing
|
|
102
|
+
# unset values.
|
|
103
|
+
STATE_UNSPECIFIED = 0
|
|
104
|
+
|
|
105
|
+
# The normal and active state.
|
|
106
|
+
ACTIVE = 1
|
|
107
|
+
|
|
108
|
+
# The project has been marked for deletion by the user
|
|
109
|
+
# (by invoking
|
|
110
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#delete_project DeleteProject})
|
|
111
|
+
# or by the system (Google Cloud Platform).
|
|
112
|
+
# This can generally be reversed by invoking [UndeleteProject]
|
|
113
|
+
# [google.cloud.resourcemanager.v3.Projects.UndeleteProject].
|
|
114
|
+
DELETE_REQUESTED = 2
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# The request sent to the
|
|
119
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#get_project GetProject}
|
|
120
|
+
# method.
|
|
121
|
+
# @!attribute [rw] name
|
|
122
|
+
# @return [::String]
|
|
123
|
+
# Required. The name of the project (for example, `projects/415104041262`).
|
|
124
|
+
class GetProjectRequest
|
|
125
|
+
include ::Google::Protobuf::MessageExts
|
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# The request sent to the
|
|
130
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#list_projects ListProjects}
|
|
131
|
+
# method.
|
|
132
|
+
# @!attribute [rw] parent
|
|
133
|
+
# @return [::String]
|
|
134
|
+
# Required. The name of the parent resource to list projects under.
|
|
135
|
+
#
|
|
136
|
+
# For example, setting this field to 'folders/1234' would list all projects
|
|
137
|
+
# directly under that folder.
|
|
138
|
+
# @!attribute [rw] page_token
|
|
139
|
+
# @return [::String]
|
|
140
|
+
# Optional. A pagination token returned from a previous call to [ListProjects]
|
|
141
|
+
# [google.cloud.resourcemanager.v3.Projects.ListProjects]
|
|
142
|
+
# that indicates from where listing should continue.
|
|
143
|
+
# @!attribute [rw] page_size
|
|
144
|
+
# @return [::Integer]
|
|
145
|
+
# Optional. The maximum number of projects to return in the response.
|
|
146
|
+
# The server can return fewer projects than requested.
|
|
147
|
+
# If unspecified, server picks an appropriate default.
|
|
148
|
+
# @!attribute [rw] show_deleted
|
|
149
|
+
# @return [::Boolean]
|
|
150
|
+
# Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be
|
|
151
|
+
# returned. Normally only `ACTIVE` projects are returned.
|
|
152
|
+
class ListProjectsRequest
|
|
153
|
+
include ::Google::Protobuf::MessageExts
|
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# A page of the response received from the
|
|
158
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#list_projects ListProjects}
|
|
159
|
+
# method.
|
|
160
|
+
#
|
|
161
|
+
# A paginated response where more pages are available has
|
|
162
|
+
# `next_page_token` set. This token can be used in a subsequent request to
|
|
163
|
+
# retrieve the next request page.
|
|
164
|
+
#
|
|
165
|
+
# NOTE: A response may contain fewer elements than the request `page_size` and
|
|
166
|
+
# still have a `next_page_token`.
|
|
167
|
+
# @!attribute [rw] projects
|
|
168
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::Project>]
|
|
169
|
+
# The list of Projects under the parent. This list can be paginated.
|
|
170
|
+
# @!attribute [rw] next_page_token
|
|
171
|
+
# @return [::String]
|
|
172
|
+
# Pagination token.
|
|
173
|
+
#
|
|
174
|
+
# If the result set is too large to fit in a single response, this token
|
|
175
|
+
# is returned. It encodes the position of the current result cursor.
|
|
176
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
|
177
|
+
# gives the next page of the results.
|
|
178
|
+
#
|
|
179
|
+
# When `next_page_token` is not filled in, there is no next page and
|
|
180
|
+
# the list returned is the last page in the result set.
|
|
181
|
+
#
|
|
182
|
+
# Pagination tokens have a limited lifetime.
|
|
183
|
+
class ListProjectsResponse
|
|
184
|
+
include ::Google::Protobuf::MessageExts
|
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# The request sent to the
|
|
189
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#search_projects SearchProjects}
|
|
190
|
+
# method.
|
|
191
|
+
# @!attribute [rw] query
|
|
192
|
+
# @return [::String]
|
|
193
|
+
# Optional. A query string for searching for projects that the caller has
|
|
194
|
+
# `resourcemanager.projects.get` permission to. If multiple fields are
|
|
195
|
+
# included in the query, the it will return results that match any of the
|
|
196
|
+
# fields. Some eligible fields are:
|
|
197
|
+
#
|
|
198
|
+
# | Field | Description |
|
|
199
|
+
# |-------------------------|----------------------------------------------|
|
|
200
|
+
# | displayName, name | Filters by displayName. |
|
|
201
|
+
# | parent | Project's parent. (for example: folders/123,
|
|
202
|
+
# organizations/*) Prefer parent field over parent.type and parent.id. |
|
|
203
|
+
# | parent.type | Parent's type: `folder` or `organization`. |
|
|
204
|
+
# | parent.id | Parent's id number (for example: 123) |
|
|
205
|
+
# | id, projectId | Filters by projectId. |
|
|
206
|
+
# | state, lifecycleState | Filters by state. |
|
|
207
|
+
# | labels | Filters by label name or value. |
|
|
208
|
+
# | labels.<key> (where *key* is the name of a label) | Filters by label
|
|
209
|
+
# name. |
|
|
210
|
+
#
|
|
211
|
+
# Search expressions are case insensitive.
|
|
212
|
+
#
|
|
213
|
+
# Some examples queries:
|
|
214
|
+
#
|
|
215
|
+
# | Query | Description |
|
|
216
|
+
# |------------------|-----------------------------------------------------|
|
|
217
|
+
# | name:how* | The project's name starts with "how". |
|
|
218
|
+
# | name:Howl | The project's name is `Howl` or `howl`. |
|
|
219
|
+
# | name:HOWL | Equivalent to above. |
|
|
220
|
+
# | NAME:howl | Equivalent to above. |
|
|
221
|
+
# | labels.color:* | The project has the label `color`. |
|
|
222
|
+
# | labels.color:red | The project's label `color` has the value `red`. |
|
|
223
|
+
# | labels.color:red labels.size:big | The project's label `color` has
|
|
224
|
+
# the value `red` and its label `size` has the value `big`. |
|
|
225
|
+
#
|
|
226
|
+
# If no query is specified, the call will return projects for which the user
|
|
227
|
+
# has the `resourcemanager.projects.get` permission.
|
|
228
|
+
# @!attribute [rw] page_token
|
|
229
|
+
# @return [::String]
|
|
230
|
+
# Optional. A pagination token returned from a previous call to [ListProjects]
|
|
231
|
+
# [google.cloud.resourcemanager.v3.Projects.ListProjects]
|
|
232
|
+
# that indicates from where listing should continue.
|
|
233
|
+
# @!attribute [rw] page_size
|
|
234
|
+
# @return [::Integer]
|
|
235
|
+
# Optional. The maximum number of projects to return in the response.
|
|
236
|
+
# The server can return fewer projects than requested.
|
|
237
|
+
# If unspecified, server picks an appropriate default.
|
|
238
|
+
class SearchProjectsRequest
|
|
239
|
+
include ::Google::Protobuf::MessageExts
|
|
240
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# A page of the response received from the
|
|
244
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#search_projects SearchProjects}
|
|
245
|
+
# method.
|
|
246
|
+
#
|
|
247
|
+
# A paginated response where more pages are available has
|
|
248
|
+
# `next_page_token` set. This token can be used in a subsequent request to
|
|
249
|
+
# retrieve the next request page.
|
|
250
|
+
# @!attribute [rw] projects
|
|
251
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::Project>]
|
|
252
|
+
# The list of Projects that matched the list filter query. This list can
|
|
253
|
+
# be paginated.
|
|
254
|
+
# @!attribute [rw] next_page_token
|
|
255
|
+
# @return [::String]
|
|
256
|
+
# Pagination token.
|
|
257
|
+
#
|
|
258
|
+
# If the result set is too large to fit in a single response, this token
|
|
259
|
+
# is returned. It encodes the position of the current result cursor.
|
|
260
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
|
261
|
+
# gives the next page of the results.
|
|
262
|
+
#
|
|
263
|
+
# When `next_page_token` is not filled in, there is no next page and
|
|
264
|
+
# the list returned is the last page in the result set.
|
|
265
|
+
#
|
|
266
|
+
# Pagination tokens have a limited lifetime.
|
|
267
|
+
class SearchProjectsResponse
|
|
268
|
+
include ::Google::Protobuf::MessageExts
|
|
269
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# The request sent to the
|
|
273
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#create_project CreateProject}
|
|
274
|
+
# method.
|
|
275
|
+
# @!attribute [rw] project
|
|
276
|
+
# @return [::Google::Cloud::ResourceManager::V3::Project]
|
|
277
|
+
# Required. The Project to create.
|
|
278
|
+
#
|
|
279
|
+
# Project ID is required. If the requested ID is unavailable, the request
|
|
280
|
+
# fails.
|
|
281
|
+
#
|
|
282
|
+
# If the `parent` field is set, the `resourcemanager.projects.create`
|
|
283
|
+
# permission is checked on the parent resource. If no parent is set and
|
|
284
|
+
# the authorization credentials belong to an Organziation, the parent
|
|
285
|
+
# will be set to that Organization.
|
|
286
|
+
class CreateProjectRequest
|
|
287
|
+
include ::Google::Protobuf::MessageExts
|
|
288
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# A status object which is used as the `metadata` field for the Operation
|
|
292
|
+
# returned by CreateProject. It provides insight for when significant phases of
|
|
293
|
+
# Project creation have completed.
|
|
294
|
+
# @!attribute [rw] create_time
|
|
295
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
296
|
+
# Creation time of the project creation workflow.
|
|
297
|
+
# @!attribute [rw] gettable
|
|
298
|
+
# @return [::Boolean]
|
|
299
|
+
# True if the project can be retrieved using `GetProject`. No other
|
|
300
|
+
# operations on the project are guaranteed to work until the project creation
|
|
301
|
+
# is complete.
|
|
302
|
+
# @!attribute [rw] ready
|
|
303
|
+
# @return [::Boolean]
|
|
304
|
+
# True if the project creation process is complete.
|
|
305
|
+
class CreateProjectMetadata
|
|
306
|
+
include ::Google::Protobuf::MessageExts
|
|
307
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# The request sent to the
|
|
311
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#update_project UpdateProject}
|
|
312
|
+
# method.
|
|
313
|
+
#
|
|
314
|
+
# Only the `display_name` and `labels` fields can be change. Use the
|
|
315
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#move_project MoveProject} method to
|
|
316
|
+
# change the `parent` field.
|
|
317
|
+
# @!attribute [rw] project
|
|
318
|
+
# @return [::Google::Cloud::ResourceManager::V3::Project]
|
|
319
|
+
# Required. The new definition of the project.
|
|
320
|
+
# @!attribute [rw] update_mask
|
|
321
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
322
|
+
# Optional. An update mask to selectively update fields.
|
|
323
|
+
class UpdateProjectRequest
|
|
324
|
+
include ::Google::Protobuf::MessageExts
|
|
325
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# A status object which is used as the `metadata` field for the Operation
|
|
329
|
+
# returned by UpdateProject.
|
|
330
|
+
class UpdateProjectMetadata
|
|
331
|
+
include ::Google::Protobuf::MessageExts
|
|
332
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# The request sent to
|
|
336
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#move_project MoveProject}
|
|
337
|
+
# method.
|
|
338
|
+
# @!attribute [rw] name
|
|
339
|
+
# @return [::String]
|
|
340
|
+
# Required. The name of the project to move.
|
|
341
|
+
# @!attribute [rw] destination_parent
|
|
342
|
+
# @return [::String]
|
|
343
|
+
# Required. The new parent to move the Project under.
|
|
344
|
+
class MoveProjectRequest
|
|
345
|
+
include ::Google::Protobuf::MessageExts
|
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# A status object which is used as the `metadata` field for the Operation
|
|
350
|
+
# returned by MoveProject.
|
|
351
|
+
class MoveProjectMetadata
|
|
352
|
+
include ::Google::Protobuf::MessageExts
|
|
353
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# {::Google::Cloud::ResourceManager::V3::Projects::Client#delete_project DeleteProject}
|
|
357
|
+
# method.
|
|
358
|
+
# @!attribute [rw] name
|
|
359
|
+
# @return [::String]
|
|
360
|
+
# Required. The name of the Project (for example, `projects/415104041262`).
|
|
361
|
+
class DeleteProjectRequest
|
|
362
|
+
include ::Google::Protobuf::MessageExts
|
|
363
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# A status object which is used as the `metadata` field for the Operation
|
|
367
|
+
# returned by `DeleteProject`.
|
|
368
|
+
class DeleteProjectMetadata
|
|
369
|
+
include ::Google::Protobuf::MessageExts
|
|
370
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# The request sent to the [UndeleteProject]
|
|
374
|
+
# [google.cloud.resourcemanager.v3.Projects.UndeleteProject]
|
|
375
|
+
# method.
|
|
376
|
+
# @!attribute [rw] name
|
|
377
|
+
# @return [::String]
|
|
378
|
+
# Required. The name of the project (for example, `projects/415104041262`).
|
|
379
|
+
#
|
|
380
|
+
# Required.
|
|
381
|
+
class UndeleteProjectRequest
|
|
382
|
+
include ::Google::Protobuf::MessageExts
|
|
383
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# A status object which is used as the `metadata` field for the Operation
|
|
387
|
+
# returned by `UndeleteProject`.
|
|
388
|
+
class UndeleteProjectMetadata
|
|
389
|
+
include ::Google::Protobuf::MessageExts
|
|
390
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2021 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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module ResourceManager
|
|
23
|
+
module V3
|
|
24
|
+
# A TagBinding represents a connection between a TagValue and a cloud
|
|
25
|
+
# resource (currently project, folder, or organization). Once a TagBinding is
|
|
26
|
+
# created, the TagValue is applied to all the descendants of the cloud
|
|
27
|
+
# resource.
|
|
28
|
+
# @!attribute [r] name
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Output only. The name of the TagBinding. This is a String of the form:
|
|
31
|
+
# `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
|
|
32
|
+
# `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
|
|
33
|
+
# @!attribute [rw] parent
|
|
34
|
+
# @return [::String]
|
|
35
|
+
# The full resource name of the resource the TagValue is bound to.
|
|
36
|
+
# E.g. `//cloudresourcemanager.googleapis.com/projects/123`
|
|
37
|
+
# @!attribute [rw] tag_value
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# The TagValue of the TagBinding.
|
|
40
|
+
# Must be of the form `tagValues/456`.
|
|
41
|
+
class TagBinding
|
|
42
|
+
include ::Google::Protobuf::MessageExts
|
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Runtime operation information for creating a TagValue.
|
|
47
|
+
class CreateTagBindingMetadata
|
|
48
|
+
include ::Google::Protobuf::MessageExts
|
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# The request message to create a TagBinding.
|
|
53
|
+
# @!attribute [rw] tag_binding
|
|
54
|
+
# @return [::Google::Cloud::ResourceManager::V3::TagBinding]
|
|
55
|
+
# Required. The TagBinding to be created.
|
|
56
|
+
# @!attribute [rw] validate_only
|
|
57
|
+
# @return [::Boolean]
|
|
58
|
+
# Optional. Set to true to perform the validations necessary for creating the resource,
|
|
59
|
+
# but not actually perform the action.
|
|
60
|
+
class CreateTagBindingRequest
|
|
61
|
+
include ::Google::Protobuf::MessageExts
|
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Runtime operation information for deleting a TagBinding.
|
|
66
|
+
class DeleteTagBindingMetadata
|
|
67
|
+
include ::Google::Protobuf::MessageExts
|
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# The request message to delete a TagBinding.
|
|
72
|
+
# @!attribute [rw] name
|
|
73
|
+
# @return [::String]
|
|
74
|
+
# Required. The name of the TagBinding. This is a String of the form:
|
|
75
|
+
# `tagBindings/{id}` (e.g.
|
|
76
|
+
# `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
|
|
77
|
+
class DeleteTagBindingRequest
|
|
78
|
+
include ::Google::Protobuf::MessageExts
|
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# The request message to list all TagBindings for a parent.
|
|
83
|
+
# @!attribute [rw] parent
|
|
84
|
+
# @return [::String]
|
|
85
|
+
# Required. The full resource name of a resource for which you want to list existing
|
|
86
|
+
# TagBindings.
|
|
87
|
+
# E.g. "//cloudresourcemanager.googleapis.com/projects/123"
|
|
88
|
+
# @!attribute [rw] page_size
|
|
89
|
+
# @return [::Integer]
|
|
90
|
+
# Optional. The maximum number of TagBindings to return in the response. The server
|
|
91
|
+
# allows a maximum of 300 TagBindings to return. If unspecified, the server
|
|
92
|
+
# will use 100 as the default.
|
|
93
|
+
# @!attribute [rw] page_token
|
|
94
|
+
# @return [::String]
|
|
95
|
+
# Optional. A pagination token returned from a previous call to `ListTagBindings`
|
|
96
|
+
# that indicates where this listing should continue from.
|
|
97
|
+
class ListTagBindingsRequest
|
|
98
|
+
include ::Google::Protobuf::MessageExts
|
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# The ListTagBindings response.
|
|
103
|
+
# @!attribute [rw] tag_bindings
|
|
104
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::TagBinding>]
|
|
105
|
+
# A possibly paginated list of TagBindings for the specified TagValue or
|
|
106
|
+
# resource.
|
|
107
|
+
# @!attribute [rw] next_page_token
|
|
108
|
+
# @return [::String]
|
|
109
|
+
# Pagination token.
|
|
110
|
+
#
|
|
111
|
+
# If the result set is too large to fit in a single response, this token
|
|
112
|
+
# is returned. It encodes the position of the current result cursor.
|
|
113
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
|
114
|
+
# gives the next page of the results.
|
|
115
|
+
#
|
|
116
|
+
# When `next_page_token` is not filled in, there is no next page and
|
|
117
|
+
# the list returned is the last page in the result set.
|
|
118
|
+
#
|
|
119
|
+
# Pagination tokens have a limited lifetime.
|
|
120
|
+
class ListTagBindingsResponse
|
|
121
|
+
include ::Google::Protobuf::MessageExts
|
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|