google-cloud-resource_manager-v3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,307 @@
|
|
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 folder in an organization's resource hierarchy, used to
|
25
|
+
# organize that organization's resources.
|
26
|
+
# @!attribute [r] name
|
27
|
+
# @return [::String]
|
28
|
+
# Output only. The resource name of the folder.
|
29
|
+
# Its format is `folders/{folder_id}`, for example: "folders/1234".
|
30
|
+
# @!attribute [rw] parent
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The folder's parent's resource name.
|
33
|
+
# Updates to the folder's parent must be performed using
|
34
|
+
# {::Google::Cloud::ResourceManager::V3::Folders::Client#move_folder MoveFolder}.
|
35
|
+
# @!attribute [rw] display_name
|
36
|
+
# @return [::String]
|
37
|
+
# The folder's display name.
|
38
|
+
# A folder's display name must be unique amongst its siblings. For example,
|
39
|
+
# no two folders with the same parent can share the same display name.
|
40
|
+
# The display name must start and end with a letter or digit, may contain
|
41
|
+
# letters, digits, spaces, hyphens and underscores and can be no longer
|
42
|
+
# than 30 characters. This is captured by the regular expression:
|
43
|
+
# `[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?`.
|
44
|
+
# @!attribute [r] state
|
45
|
+
# @return [::Google::Cloud::ResourceManager::V3::Folder::State]
|
46
|
+
# Output only. The lifecycle state of the folder.
|
47
|
+
# Updates to the state must be performed using
|
48
|
+
# {::Google::Cloud::ResourceManager::V3::Folders::Client#delete_folder DeleteFolder} and
|
49
|
+
# {::Google::Cloud::ResourceManager::V3::Folders::Client#undelete_folder UndeleteFolder}.
|
50
|
+
# @!attribute [r] create_time
|
51
|
+
# @return [::Google::Protobuf::Timestamp]
|
52
|
+
# Output only. Timestamp when the folder was created.
|
53
|
+
# @!attribute [r] update_time
|
54
|
+
# @return [::Google::Protobuf::Timestamp]
|
55
|
+
# Output only. Timestamp when the folder was last modified.
|
56
|
+
# @!attribute [r] delete_time
|
57
|
+
# @return [::Google::Protobuf::Timestamp]
|
58
|
+
# Output only. Timestamp when the folder was requested to be deleted.
|
59
|
+
# @!attribute [r] etag
|
60
|
+
# @return [::String]
|
61
|
+
# Output only. A checksum computed by the server based on the current value of the folder
|
62
|
+
# resource. This may be sent on update and delete requests to ensure the
|
63
|
+
# client has an up-to-date value before proceeding.
|
64
|
+
class Folder
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
|
68
|
+
# Folder lifecycle states.
|
69
|
+
module State
|
70
|
+
# Unspecified state.
|
71
|
+
STATE_UNSPECIFIED = 0
|
72
|
+
|
73
|
+
# The normal and active state.
|
74
|
+
ACTIVE = 1
|
75
|
+
|
76
|
+
# The folder has been marked for deletion by the user.
|
77
|
+
DELETE_REQUESTED = 2
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# The GetFolder request message.
|
82
|
+
# @!attribute [rw] name
|
83
|
+
# @return [::String]
|
84
|
+
# Required. The resource name of the folder to retrieve.
|
85
|
+
# Must be of the form `folders/{folder_id}`.
|
86
|
+
class GetFolderRequest
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
|
91
|
+
# The ListFolders request message.
|
92
|
+
# @!attribute [rw] parent
|
93
|
+
# @return [::String]
|
94
|
+
# Required. The resource name of the organization or folder whose folders are
|
95
|
+
# being listed.
|
96
|
+
# Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
|
97
|
+
# Access to this method is controlled by checking the
|
98
|
+
# `resourcemanager.folders.list` permission on the `parent`.
|
99
|
+
# @!attribute [rw] page_size
|
100
|
+
# @return [::Integer]
|
101
|
+
# Optional. The maximum number of folders to return in the response.
|
102
|
+
# If unspecified, server picks an appropriate default.
|
103
|
+
# @!attribute [rw] page_token
|
104
|
+
# @return [::String]
|
105
|
+
# Optional. A pagination token returned from a previous call to `ListFolders`
|
106
|
+
# that indicates where this listing should continue from.
|
107
|
+
# @!attribute [rw] show_deleted
|
108
|
+
# @return [::Boolean]
|
109
|
+
# Optional. Controls whether folders in the
|
110
|
+
# {::Google::Cloud::ResourceManager::V3::Folder::State::DELETE_REQUESTED DELETE_REQUESTED}
|
111
|
+
# state should be returned. Defaults to false.
|
112
|
+
class ListFoldersRequest
|
113
|
+
include ::Google::Protobuf::MessageExts
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
|
+
end
|
116
|
+
|
117
|
+
# The ListFolders response message.
|
118
|
+
# @!attribute [rw] folders
|
119
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::Folder>]
|
120
|
+
# A possibly paginated list of folders that are direct descendants of
|
121
|
+
# the specified parent resource.
|
122
|
+
# @!attribute [rw] next_page_token
|
123
|
+
# @return [::String]
|
124
|
+
# A pagination token returned from a previous call to `ListFolders`
|
125
|
+
# that indicates from where listing should continue.
|
126
|
+
class ListFoldersResponse
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
|
+
end
|
130
|
+
|
131
|
+
# The request message for searching folders.
|
132
|
+
# @!attribute [rw] page_size
|
133
|
+
# @return [::Integer]
|
134
|
+
# Optional. The maximum number of folders to return in the response.
|
135
|
+
# If unspecified, server picks an appropriate default.
|
136
|
+
# @!attribute [rw] page_token
|
137
|
+
# @return [::String]
|
138
|
+
# Optional. A pagination token returned from a previous call to `SearchFolders`
|
139
|
+
# that indicates from where search should continue.
|
140
|
+
# @!attribute [rw] query
|
141
|
+
# @return [::String]
|
142
|
+
# Optional. Search criteria used to select the folders to return.
|
143
|
+
# If no search criteria is specified then all accessible folders will be
|
144
|
+
# returned.
|
145
|
+
#
|
146
|
+
# Query expressions can be used to restrict results based upon displayName,
|
147
|
+
# state and parent, where the operators `=` (`:`) `NOT`, `AND` and `OR`
|
148
|
+
# can be used along with the suffix wildcard symbol `*`.
|
149
|
+
#
|
150
|
+
# The `displayName` field in a query expression should use escaped quotes
|
151
|
+
# for values that include whitespace to prevent unexpected behavior.
|
152
|
+
#
|
153
|
+
# | Field | Description |
|
154
|
+
# |-------------------------|----------------------------------------|
|
155
|
+
# | displayName | Filters by displayName. |
|
156
|
+
# | parent | Filters by parent (for example: folders/123). |
|
157
|
+
# | state, lifecycleState | Filters by state. |
|
158
|
+
#
|
159
|
+
# Some example queries are:
|
160
|
+
#
|
161
|
+
# * Query `displayName=Test*` returns Folder resources whose display name
|
162
|
+
# starts with "Test".
|
163
|
+
# * Query `state=ACTIVE` returns Folder resources with
|
164
|
+
# `state` set to `ACTIVE`.
|
165
|
+
# * Query `parent=folders/123` returns Folder resources that have
|
166
|
+
# `folders/123` as a parent resource.
|
167
|
+
# * Query `parent=folders/123 AND state=ACTIVE` returns active
|
168
|
+
# Folder resources that have `folders/123` as a parent resource.
|
169
|
+
# * Query `displayName=\\"Test String\\"` returns Folder resources with
|
170
|
+
# display names that include both "Test" and "String".
|
171
|
+
class SearchFoldersRequest
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
end
|
175
|
+
|
176
|
+
# The response message for searching folders.
|
177
|
+
# @!attribute [rw] folders
|
178
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::Folder>]
|
179
|
+
# A possibly paginated folder search results.
|
180
|
+
# the specified parent resource.
|
181
|
+
# @!attribute [rw] next_page_token
|
182
|
+
# @return [::String]
|
183
|
+
# A pagination token returned from a previous call to `SearchFolders`
|
184
|
+
# that indicates from where searching should continue.
|
185
|
+
class SearchFoldersResponse
|
186
|
+
include ::Google::Protobuf::MessageExts
|
187
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
188
|
+
end
|
189
|
+
|
190
|
+
# The CreateFolder request message.
|
191
|
+
# @!attribute [rw] folder
|
192
|
+
# @return [::Google::Cloud::ResourceManager::V3::Folder]
|
193
|
+
# Required. The folder being created, only the display name and parent will be
|
194
|
+
# consulted. All other fields will be ignored.
|
195
|
+
class CreateFolderRequest
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
|
+
end
|
199
|
+
|
200
|
+
# Metadata pertaining to the Folder creation process.
|
201
|
+
# @!attribute [rw] display_name
|
202
|
+
# @return [::String]
|
203
|
+
# The display name of the folder.
|
204
|
+
# @!attribute [rw] parent
|
205
|
+
# @return [::String]
|
206
|
+
# The resource name of the folder or organization we are creating the folder
|
207
|
+
# under.
|
208
|
+
class CreateFolderMetadata
|
209
|
+
include ::Google::Protobuf::MessageExts
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
211
|
+
end
|
212
|
+
|
213
|
+
# The request sent to the
|
214
|
+
# [UpdateFolder][google.cloud.resourcemanager.v3.Folder.UpdateFolder]
|
215
|
+
# method.
|
216
|
+
#
|
217
|
+
# Only the `display_name` field can be changed. All other fields will be
|
218
|
+
# ignored. Use the
|
219
|
+
# {::Google::Cloud::ResourceManager::V3::Folders::Client#move_folder MoveFolder} method to
|
220
|
+
# change the `parent` field.
|
221
|
+
# @!attribute [rw] folder
|
222
|
+
# @return [::Google::Cloud::ResourceManager::V3::Folder]
|
223
|
+
# Required. The new definition of the Folder. It must include the `name` field, which
|
224
|
+
# cannot be changed.
|
225
|
+
# @!attribute [rw] update_mask
|
226
|
+
# @return [::Google::Protobuf::FieldMask]
|
227
|
+
# Required. Fields to be updated.
|
228
|
+
# Only the `display_name` can be updated.
|
229
|
+
class UpdateFolderRequest
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
|
+
end
|
233
|
+
|
234
|
+
# A status object which is used as the `metadata` field for the Operation
|
235
|
+
# returned by UpdateFolder.
|
236
|
+
class UpdateFolderMetadata
|
237
|
+
include ::Google::Protobuf::MessageExts
|
238
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
239
|
+
end
|
240
|
+
|
241
|
+
# The MoveFolder request message.
|
242
|
+
# @!attribute [rw] name
|
243
|
+
# @return [::String]
|
244
|
+
# Required. The resource name of the Folder to move.
|
245
|
+
# Must be of the form folders/\\{folder_id}
|
246
|
+
# @!attribute [rw] destination_parent
|
247
|
+
# @return [::String]
|
248
|
+
# Required. The resource name of the folder or organization which should be the
|
249
|
+
# folder's new parent.
|
250
|
+
# Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
|
251
|
+
class MoveFolderRequest
|
252
|
+
include ::Google::Protobuf::MessageExts
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
254
|
+
end
|
255
|
+
|
256
|
+
# Metadata pertaining to the folder move process.
|
257
|
+
# @!attribute [rw] display_name
|
258
|
+
# @return [::String]
|
259
|
+
# The display name of the folder.
|
260
|
+
# @!attribute [rw] source_parent
|
261
|
+
# @return [::String]
|
262
|
+
# The resource name of the folder's parent.
|
263
|
+
# @!attribute [rw] destination_parent
|
264
|
+
# @return [::String]
|
265
|
+
# The resource name of the folder or organization to move the folder to.
|
266
|
+
class MoveFolderMetadata
|
267
|
+
include ::Google::Protobuf::MessageExts
|
268
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
269
|
+
end
|
270
|
+
|
271
|
+
# The DeleteFolder request message.
|
272
|
+
# @!attribute [rw] name
|
273
|
+
# @return [::String]
|
274
|
+
# Required. The resource name of the folder to be deleted.
|
275
|
+
# Must be of the form `folders/{folder_id}`.
|
276
|
+
class DeleteFolderRequest
|
277
|
+
include ::Google::Protobuf::MessageExts
|
278
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
279
|
+
end
|
280
|
+
|
281
|
+
# A status object which is used as the `metadata` field for the `Operation`
|
282
|
+
# returned by `DeleteFolder`.
|
283
|
+
class DeleteFolderMetadata
|
284
|
+
include ::Google::Protobuf::MessageExts
|
285
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
|
+
end
|
287
|
+
|
288
|
+
# The UndeleteFolder request message.
|
289
|
+
# @!attribute [rw] name
|
290
|
+
# @return [::String]
|
291
|
+
# Required. The resource name of the folder to undelete.
|
292
|
+
# Must be of the form `folders/{folder_id}`.
|
293
|
+
class UndeleteFolderRequest
|
294
|
+
include ::Google::Protobuf::MessageExts
|
295
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
296
|
+
end
|
297
|
+
|
298
|
+
# A status object which is used as the `metadata` field for the `Operation`
|
299
|
+
# returned by `UndeleteFolder`.
|
300
|
+
class UndeleteFolderMetadata
|
301
|
+
include ::Google::Protobuf::MessageExts
|
302
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
@@ -0,0 +1,152 @@
|
|
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
|
+
# The root node in the resource hierarchy to which a particular entity's
|
25
|
+
# (a company, for example) resources belong.
|
26
|
+
# @!attribute [r] name
|
27
|
+
# @return [::String]
|
28
|
+
# Output only. The resource name of the organization. This is the
|
29
|
+
# organization's relative path in the API. Its format is
|
30
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
31
|
+
# @!attribute [r] display_name
|
32
|
+
# @return [::String]
|
33
|
+
# Output only. A human-readable string that refers to the organization in the
|
34
|
+
# Google Cloud Console. This string is set by the server and cannot be
|
35
|
+
# changed. The string will be set to the primary domain (for example,
|
36
|
+
# "google.com") of the Google Workspace customer that owns the organization.
|
37
|
+
# @!attribute [rw] directory_customer_id
|
38
|
+
# @return [::String]
|
39
|
+
# Immutable. The G Suite / Workspace customer id used in the Directory API.
|
40
|
+
# @!attribute [r] state
|
41
|
+
# @return [::Google::Cloud::ResourceManager::V3::Organization::State]
|
42
|
+
# Output only. The organization's current lifecycle state.
|
43
|
+
# @!attribute [r] create_time
|
44
|
+
# @return [::Google::Protobuf::Timestamp]
|
45
|
+
# Output only. Timestamp when the Organization was created.
|
46
|
+
# @!attribute [r] update_time
|
47
|
+
# @return [::Google::Protobuf::Timestamp]
|
48
|
+
# Output only. Timestamp when the Organization was last modified.
|
49
|
+
# @!attribute [r] delete_time
|
50
|
+
# @return [::Google::Protobuf::Timestamp]
|
51
|
+
# Output only. Timestamp when the Organization was requested for deletion.
|
52
|
+
# @!attribute [r] etag
|
53
|
+
# @return [::String]
|
54
|
+
# Output only. A checksum computed by the server based on the current value of the
|
55
|
+
# Organization resource. This may be sent on update and delete requests to
|
56
|
+
# ensure the client has an up-to-date value before proceeding.
|
57
|
+
class Organization
|
58
|
+
include ::Google::Protobuf::MessageExts
|
59
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
60
|
+
|
61
|
+
# Organization lifecycle states.
|
62
|
+
module State
|
63
|
+
# Unspecified state. This is only useful for distinguishing unset values.
|
64
|
+
STATE_UNSPECIFIED = 0
|
65
|
+
|
66
|
+
# The normal and active state.
|
67
|
+
ACTIVE = 1
|
68
|
+
|
69
|
+
# The organization has been marked for deletion by the user.
|
70
|
+
DELETE_REQUESTED = 2
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# The request sent to the `GetOrganization` method. The `name` field is
|
75
|
+
# required. `organization_id` is no longer accepted.
|
76
|
+
# @!attribute [rw] name
|
77
|
+
# @return [::String]
|
78
|
+
# Required. The resource name of the Organization to fetch. This is the organization's
|
79
|
+
# relative path in the API, formatted as "organizations/[organizationId]".
|
80
|
+
# For example, "organizations/1234".
|
81
|
+
class GetOrganizationRequest
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
86
|
+
# The request sent to the `SearchOrganizations` method.
|
87
|
+
# @!attribute [rw] page_size
|
88
|
+
# @return [::Integer]
|
89
|
+
# Optional. The maximum number of organizations to return in the response.
|
90
|
+
# If unspecified, server picks an appropriate default.
|
91
|
+
# @!attribute [rw] page_token
|
92
|
+
# @return [::String]
|
93
|
+
# Optional. A pagination token returned from a previous call to `SearchOrganizations`
|
94
|
+
# that indicates from where listing should continue.
|
95
|
+
# @!attribute [rw] query
|
96
|
+
# @return [::String]
|
97
|
+
# Optional. An optional query string used to filter the Organizations to return in
|
98
|
+
# the response. Query rules are case-insensitive.
|
99
|
+
#
|
100
|
+
#
|
101
|
+
# | Field | Description |
|
102
|
+
# |------------------|--------------------------------------------|
|
103
|
+
# | directoryCustomerId, owner.directoryCustomerId | Filters by directory
|
104
|
+
# customer id. |
|
105
|
+
# | domain | Filters by domain. |
|
106
|
+
#
|
107
|
+
# Organizations may be queried by `directoryCustomerId` or by
|
108
|
+
# `domain`, where the domain is a G Suite domain, for example:
|
109
|
+
#
|
110
|
+
# * Query `directorycustomerid:123456789` returns Organization
|
111
|
+
# resources with `owner.directory_customer_id` equal to `123456789`.
|
112
|
+
# * Query `domain:google.com` returns Organization resources corresponding
|
113
|
+
# to the domain `google.com`.
|
114
|
+
class SearchOrganizationsRequest
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
|
119
|
+
# The response returned from the `SearchOrganizations` method.
|
120
|
+
# @!attribute [rw] organizations
|
121
|
+
# @return [::Array<::Google::Cloud::ResourceManager::V3::Organization>]
|
122
|
+
# The list of Organizations that matched the search query, possibly
|
123
|
+
# paginated.
|
124
|
+
# @!attribute [rw] next_page_token
|
125
|
+
# @return [::String]
|
126
|
+
# A pagination token to be used to retrieve the next page of results. If the
|
127
|
+
# result is too large to fit within the page size specified in the request,
|
128
|
+
# this field will be set with a token that can be used to fetch the next page
|
129
|
+
# of results. If this field is empty, it indicates that this response
|
130
|
+
# contains the last page of results.
|
131
|
+
class SearchOrganizationsResponse
|
132
|
+
include ::Google::Protobuf::MessageExts
|
133
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
end
|
135
|
+
|
136
|
+
# A status object which is used as the `metadata` field for the operation
|
137
|
+
# returned by DeleteOrganization.
|
138
|
+
class DeleteOrganizationMetadata
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
|
+
end
|
142
|
+
|
143
|
+
# A status object which is used as the `metadata` field for the Operation
|
144
|
+
# returned by UndeleteOrganization.
|
145
|
+
class UndeleteOrganizationMetadata
|
146
|
+
include ::Google::Protobuf::MessageExts
|
147
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|