google-apis-cloudresourcemanager_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3eb03d8ae11ffbaa8cd0dfaa0614bf2864ebe752bc5c1625906990124ddb4a7a
4
+ data.tar.gz: 982916d048d3f89d41a3753dd1c9d3757ac6f471a9b1e3928f2a2d053620a414
5
+ SHA512:
6
+ metadata.gz: 85cce7d085627629de719df1ed9aa7be857eac8f01e6e3ff7f530303084d616fbaf9b3ca2d8685977f1dc1c8aad44c9605a311ee65291c6eaebc9138da547553
7
+ data.tar.gz: 76f986b6031d1e8a52757fba51bb3832753473c03adeca37e5a3e2163349c929a1339ab4e212400bf846feb1631600edf25858ccc9838ba152ef97599bd6778f
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudresourcemanager_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudresourcemanager_v1/*.rb
9
+ lib/google/apis/cloudresourcemanager_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudresourcemanager_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201207
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the Cloud Resource Manager API
2
+
3
+ This is a simple client library for version V1 of the Cloud Resource Manager API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/cloudresourcemanager.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-cloudresourcemanager_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-cloudresourcemanager_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/cloudresourcemanager_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudresourcemanagerV1::CloudResourceManagerService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudresourcemanager service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Resource Manager API, see the {Google::Apis::CloudresourcemanagerV1::CloudResourceManagerService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-cloudresourcemanager_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/resource-manager) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/cloudresourcemanager_v1"
@@ -0,0 +1,40 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudresourcemanager_v1/service.rb'
16
+ require 'google/apis/cloudresourcemanager_v1/classes.rb'
17
+ require 'google/apis/cloudresourcemanager_v1/representations.rb'
18
+ require 'google/apis/cloudresourcemanager_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Resource Manager API
23
+ #
24
+ # Creates, reads, and updates metadata for Google Cloud Platform resource
25
+ # containers.
26
+ #
27
+ # @see https://cloud.google.com/resource-manager
28
+ module CloudresourcemanagerV1
29
+ # Version of the Cloud Resource Manager API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+
36
+ # View your data across Google Cloud Platform services
37
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,2052 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudresourcemanagerV1
24
+
25
+ # Identifying information for a single ancestor of a project.
26
+ class Ancestor
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A container to reference an id for any resource type. A `resource` in Google
30
+ # Cloud Platform is a generic term for something you (a developer) may want to
31
+ # interact with through one of our API's. Some examples are an App Engine app, a
32
+ # Compute Engine instance, a Cloud SQL database, and so on.
33
+ # Corresponds to the JSON property `resourceId`
34
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
35
+ attr_accessor :resource_id
36
+
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
40
+
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
44
+ end
45
+ end
46
+
47
+ # Specifies the audit configuration for a service. The configuration determines
48
+ # which permission types are logged, and what identities, if any, are exempted
49
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
50
+ # are AuditConfigs for both `allServices` and a specific service, the union of
51
+ # the two AuditConfigs is used for that service: the log_types specified in each
52
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
53
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
54
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
55
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
56
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
57
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
58
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
59
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
60
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
61
+ # DATA_WRITE logging.
62
+ class AuditConfig
63
+ include Google::Apis::Core::Hashable
64
+
65
+ # The configuration for logging of each type of permission.
66
+ # Corresponds to the JSON property `auditLogConfigs`
67
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
68
+ attr_accessor :audit_log_configs
69
+
70
+ # Specifies a service that will be enabled for audit logging. For example, `
71
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
72
+ # value that covers all services.
73
+ # Corresponds to the JSON property `service`
74
+ # @return [String]
75
+ attr_accessor :service
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
84
+ @service = args[:service] if args.key?(:service)
85
+ end
86
+ end
87
+
88
+ # Provides the configuration for logging a type of permissions. Example: ` "
89
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
90
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
91
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
92
+ # DATA_READ logging.
93
+ class AuditLogConfig
94
+ include Google::Apis::Core::Hashable
95
+
96
+ # Specifies the identities that do not cause logging for this type of permission.
97
+ # Follows the same format of Binding.members.
98
+ # Corresponds to the JSON property `exemptedMembers`
99
+ # @return [Array<String>]
100
+ attr_accessor :exempted_members
101
+
102
+ # The log type that this config enables.
103
+ # Corresponds to the JSON property `logType`
104
+ # @return [String]
105
+ attr_accessor :log_type
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
114
+ @log_type = args[:log_type] if args.key?(:log_type)
115
+ end
116
+ end
117
+
118
+ # Associates `members` with a `role`.
119
+ class Binding
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
123
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
124
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
125
+ # "Summary size limit" description: "Determines if a summary is less than 100
126
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
127
+ # Requestor is owner" description: "Determines if requestor is the document
128
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
129
+ # Logic): title: "Public documents" description: "Determine whether the document
130
+ # should be publicly visible" expression: "document.type != 'private' &&
131
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
132
+ # string" description: "Create a notification string with a timestamp."
133
+ # expression: "'New message received at ' + string(document.create_time)" The
134
+ # exact variables and functions that may be referenced within an expression are
135
+ # determined by the service that evaluates it. See the service documentation for
136
+ # additional information.
137
+ # Corresponds to the JSON property `condition`
138
+ # @return [Google::Apis::CloudresourcemanagerV1::Expr]
139
+ attr_accessor :condition
140
+
141
+ # Specifies the identities requesting access for a Cloud Platform resource. `
142
+ # members` can have the following values: * `allUsers`: A special identifier
143
+ # that represents anyone who is on the internet; with or without a Google
144
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
145
+ # anyone who is authenticated with a Google account or a service account. * `
146
+ # user:`emailid``: An email address that represents a specific Google account.
147
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
148
+ # address that represents a service account. For example, `my-other-app@appspot.
149
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
150
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
151
+ # `uniqueid``: An email address (plus unique identifier) representing a user
152
+ # that has been recently deleted. For example, `alice@example.com?uid=
153
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
154
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
155
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
156
+ # identifier) representing a service account that has been recently deleted. For
157
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
158
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
159
+ # emailid`` and the undeleted service account retains the role in the binding. *
160
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
161
+ # identifier) representing a Google group that has been recently deleted. For
162
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
163
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
164
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
165
+ # primary) that represents all the users of that domain. For example, `google.
166
+ # com` or `example.com`.
167
+ # Corresponds to the JSON property `members`
168
+ # @return [Array<String>]
169
+ attr_accessor :members
170
+
171
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
172
+ # , or `roles/owner`.
173
+ # Corresponds to the JSON property `role`
174
+ # @return [String]
175
+ attr_accessor :role
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @condition = args[:condition] if args.key?(:condition)
184
+ @members = args[:members] if args.key?(:members)
185
+ @role = args[:role] if args.key?(:role)
186
+ end
187
+ end
188
+
189
+ # A `Constraint` that is either enforced or not. For example a constraint `
190
+ # constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
191
+ # instance, serial port connections will not be opened to that instance.
192
+ class BooleanConstraint
193
+ include Google::Apis::Core::Hashable
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ end
202
+ end
203
+
204
+ # Used in `policy_type` to specify how `boolean_policy` will behave at this
205
+ # resource.
206
+ class BooleanPolicy
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # If `true`, then the `Policy` is enforced. If `false`, then any configuration
210
+ # is acceptable. Suppose you have a `Constraint` `constraints/compute.
211
+ # disableSerialPortAccess` with `constraint_default` set to `ALLOW`. A `Policy`
212
+ # for that `Constraint` exhibits the following behavior: - If the `Policy` at
213
+ # this resource has enforced set to `false`, serial port connection attempts
214
+ # will be allowed. - If the `Policy` at this resource has enforced set to `true`,
215
+ # serial port connection attempts will be refused. - If the `Policy` at this
216
+ # resource is `RestoreDefault`, serial port connection attempts will be allowed.
217
+ # - If no `Policy` is set at this resource or anywhere higher in the resource
218
+ # hierarchy, serial port connection attempts will be allowed. - If no `Policy`
219
+ # is set at this resource, but one exists higher in the resource hierarchy, the
220
+ # behavior is as if the`Policy` were set at this resource. The following
221
+ # examples demonstrate the different possible layerings: Example 1 (nearest `
222
+ # Constraint` wins): `organizations/foo` has a `Policy` with: `enforced: false` `
223
+ # projects/bar` has no `Policy` set. The constraint at `projects/bar` and `
224
+ # organizations/foo` will not be enforced. Example 2 (enforcement gets replaced):
225
+ # `organizations/foo` has a `Policy` with: `enforced: false` `projects/bar` has
226
+ # a `Policy` with: `enforced: true` The constraint at `organizations/foo` is not
227
+ # enforced. The constraint at `projects/bar` is enforced. Example 3 (
228
+ # RestoreDefault): `organizations/foo` has a `Policy` with: `enforced: true` `
229
+ # projects/bar` has a `Policy` with: `RestoreDefault: ``` The constraint at `
230
+ # organizations/foo` is enforced. The constraint at `projects/bar` is not
231
+ # enforced, because `constraint_default` for the `Constraint` is `ALLOW`.
232
+ # Corresponds to the JSON property `enforced`
233
+ # @return [Boolean]
234
+ attr_accessor :enforced
235
+ alias_method :enforced?, :enforced
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @enforced = args[:enforced] if args.key?(:enforced)
244
+ end
245
+ end
246
+
247
+ # The request sent to the ClearOrgPolicy method.
248
+ class ClearOrgPolicyRequest
249
+ include Google::Apis::Core::Hashable
250
+
251
+ # Name of the `Constraint` of the `Policy` to clear.
252
+ # Corresponds to the JSON property `constraint`
253
+ # @return [String]
254
+ attr_accessor :constraint
255
+
256
+ # The current version, for concurrency control. Not sending an `etag` will cause
257
+ # the `Policy` to be cleared blindly.
258
+ # Corresponds to the JSON property `etag`
259
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
260
+ # @return [String]
261
+ attr_accessor :etag
262
+
263
+ def initialize(**args)
264
+ update!(**args)
265
+ end
266
+
267
+ # Update properties of this object
268
+ def update!(**args)
269
+ @constraint = args[:constraint] if args.key?(:constraint)
270
+ @etag = args[:etag] if args.key?(:etag)
271
+ end
272
+ end
273
+
274
+ # Metadata describing a long running folder operation
275
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # The resource name of the folder or organization we are either creating the
279
+ # folder under or moving the folder to.
280
+ # Corresponds to the JSON property `destinationParent`
281
+ # @return [String]
282
+ attr_accessor :destination_parent
283
+
284
+ # The display name of the folder.
285
+ # Corresponds to the JSON property `displayName`
286
+ # @return [String]
287
+ attr_accessor :display_name
288
+
289
+ # The type of this operation.
290
+ # Corresponds to the JSON property `operationType`
291
+ # @return [String]
292
+ attr_accessor :operation_type
293
+
294
+ # The resource name of the folder's parent. Only applicable when the
295
+ # operation_type is MOVE.
296
+ # Corresponds to the JSON property `sourceParent`
297
+ # @return [String]
298
+ attr_accessor :source_parent
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
307
+ @display_name = args[:display_name] if args.key?(:display_name)
308
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
309
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
310
+ end
311
+ end
312
+
313
+ # Metadata describing a long running folder operation
314
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # The resource name of the folder or organization we are either creating the
318
+ # folder under or moving the folder to.
319
+ # Corresponds to the JSON property `destinationParent`
320
+ # @return [String]
321
+ attr_accessor :destination_parent
322
+
323
+ # The display name of the folder.
324
+ # Corresponds to the JSON property `displayName`
325
+ # @return [String]
326
+ attr_accessor :display_name
327
+
328
+ # The type of this operation.
329
+ # Corresponds to the JSON property `operationType`
330
+ # @return [String]
331
+ attr_accessor :operation_type
332
+
333
+ # The resource name of the folder's parent. Only applicable when the
334
+ # operation_type is MOVE.
335
+ # Corresponds to the JSON property `sourceParent`
336
+ # @return [String]
337
+ attr_accessor :source_parent
338
+
339
+ def initialize(**args)
340
+ update!(**args)
341
+ end
342
+
343
+ # Update properties of this object
344
+ def update!(**args)
345
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
346
+ @display_name = args[:display_name] if args.key?(:display_name)
347
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
348
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
349
+ end
350
+ end
351
+
352
+ # A `Constraint` describes a way in which a resource's configuration can be
353
+ # restricted. For example, it controls which cloud services can be activated
354
+ # across an organization, or whether a Compute Engine instance can have serial
355
+ # port connections established. `Constraints` can be configured by the
356
+ # organization's policy administrator to fit the needs of the organzation by
357
+ # setting Policies for `Constraints` at different locations in the organization'
358
+ # s resource hierarchy. Policies are inherited down the resource hierarchy from
359
+ # higher levels, but can also be overridden. For details about the inheritance
360
+ # rules please read about [Policies](/resource-manager/reference/rest/v1/Policy).
361
+ # `Constraints` have a default behavior determined by the `constraint_default`
362
+ # field, which is the enforcement behavior that is used in the absence of a `
363
+ # Policy` being defined or inherited for the resource in question.
364
+ class Constraint
365
+ include Google::Apis::Core::Hashable
366
+
367
+ # A `Constraint` that is either enforced or not. For example a constraint `
368
+ # constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
369
+ # instance, serial port connections will not be opened to that instance.
370
+ # Corresponds to the JSON property `booleanConstraint`
371
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
372
+ attr_accessor :boolean_constraint
373
+
374
+ # The evaluation behavior of this constraint in the absence of 'Policy'.
375
+ # Corresponds to the JSON property `constraintDefault`
376
+ # @return [String]
377
+ attr_accessor :constraint_default
378
+
379
+ # Detailed description of what this `Constraint` controls as well as how and
380
+ # where it is enforced. Mutable.
381
+ # Corresponds to the JSON property `description`
382
+ # @return [String]
383
+ attr_accessor :description
384
+
385
+ # The human readable name. Mutable.
386
+ # Corresponds to the JSON property `displayName`
387
+ # @return [String]
388
+ attr_accessor :display_name
389
+
390
+ # A `Constraint` that allows or disallows a list of string values, which are
391
+ # configured by an Organization's policy administrator with a `Policy`.
392
+ # Corresponds to the JSON property `listConstraint`
393
+ # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
394
+ attr_accessor :list_constraint
395
+
396
+ # Immutable value, required to globally be unique. For example, `constraints/
397
+ # serviceuser.services`
398
+ # Corresponds to the JSON property `name`
399
+ # @return [String]
400
+ attr_accessor :name
401
+
402
+ # Version of the `Constraint`. Default version is 0;
403
+ # Corresponds to the JSON property `version`
404
+ # @return [Fixnum]
405
+ attr_accessor :version
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
414
+ @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
415
+ @description = args[:description] if args.key?(:description)
416
+ @display_name = args[:display_name] if args.key?(:display_name)
417
+ @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
418
+ @name = args[:name] if args.key?(:name)
419
+ @version = args[:version] if args.key?(:version)
420
+ end
421
+ end
422
+
423
+ # Metadata pertaining to the Folder creation process.
424
+ class CreateFolderMetadata
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # The display name of the folder.
428
+ # Corresponds to the JSON property `displayName`
429
+ # @return [String]
430
+ attr_accessor :display_name
431
+
432
+ # The resource name of the folder or organization we are creating the folder
433
+ # under.
434
+ # Corresponds to the JSON property `parent`
435
+ # @return [String]
436
+ attr_accessor :parent
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ @display_name = args[:display_name] if args.key?(:display_name)
445
+ @parent = args[:parent] if args.key?(:parent)
446
+ end
447
+ end
448
+
449
+ # A status object which is used as the `metadata` field for the Operation
450
+ # returned by CreateProject. It provides insight for when significant phases of
451
+ # Project creation have completed.
452
+ class CreateProjectMetadata
453
+ include Google::Apis::Core::Hashable
454
+
455
+ # Creation time of the project creation workflow.
456
+ # Corresponds to the JSON property `createTime`
457
+ # @return [String]
458
+ attr_accessor :create_time
459
+
460
+ # True if the project can be retrieved using GetProject. No other operations on
461
+ # the project are guaranteed to work until the project creation is complete.
462
+ # Corresponds to the JSON property `gettable`
463
+ # @return [Boolean]
464
+ attr_accessor :gettable
465
+ alias_method :gettable?, :gettable
466
+
467
+ # True if the project creation process is complete.
468
+ # Corresponds to the JSON property `ready`
469
+ # @return [Boolean]
470
+ attr_accessor :ready
471
+ alias_method :ready?, :ready
472
+
473
+ def initialize(**args)
474
+ update!(**args)
475
+ end
476
+
477
+ # Update properties of this object
478
+ def update!(**args)
479
+ @create_time = args[:create_time] if args.key?(:create_time)
480
+ @gettable = args[:gettable] if args.key?(:gettable)
481
+ @ready = args[:ready] if args.key?(:ready)
482
+ end
483
+ end
484
+
485
+ # Runtime operation information for creating a TagKey.
486
+ class CreateTagKeyMetadata
487
+ include Google::Apis::Core::Hashable
488
+
489
+ def initialize(**args)
490
+ update!(**args)
491
+ end
492
+
493
+ # Update properties of this object
494
+ def update!(**args)
495
+ end
496
+ end
497
+
498
+ # Runtime operation information for creating a TagValue.
499
+ class CreateTagValueMetadata
500
+ include Google::Apis::Core::Hashable
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ end
509
+ end
510
+
511
+ # A status object which is used as the `metadata` field for the Operation
512
+ # returned by DeleteFolder.
513
+ class DeleteFolderMetadata
514
+ include Google::Apis::Core::Hashable
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ end
523
+ end
524
+
525
+ # A status object which is used as the `metadata` field for the Operation
526
+ # returned by DeleteOrganization.
527
+ class DeleteOrganizationMetadata
528
+ include Google::Apis::Core::Hashable
529
+
530
+ def initialize(**args)
531
+ update!(**args)
532
+ end
533
+
534
+ # Update properties of this object
535
+ def update!(**args)
536
+ end
537
+ end
538
+
539
+ # A status object which is used as the `metadata` field for the Operation
540
+ # returned by DeleteProject.
541
+ class DeleteProjectMetadata
542
+ include Google::Apis::Core::Hashable
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ end
551
+ end
552
+
553
+ # Runtime operation information for deleting a TagKey.
554
+ class DeleteTagKeyMetadata
555
+ include Google::Apis::Core::Hashable
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ end
564
+ end
565
+
566
+ # Runtime operation information for deleting a TagValue.
567
+ class DeleteTagValueMetadata
568
+ include Google::Apis::Core::Hashable
569
+
570
+ def initialize(**args)
571
+ update!(**args)
572
+ end
573
+
574
+ # Update properties of this object
575
+ def update!(**args)
576
+ end
577
+ end
578
+
579
+ # A generic empty message that you can re-use to avoid defining duplicated empty
580
+ # messages in your APIs. A typical example is to use it as the request or the
581
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
582
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
583
+ # `Empty` is empty JSON object ````.
584
+ class Empty
585
+ include Google::Apis::Core::Hashable
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ end
594
+ end
595
+
596
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
597
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
598
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
599
+ # "Summary size limit" description: "Determines if a summary is less than 100
600
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
601
+ # Requestor is owner" description: "Determines if requestor is the document
602
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
603
+ # Logic): title: "Public documents" description: "Determine whether the document
604
+ # should be publicly visible" expression: "document.type != 'private' &&
605
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
606
+ # string" description: "Create a notification string with a timestamp."
607
+ # expression: "'New message received at ' + string(document.create_time)" The
608
+ # exact variables and functions that may be referenced within an expression are
609
+ # determined by the service that evaluates it. See the service documentation for
610
+ # additional information.
611
+ class Expr
612
+ include Google::Apis::Core::Hashable
613
+
614
+ # Optional. Description of the expression. This is a longer text which describes
615
+ # the expression, e.g. when hovered over it in a UI.
616
+ # Corresponds to the JSON property `description`
617
+ # @return [String]
618
+ attr_accessor :description
619
+
620
+ # Textual representation of an expression in Common Expression Language syntax.
621
+ # Corresponds to the JSON property `expression`
622
+ # @return [String]
623
+ attr_accessor :expression
624
+
625
+ # Optional. String indicating the location of the expression for error reporting,
626
+ # e.g. a file name and a position in the file.
627
+ # Corresponds to the JSON property `location`
628
+ # @return [String]
629
+ attr_accessor :location
630
+
631
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
632
+ # This can be used e.g. in UIs which allow to enter the expression.
633
+ # Corresponds to the JSON property `title`
634
+ # @return [String]
635
+ attr_accessor :title
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @description = args[:description] if args.key?(:description)
644
+ @expression = args[:expression] if args.key?(:expression)
645
+ @location = args[:location] if args.key?(:location)
646
+ @title = args[:title] if args.key?(:title)
647
+ end
648
+ end
649
+
650
+ # Metadata describing a long running folder operation
651
+ class FolderOperation
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # The resource name of the folder or organization we are either creating the
655
+ # folder under or moving the folder to.
656
+ # Corresponds to the JSON property `destinationParent`
657
+ # @return [String]
658
+ attr_accessor :destination_parent
659
+
660
+ # The display name of the folder.
661
+ # Corresponds to the JSON property `displayName`
662
+ # @return [String]
663
+ attr_accessor :display_name
664
+
665
+ # The type of this operation.
666
+ # Corresponds to the JSON property `operationType`
667
+ # @return [String]
668
+ attr_accessor :operation_type
669
+
670
+ # The resource name of the folder's parent. Only applicable when the
671
+ # operation_type is MOVE.
672
+ # Corresponds to the JSON property `sourceParent`
673
+ # @return [String]
674
+ attr_accessor :source_parent
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
683
+ @display_name = args[:display_name] if args.key?(:display_name)
684
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
685
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
686
+ end
687
+ end
688
+
689
+ # A classification of the Folder Operation error.
690
+ class FolderOperationError
691
+ include Google::Apis::Core::Hashable
692
+
693
+ # The type of operation error experienced.
694
+ # Corresponds to the JSON property `errorMessageId`
695
+ # @return [String]
696
+ attr_accessor :error_message_id
697
+
698
+ def initialize(**args)
699
+ update!(**args)
700
+ end
701
+
702
+ # Update properties of this object
703
+ def update!(**args)
704
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
705
+ end
706
+ end
707
+
708
+ # The request sent to the GetAncestry method.
709
+ class GetAncestryRequest
710
+ include Google::Apis::Core::Hashable
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ end
719
+ end
720
+
721
+ # Response from the projects.getAncestry method.
722
+ class GetAncestryResponse
723
+ include Google::Apis::Core::Hashable
724
+
725
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The first
726
+ # ancestor is the project itself, followed by the project's parent, etc..
727
+ # Corresponds to the JSON property `ancestor`
728
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Ancestor>]
729
+ attr_accessor :ancestor
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
738
+ end
739
+ end
740
+
741
+ # The request sent to the GetEffectiveOrgPolicy method.
742
+ class GetEffectiveOrgPolicyRequest
743
+ include Google::Apis::Core::Hashable
744
+
745
+ # The name of the `Constraint` to compute the effective `Policy`.
746
+ # Corresponds to the JSON property `constraint`
747
+ # @return [String]
748
+ attr_accessor :constraint
749
+
750
+ def initialize(**args)
751
+ update!(**args)
752
+ end
753
+
754
+ # Update properties of this object
755
+ def update!(**args)
756
+ @constraint = args[:constraint] if args.key?(:constraint)
757
+ end
758
+ end
759
+
760
+ # Request message for `GetIamPolicy` method.
761
+ class GetIamPolicyRequest
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # Encapsulates settings provided to GetIamPolicy.
765
+ # Corresponds to the JSON property `options`
766
+ # @return [Google::Apis::CloudresourcemanagerV1::GetPolicyOptions]
767
+ attr_accessor :options
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @options = args[:options] if args.key?(:options)
776
+ end
777
+ end
778
+
779
+ # The request sent to the GetOrgPolicy method.
780
+ class GetOrgPolicyRequest
781
+ include Google::Apis::Core::Hashable
782
+
783
+ # Name of the `Constraint` to get the `Policy`.
784
+ # Corresponds to the JSON property `constraint`
785
+ # @return [String]
786
+ attr_accessor :constraint
787
+
788
+ def initialize(**args)
789
+ update!(**args)
790
+ end
791
+
792
+ # Update properties of this object
793
+ def update!(**args)
794
+ @constraint = args[:constraint] if args.key?(:constraint)
795
+ end
796
+ end
797
+
798
+ # Encapsulates settings provided to GetIamPolicy.
799
+ class GetPolicyOptions
800
+ include Google::Apis::Core::Hashable
801
+
802
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
803
+ # 3. Requests specifying an invalid value will be rejected. Requests for
804
+ # policies with any conditional bindings must specify version 3. Policies
805
+ # without any conditional bindings may specify any valid value or leave the
806
+ # field unset. To learn which resources support conditions in their IAM policies,
807
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
808
+ # resource-policies).
809
+ # Corresponds to the JSON property `requestedPolicyVersion`
810
+ # @return [Fixnum]
811
+ attr_accessor :requested_policy_version
812
+
813
+ def initialize(**args)
814
+ update!(**args)
815
+ end
816
+
817
+ # Update properties of this object
818
+ def update!(**args)
819
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
820
+ end
821
+ end
822
+
823
+ # A Lien represents an encumbrance on the actions that can be performed on a
824
+ # resource.
825
+ class Lien
826
+ include Google::Apis::Core::Hashable
827
+
828
+ # The creation time of this Lien.
829
+ # Corresponds to the JSON property `createTime`
830
+ # @return [String]
831
+ attr_accessor :create_time
832
+
833
+ # A system-generated unique identifier for this Lien. Example: `liens/1234abcd`
834
+ # Corresponds to the JSON property `name`
835
+ # @return [String]
836
+ attr_accessor :name
837
+
838
+ # A stable, user-visible/meaningful string identifying the origin of the Lien,
839
+ # intended to be inspected programmatically. Maximum length of 200 characters.
840
+ # Example: 'compute.googleapis.com'
841
+ # Corresponds to the JSON property `origin`
842
+ # @return [String]
843
+ attr_accessor :origin
844
+
845
+ # A reference to the resource this Lien is attached to. The server will validate
846
+ # the parent against those for which Liens are supported. Example: `projects/
847
+ # 1234`
848
+ # Corresponds to the JSON property `parent`
849
+ # @return [String]
850
+ attr_accessor :parent
851
+
852
+ # Concise user-visible strings indicating why an action cannot be performed on a
853
+ # resource. Maximum length of 200 characters. Example: 'Holds production API key'
854
+ # Corresponds to the JSON property `reason`
855
+ # @return [String]
856
+ attr_accessor :reason
857
+
858
+ # The types of operations which should be blocked as a result of this Lien. Each
859
+ # value should correspond to an IAM permission. The server will validate the
860
+ # permissions against those for which Liens are supported. An empty list is
861
+ # meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
862
+ # Corresponds to the JSON property `restrictions`
863
+ # @return [Array<String>]
864
+ attr_accessor :restrictions
865
+
866
+ def initialize(**args)
867
+ update!(**args)
868
+ end
869
+
870
+ # Update properties of this object
871
+ def update!(**args)
872
+ @create_time = args[:create_time] if args.key?(:create_time)
873
+ @name = args[:name] if args.key?(:name)
874
+ @origin = args[:origin] if args.key?(:origin)
875
+ @parent = args[:parent] if args.key?(:parent)
876
+ @reason = args[:reason] if args.key?(:reason)
877
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
878
+ end
879
+ end
880
+
881
+ # The request sent to the `ListAvailableOrgPolicyConstraints` method on the
882
+ # project, folder, or organization.
883
+ class ListAvailableOrgPolicyConstraintsRequest
884
+ include Google::Apis::Core::Hashable
885
+
886
+ # Size of the pages to be returned. This is currently unsupported and will be
887
+ # ignored. The server may at any point start using this field to limit page size.
888
+ # Corresponds to the JSON property `pageSize`
889
+ # @return [Fixnum]
890
+ attr_accessor :page_size
891
+
892
+ # Page token used to retrieve the next page. This is currently unsupported and
893
+ # will be ignored. The server may at any point start using this field.
894
+ # Corresponds to the JSON property `pageToken`
895
+ # @return [String]
896
+ attr_accessor :page_token
897
+
898
+ def initialize(**args)
899
+ update!(**args)
900
+ end
901
+
902
+ # Update properties of this object
903
+ def update!(**args)
904
+ @page_size = args[:page_size] if args.key?(:page_size)
905
+ @page_token = args[:page_token] if args.key?(:page_token)
906
+ end
907
+ end
908
+
909
+ # The response returned from the `ListAvailableOrgPolicyConstraints` method.
910
+ # Returns all `Constraints` that could be set at this level of the hierarchy (
911
+ # contrast with the response from `ListPolicies`, which returns all policies
912
+ # which are set).
913
+ class ListAvailableOrgPolicyConstraintsResponse
914
+ include Google::Apis::Core::Hashable
915
+
916
+ # The collection of constraints that are settable on the request resource.
917
+ # Corresponds to the JSON property `constraints`
918
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Constraint>]
919
+ attr_accessor :constraints
920
+
921
+ # Page token used to retrieve the next page. This is currently not used.
922
+ # Corresponds to the JSON property `nextPageToken`
923
+ # @return [String]
924
+ attr_accessor :next_page_token
925
+
926
+ def initialize(**args)
927
+ update!(**args)
928
+ end
929
+
930
+ # Update properties of this object
931
+ def update!(**args)
932
+ @constraints = args[:constraints] if args.key?(:constraints)
933
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
934
+ end
935
+ end
936
+
937
+ # A `Constraint` that allows or disallows a list of string values, which are
938
+ # configured by an Organization's policy administrator with a `Policy`.
939
+ class ListConstraint
940
+ include Google::Apis::Core::Hashable
941
+
942
+ # Optional. The Google Cloud Console will try to default to a configuration that
943
+ # matches the value specified in this `Constraint`.
944
+ # Corresponds to the JSON property `suggestedValue`
945
+ # @return [String]
946
+ attr_accessor :suggested_value
947
+
948
+ # Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be
949
+ # used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"
950
+ # under:folders/123"` would match any resource under the 'folders/123' folder.
951
+ # Corresponds to the JSON property `supportsUnder`
952
+ # @return [Boolean]
953
+ attr_accessor :supports_under
954
+ alias_method :supports_under?, :supports_under
955
+
956
+ def initialize(**args)
957
+ update!(**args)
958
+ end
959
+
960
+ # Update properties of this object
961
+ def update!(**args)
962
+ @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
963
+ @supports_under = args[:supports_under] if args.key?(:supports_under)
964
+ end
965
+ end
966
+
967
+ # The response message for Liens.ListLiens.
968
+ class ListLiensResponse
969
+ include Google::Apis::Core::Hashable
970
+
971
+ # A list of Liens.
972
+ # Corresponds to the JSON property `liens`
973
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
974
+ attr_accessor :liens
975
+
976
+ # Token to retrieve the next page of results, or empty if there are no more
977
+ # results in the list.
978
+ # Corresponds to the JSON property `nextPageToken`
979
+ # @return [String]
980
+ attr_accessor :next_page_token
981
+
982
+ def initialize(**args)
983
+ update!(**args)
984
+ end
985
+
986
+ # Update properties of this object
987
+ def update!(**args)
988
+ @liens = args[:liens] if args.key?(:liens)
989
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
990
+ end
991
+ end
992
+
993
+ # The request sent to the ListOrgPolicies method.
994
+ class ListOrgPoliciesRequest
995
+ include Google::Apis::Core::Hashable
996
+
997
+ # Size of the pages to be returned. This is currently unsupported and will be
998
+ # ignored. The server may at any point start using this field to limit page size.
999
+ # Corresponds to the JSON property `pageSize`
1000
+ # @return [Fixnum]
1001
+ attr_accessor :page_size
1002
+
1003
+ # Page token used to retrieve the next page. This is currently unsupported and
1004
+ # will be ignored. The server may at any point start using this field.
1005
+ # Corresponds to the JSON property `pageToken`
1006
+ # @return [String]
1007
+ attr_accessor :page_token
1008
+
1009
+ def initialize(**args)
1010
+ update!(**args)
1011
+ end
1012
+
1013
+ # Update properties of this object
1014
+ def update!(**args)
1015
+ @page_size = args[:page_size] if args.key?(:page_size)
1016
+ @page_token = args[:page_token] if args.key?(:page_token)
1017
+ end
1018
+ end
1019
+
1020
+ # The response returned from the `ListOrgPolicies` method. It will be empty if
1021
+ # no `Policies` are set on the resource.
1022
+ class ListOrgPoliciesResponse
1023
+ include Google::Apis::Core::Hashable
1024
+
1025
+ # Page token used to retrieve the next page. This is currently not used, but the
1026
+ # server may at any point start supplying a valid token.
1027
+ # Corresponds to the JSON property `nextPageToken`
1028
+ # @return [String]
1029
+ attr_accessor :next_page_token
1030
+
1031
+ # The `Policies` that are set on the resource. It will be empty if no `Policies`
1032
+ # are set.
1033
+ # Corresponds to the JSON property `policies`
1034
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::OrgPolicy>]
1035
+ attr_accessor :policies
1036
+
1037
+ def initialize(**args)
1038
+ update!(**args)
1039
+ end
1040
+
1041
+ # Update properties of this object
1042
+ def update!(**args)
1043
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1044
+ @policies = args[:policies] if args.key?(:policies)
1045
+ end
1046
+ end
1047
+
1048
+ # Used in `policy_type` to specify how `list_policy` behaves at this resource. `
1049
+ # ListPolicy` can define specific values and subtrees of Cloud Resource Manager
1050
+ # resource hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed
1051
+ # or denied by setting the `allowed_values` and `denied_values` fields. This is
1052
+ # achieved by using the `under:` and optional `is:` prefixes. The `under:`
1053
+ # prefix is used to denote resource subtree values. The `is:` prefix is used to
1054
+ # denote specific values, and is required only if the value contains a ":".
1055
+ # Values prefixed with "is:" are treated the same as values with no prefix.
1056
+ # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
1057
+ # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
1058
+ # e.g. "organizations/1234" The `supports_under` field of the associated `
1059
+ # Constraint` defines whether ancestry prefixes can be used. You can set `
1060
+ # allowed_values` and `denied_values` in the same `Policy` if `all_values` is `
1061
+ # ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
1062
+ # values. If `all_values` is set to either `ALLOW` or `DENY`, `allowed_values`
1063
+ # and `denied_values` must be unset.
1064
+ class ListPolicy
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # The policy all_values state.
1068
+ # Corresponds to the JSON property `allValues`
1069
+ # @return [String]
1070
+ attr_accessor :all_values
1071
+
1072
+ # List of values allowed at this resource. Can only be set if `all_values` is
1073
+ # set to `ALL_VALUES_UNSPECIFIED`.
1074
+ # Corresponds to the JSON property `allowedValues`
1075
+ # @return [Array<String>]
1076
+ attr_accessor :allowed_values
1077
+
1078
+ # List of values denied at this resource. Can only be set if `all_values` is set
1079
+ # to `ALL_VALUES_UNSPECIFIED`.
1080
+ # Corresponds to the JSON property `deniedValues`
1081
+ # @return [Array<String>]
1082
+ attr_accessor :denied_values
1083
+
1084
+ # Determines the inheritance behavior for this `Policy`. By default, a `
1085
+ # ListPolicy` set at a resource supersedes any `Policy` set anywhere up the
1086
+ # resource hierarchy. However, if `inherit_from_parent` is set to `true`, then
1087
+ # the values from the effective `Policy` of the parent resource are inherited,
1088
+ # meaning the values set in this `Policy` are added to the values inherited up
1089
+ # the hierarchy. Setting `Policy` hierarchies that inherit both allowed values
1090
+ # and denied values isn't recommended in most circumstances to keep the
1091
+ # configuration simple and understandable. However, it is possible to set a `
1092
+ # Policy` with `allowed_values` set that inherits a `Policy` with `denied_values`
1093
+ # set. In this case, the values that are allowed must be in `allowed_values`
1094
+ # and not present in `denied_values`. For example, suppose you have a `
1095
+ # Constraint` `constraints/serviceuser.services`, which has a `constraint_type`
1096
+ # of `list_constraint`, and with `constraint_default` set to `ALLOW`. Suppose
1097
+ # that at the Organization level, a `Policy` is applied that restricts the
1098
+ # allowed API activations to ``E1`, `E2``. Then, if a `Policy` is applied to a
1099
+ # project below the Organization that has `inherit_from_parent` set to `false`
1100
+ # and field all_values set to DENY, then an attempt to activate any API will be
1101
+ # denied. The following examples demonstrate different possible layerings for `
1102
+ # projects/bar` parented by `organizations/foo`: Example 1 (no inherited values):
1103
+ # `organizations/foo` has a `Policy` with values: `allowed_values: "E1"
1104
+ # allowed_values:"E2"` `projects/bar` has `inherit_from_parent` `false` and
1105
+ # values: `allowed_values: "E3" allowed_values: "E4"` The accepted values at `
1106
+ # organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `
1107
+ # E3`, and `E4`. Example 2 (inherited values): `organizations/foo` has a `Policy`
1108
+ # with values: `allowed_values: "E1" allowed_values:"E2"` `projects/bar` has a `
1109
+ # Policy` with values: `value: "E3" value: "E4" inherit_from_parent: true` The
1110
+ # accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `
1111
+ # projects/bar` are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting both
1112
+ # allowed and denied values): `organizations/foo` has a `Policy` with values: `
1113
+ # allowed_values: "E1" allowed_values: "E2"` `projects/bar` has a `Policy` with:
1114
+ # `denied_values: "E1"` The accepted values at `organizations/foo` are `E1`, `E2`
1115
+ # . The value accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): `
1116
+ # organizations/foo` has a `Policy` with values: `allowed_values: "E1"
1117
+ # allowed_values:"E2"` `projects/bar` has a `Policy` with values: `
1118
+ # RestoreDefault: ``` The accepted values at `organizations/foo` are `E1`, `E2`.
1119
+ # The accepted values at `projects/bar` are either all or none depending on the
1120
+ # value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (
1121
+ # no policy inherits parent policy): `organizations/foo` has no `Policy` set. `
1122
+ # projects/bar` has no `Policy` set. The accepted values at both levels are
1123
+ # either all or none depending on the value of `constraint_default` (if `ALLOW`,
1124
+ # all; if `DENY`, none). Example 6 (ListConstraint allowing all): `organizations/
1125
+ # foo` has a `Policy` with values: `allowed_values: "E1" allowed_values: "E2"` `
1126
+ # projects/bar` has a `Policy` with: `all: ALLOW` The accepted values at `
1127
+ # organizations/foo` are `E1`, E2`. Any value is accepted at `projects/bar`.
1128
+ # Example 7 (ListConstraint allowing none): `organizations/foo` has a `Policy`
1129
+ # with values: `allowed_values: "E1" allowed_values: "E2"` `projects/bar` has a `
1130
+ # Policy` with: `all: DENY` The accepted values at `organizations/foo` are `E1`,
1131
+ # E2`. No value is accepted at `projects/bar`. Example 10 (allowed and denied
1132
+ # subtrees of Resource Manager hierarchy): Given the following resource
1133
+ # hierarchy O1->`F1, F2`; F1->`P1`; F2->`P2, P3`, `organizations/foo` has a `
1134
+ # Policy` with values: `allowed_values: "under:organizations/O1"` `projects/bar`
1135
+ # has a `Policy` with: `allowed_values: "under:projects/P3"` `denied_values: "
1136
+ # under:folders/F2"` The accepted values at `organizations/foo` are `
1137
+ # organizations/O1`, `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`, `
1138
+ # projects/P3`. The accepted values at `projects/bar` are `organizations/O1`, `
1139
+ # folders/F1`, `projects/P1`.
1140
+ # Corresponds to the JSON property `inheritFromParent`
1141
+ # @return [Boolean]
1142
+ attr_accessor :inherit_from_parent
1143
+ alias_method :inherit_from_parent?, :inherit_from_parent
1144
+
1145
+ # Optional. The Google Cloud Console will try to default to a configuration that
1146
+ # matches the value specified in this `Policy`. If `suggested_value` is not set,
1147
+ # it will inherit the value specified higher in the hierarchy, unless `
1148
+ # inherit_from_parent` is `false`.
1149
+ # Corresponds to the JSON property `suggestedValue`
1150
+ # @return [String]
1151
+ attr_accessor :suggested_value
1152
+
1153
+ def initialize(**args)
1154
+ update!(**args)
1155
+ end
1156
+
1157
+ # Update properties of this object
1158
+ def update!(**args)
1159
+ @all_values = args[:all_values] if args.key?(:all_values)
1160
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
1161
+ @denied_values = args[:denied_values] if args.key?(:denied_values)
1162
+ @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
1163
+ @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
1164
+ end
1165
+ end
1166
+
1167
+ # A page of the response received from the ListProjects method. A paginated
1168
+ # response where more pages are available has `next_page_token` set. This token
1169
+ # can be used in a subsequent request to retrieve the next request page.
1170
+ class ListProjectsResponse
1171
+ include Google::Apis::Core::Hashable
1172
+
1173
+ # Pagination token. If the result set is too large to fit in a single response,
1174
+ # this token is returned. It encodes the position of the current result cursor.
1175
+ # Feeding this value into a new list request with the `page_token` parameter
1176
+ # gives the next page of the results. When `next_page_token` is not filled in,
1177
+ # there is no next page and the list returned is the last page in the result set.
1178
+ # Pagination tokens have a limited lifetime.
1179
+ # Corresponds to the JSON property `nextPageToken`
1180
+ # @return [String]
1181
+ attr_accessor :next_page_token
1182
+
1183
+ # The list of Projects that matched the list filter. This list can be paginated.
1184
+ # Corresponds to the JSON property `projects`
1185
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
1186
+ attr_accessor :projects
1187
+
1188
+ def initialize(**args)
1189
+ update!(**args)
1190
+ end
1191
+
1192
+ # Update properties of this object
1193
+ def update!(**args)
1194
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1195
+ @projects = args[:projects] if args.key?(:projects)
1196
+ end
1197
+ end
1198
+
1199
+ # Metadata pertaining to the Folder move process.
1200
+ class MoveFolderMetadata
1201
+ include Google::Apis::Core::Hashable
1202
+
1203
+ # The resource name of the folder or organization to move the folder to.
1204
+ # Corresponds to the JSON property `destinationParent`
1205
+ # @return [String]
1206
+ attr_accessor :destination_parent
1207
+
1208
+ # The display name of the folder.
1209
+ # Corresponds to the JSON property `displayName`
1210
+ # @return [String]
1211
+ attr_accessor :display_name
1212
+
1213
+ # The resource name of the folder's parent.
1214
+ # Corresponds to the JSON property `sourceParent`
1215
+ # @return [String]
1216
+ attr_accessor :source_parent
1217
+
1218
+ def initialize(**args)
1219
+ update!(**args)
1220
+ end
1221
+
1222
+ # Update properties of this object
1223
+ def update!(**args)
1224
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
1225
+ @display_name = args[:display_name] if args.key?(:display_name)
1226
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
1227
+ end
1228
+ end
1229
+
1230
+ # A status object which is used as the `metadata` field for the Operation
1231
+ # returned by MoveProject.
1232
+ class MoveProjectMetadata
1233
+ include Google::Apis::Core::Hashable
1234
+
1235
+ def initialize(**args)
1236
+ update!(**args)
1237
+ end
1238
+
1239
+ # Update properties of this object
1240
+ def update!(**args)
1241
+ end
1242
+ end
1243
+
1244
+ # This resource represents a long-running operation that is the result of a
1245
+ # network API call.
1246
+ class Operation
1247
+ include Google::Apis::Core::Hashable
1248
+
1249
+ # If the value is `false`, it means the operation is still in progress. If `true`
1250
+ # , the operation is completed, and either `error` or `response` is available.
1251
+ # Corresponds to the JSON property `done`
1252
+ # @return [Boolean]
1253
+ attr_accessor :done
1254
+ alias_method :done?, :done
1255
+
1256
+ # The `Status` type defines a logical error model that is suitable for different
1257
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1258
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1259
+ # data: error code, error message, and error details. You can find out more
1260
+ # about this error model and how to work with it in the [API Design Guide](https:
1261
+ # //cloud.google.com/apis/design/errors).
1262
+ # Corresponds to the JSON property `error`
1263
+ # @return [Google::Apis::CloudresourcemanagerV1::Status]
1264
+ attr_accessor :error
1265
+
1266
+ # Service-specific metadata associated with the operation. It typically contains
1267
+ # progress information and common metadata such as create time. Some services
1268
+ # might not provide such metadata. Any method that returns a long-running
1269
+ # operation should document the metadata type, if any.
1270
+ # Corresponds to the JSON property `metadata`
1271
+ # @return [Hash<String,Object>]
1272
+ attr_accessor :metadata
1273
+
1274
+ # The server-assigned name, which is only unique within the same service that
1275
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1276
+ # be a resource name ending with `operations/`unique_id``.
1277
+ # Corresponds to the JSON property `name`
1278
+ # @return [String]
1279
+ attr_accessor :name
1280
+
1281
+ # The normal response of the operation in case of success. If the original
1282
+ # method returns no data on success, such as `Delete`, the response is `google.
1283
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1284
+ # the response should be the resource. For other methods, the response should
1285
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1286
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1287
+ # response type is `TakeSnapshotResponse`.
1288
+ # Corresponds to the JSON property `response`
1289
+ # @return [Hash<String,Object>]
1290
+ attr_accessor :response
1291
+
1292
+ def initialize(**args)
1293
+ update!(**args)
1294
+ end
1295
+
1296
+ # Update properties of this object
1297
+ def update!(**args)
1298
+ @done = args[:done] if args.key?(:done)
1299
+ @error = args[:error] if args.key?(:error)
1300
+ @metadata = args[:metadata] if args.key?(:metadata)
1301
+ @name = args[:name] if args.key?(:name)
1302
+ @response = args[:response] if args.key?(:response)
1303
+ end
1304
+ end
1305
+
1306
+ # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
1307
+ # for configurations of Cloud Platform resources.
1308
+ class OrgPolicy
1309
+ include Google::Apis::Core::Hashable
1310
+
1311
+ # Used in `policy_type` to specify how `boolean_policy` will behave at this
1312
+ # resource.
1313
+ # Corresponds to the JSON property `booleanPolicy`
1314
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
1315
+ attr_accessor :boolean_policy
1316
+
1317
+ # The name of the `Constraint` the `Policy` is configuring, for example, `
1318
+ # constraints/serviceuser.services`. A [list of available constraints](/resource-
1319
+ # manager/docs/organization-policy/org-policy-constraints) is available.
1320
+ # Immutable after creation.
1321
+ # Corresponds to the JSON property `constraint`
1322
+ # @return [String]
1323
+ attr_accessor :constraint
1324
+
1325
+ # An opaque tag indicating the current version of the `Policy`, used for
1326
+ # concurrency control. When the `Policy` is returned from either a `GetPolicy`
1327
+ # or a `ListOrgPolicy` request, this `etag` indicates the version of the current
1328
+ # `Policy` to use when executing a read-modify-write loop. When the `Policy` is
1329
+ # returned from a `GetEffectivePolicy` request, the `etag` will be unset. When
1330
+ # the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was
1331
+ # returned from a `GetOrgPolicy` request as part of a read-modify-write loop for
1332
+ # concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will
1333
+ # result in an unconditional write of the `Policy`.
1334
+ # Corresponds to the JSON property `etag`
1335
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1336
+ # @return [String]
1337
+ attr_accessor :etag
1338
+
1339
+ # Used in `policy_type` to specify how `list_policy` behaves at this resource. `
1340
+ # ListPolicy` can define specific values and subtrees of Cloud Resource Manager
1341
+ # resource hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed
1342
+ # or denied by setting the `allowed_values` and `denied_values` fields. This is
1343
+ # achieved by using the `under:` and optional `is:` prefixes. The `under:`
1344
+ # prefix is used to denote resource subtree values. The `is:` prefix is used to
1345
+ # denote specific values, and is required only if the value contains a ":".
1346
+ # Values prefixed with "is:" are treated the same as values with no prefix.
1347
+ # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
1348
+ # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
1349
+ # e.g. "organizations/1234" The `supports_under` field of the associated `
1350
+ # Constraint` defines whether ancestry prefixes can be used. You can set `
1351
+ # allowed_values` and `denied_values` in the same `Policy` if `all_values` is `
1352
+ # ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
1353
+ # values. If `all_values` is set to either `ALLOW` or `DENY`, `allowed_values`
1354
+ # and `denied_values` must be unset.
1355
+ # Corresponds to the JSON property `listPolicy`
1356
+ # @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
1357
+ attr_accessor :list_policy
1358
+
1359
+ # Ignores policies set above this resource and restores the `constraint_default`
1360
+ # enforcement behavior of the specific `Constraint` at this resource. Suppose
1361
+ # that `constraint_default` is set to `ALLOW` for the `Constraint` `constraints/
1362
+ # serviceuser.services`. Suppose that organization foo.com sets a `Policy` at
1363
+ # their Organization resource node that restricts the allowed service
1364
+ # activations to deny all service activations. They could then set a `Policy`
1365
+ # with the `policy_type` `restore_default` on several experimental projects,
1366
+ # restoring the `constraint_default` enforcement of the `Constraint` for only
1367
+ # those projects, allowing those projects to have all services activated.
1368
+ # Corresponds to the JSON property `restoreDefault`
1369
+ # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
1370
+ attr_accessor :restore_default
1371
+
1372
+ # The time stamp the `Policy` was previously updated. This is set by the server,
1373
+ # not specified by the caller, and represents the last time a call to `
1374
+ # SetOrgPolicy` was made for that `Policy`. Any value set by the client will be
1375
+ # ignored.
1376
+ # Corresponds to the JSON property `updateTime`
1377
+ # @return [String]
1378
+ attr_accessor :update_time
1379
+
1380
+ # Version of the `Policy`. Default version is 0;
1381
+ # Corresponds to the JSON property `version`
1382
+ # @return [Fixnum]
1383
+ attr_accessor :version
1384
+
1385
+ def initialize(**args)
1386
+ update!(**args)
1387
+ end
1388
+
1389
+ # Update properties of this object
1390
+ def update!(**args)
1391
+ @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
1392
+ @constraint = args[:constraint] if args.key?(:constraint)
1393
+ @etag = args[:etag] if args.key?(:etag)
1394
+ @list_policy = args[:list_policy] if args.key?(:list_policy)
1395
+ @restore_default = args[:restore_default] if args.key?(:restore_default)
1396
+ @update_time = args[:update_time] if args.key?(:update_time)
1397
+ @version = args[:version] if args.key?(:version)
1398
+ end
1399
+ end
1400
+
1401
+ # The root node in the resource hierarchy to which a particular entity's (e.g.,
1402
+ # company) resources belong.
1403
+ class Organization
1404
+ include Google::Apis::Core::Hashable
1405
+
1406
+ # Timestamp when the Organization was created. Assigned by the server.
1407
+ # Corresponds to the JSON property `creationTime`
1408
+ # @return [String]
1409
+ attr_accessor :creation_time
1410
+
1411
+ # A human-readable string that refers to the Organization in the GCP Console UI.
1412
+ # This string is set by the server and cannot be changed. The string will be set
1413
+ # to the primary domain (for example, "google.com") of the G Suite customer that
1414
+ # owns the organization.
1415
+ # Corresponds to the JSON property `displayName`
1416
+ # @return [String]
1417
+ attr_accessor :display_name
1418
+
1419
+ # The organization's current lifecycle state. Assigned by the server.
1420
+ # Corresponds to the JSON property `lifecycleState`
1421
+ # @return [String]
1422
+ attr_accessor :lifecycle_state
1423
+
1424
+ # Output only. The resource name of the organization. This is the organization's
1425
+ # relative path in the API. Its format is "organizations/[organization_id]". For
1426
+ # example, "organizations/1234".
1427
+ # Corresponds to the JSON property `name`
1428
+ # @return [String]
1429
+ attr_accessor :name
1430
+
1431
+ # The entity that owns an Organization. The lifetime of the Organization and all
1432
+ # of its descendants are bound to the `OrganizationOwner`. If the `
1433
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
1434
+ # be deleted.
1435
+ # Corresponds to the JSON property `owner`
1436
+ # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
1437
+ attr_accessor :owner
1438
+
1439
+ def initialize(**args)
1440
+ update!(**args)
1441
+ end
1442
+
1443
+ # Update properties of this object
1444
+ def update!(**args)
1445
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1446
+ @display_name = args[:display_name] if args.key?(:display_name)
1447
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
1448
+ @name = args[:name] if args.key?(:name)
1449
+ @owner = args[:owner] if args.key?(:owner)
1450
+ end
1451
+ end
1452
+
1453
+ # The entity that owns an Organization. The lifetime of the Organization and all
1454
+ # of its descendants are bound to the `OrganizationOwner`. If the `
1455
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
1456
+ # be deleted.
1457
+ class OrganizationOwner
1458
+ include Google::Apis::Core::Hashable
1459
+
1460
+ # The G Suite customer id used in the Directory API.
1461
+ # Corresponds to the JSON property `directoryCustomerId`
1462
+ # @return [String]
1463
+ attr_accessor :directory_customer_id
1464
+
1465
+ def initialize(**args)
1466
+ update!(**args)
1467
+ end
1468
+
1469
+ # Update properties of this object
1470
+ def update!(**args)
1471
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
1472
+ end
1473
+ end
1474
+
1475
+ # An Identity and Access Management (IAM) policy, which specifies access
1476
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1477
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1478
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1479
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1480
+ # role or a user-created custom role. For some types of Google Cloud resources,
1481
+ # a `binding` can also specify a `condition`, which is a logical expression that
1482
+ # allows access to a resource only if the expression evaluates to `true`. A
1483
+ # condition can add constraints based on attributes of the request, the resource,
1484
+ # or both. To learn which resources support conditions in their IAM policies,
1485
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1486
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1487
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1488
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1489
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1490
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1491
+ # title": "expirable access", "description": "Does not grant access after Sep
1492
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1493
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1494
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1495
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1496
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1497
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1498
+ # description: Does not grant access after Sep 2020 expression: request.time <
1499
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1500
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1501
+ # google.com/iam/docs/).
1502
+ class Policy
1503
+ include Google::Apis::Core::Hashable
1504
+
1505
+ # Specifies cloud audit logging configuration for this policy.
1506
+ # Corresponds to the JSON property `auditConfigs`
1507
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditConfig>]
1508
+ attr_accessor :audit_configs
1509
+
1510
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1511
+ # condition` that determines how and when the `bindings` are applied. Each of
1512
+ # the `bindings` must contain at least one member.
1513
+ # Corresponds to the JSON property `bindings`
1514
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
1515
+ attr_accessor :bindings
1516
+
1517
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1518
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1519
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1520
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1521
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1522
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1523
+ # applied to the same version of the policy. **Important:** If you use IAM
1524
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1525
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1526
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1527
+ # are lost.
1528
+ # Corresponds to the JSON property `etag`
1529
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1530
+ # @return [String]
1531
+ attr_accessor :etag
1532
+
1533
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1534
+ # Requests that specify an invalid value are rejected. Any operation that
1535
+ # affects conditional role bindings must specify version `3`. This requirement
1536
+ # applies to the following operations: * Getting a policy that includes a
1537
+ # conditional role binding * Adding a conditional role binding to a policy *
1538
+ # Changing a conditional role binding in a policy * Removing any role binding,
1539
+ # with or without a condition, from a policy that includes conditions **
1540
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1541
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1542
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1543
+ # conditions in the version `3` policy are lost. If a policy does not include
1544
+ # any conditions, operations on that policy may specify any valid version or
1545
+ # leave the field unset. To learn which resources support conditions in their
1546
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1547
+ # conditions/resource-policies).
1548
+ # Corresponds to the JSON property `version`
1549
+ # @return [Fixnum]
1550
+ attr_accessor :version
1551
+
1552
+ def initialize(**args)
1553
+ update!(**args)
1554
+ end
1555
+
1556
+ # Update properties of this object
1557
+ def update!(**args)
1558
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1559
+ @bindings = args[:bindings] if args.key?(:bindings)
1560
+ @etag = args[:etag] if args.key?(:etag)
1561
+ @version = args[:version] if args.key?(:version)
1562
+ end
1563
+ end
1564
+
1565
+ # A Project is a high-level Google Cloud Platform entity. It is a container for
1566
+ # ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.
1567
+ class Project
1568
+ include Google::Apis::Core::Hashable
1569
+
1570
+ # Creation time. Read-only.
1571
+ # Corresponds to the JSON property `createTime`
1572
+ # @return [String]
1573
+ attr_accessor :create_time
1574
+
1575
+ # The labels associated with this Project. Label keys must be between 1 and 63
1576
+ # characters long and must conform to the following regular expression: a-z`0,62`
1577
+ # . Label values must be between 0 and 63 characters long and must conform to
1578
+ # the regular expression [a-z0-9_-]`0,63`. A label value can be empty. No more
1579
+ # than 256 labels can be associated with a given resource. Clients should store
1580
+ # labels in a representation such as JSON that does not depend on specific
1581
+ # characters being disallowed. Example: "environment" : "dev" Read-write.
1582
+ # Corresponds to the JSON property `labels`
1583
+ # @return [Hash<String,String>]
1584
+ attr_accessor :labels
1585
+
1586
+ # The Project lifecycle state. Read-only.
1587
+ # Corresponds to the JSON property `lifecycleState`
1588
+ # @return [String]
1589
+ attr_accessor :lifecycle_state
1590
+
1591
+ # The optional user-assigned display name of the Project. When present it must
1592
+ # be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
1593
+ # letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
1594
+ # point. Example: `My Project` Read-write.
1595
+ # Corresponds to the JSON property `name`
1596
+ # @return [String]
1597
+ attr_accessor :name
1598
+
1599
+ # A container to reference an id for any resource type. A `resource` in Google
1600
+ # Cloud Platform is a generic term for something you (a developer) may want to
1601
+ # interact with through one of our API's. Some examples are an App Engine app, a
1602
+ # Compute Engine instance, a Cloud SQL database, and so on.
1603
+ # Corresponds to the JSON property `parent`
1604
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
1605
+ attr_accessor :parent
1606
+
1607
+ # The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
1608
+ # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
1609
+ # prohibited. Example: `tokyo-rain-123` Read-only after creation.
1610
+ # Corresponds to the JSON property `projectId`
1611
+ # @return [String]
1612
+ attr_accessor :project_id
1613
+
1614
+ # The number uniquely identifying the project. Example: `415104041262` Read-only.
1615
+ # Corresponds to the JSON property `projectNumber`
1616
+ # @return [Fixnum]
1617
+ attr_accessor :project_number
1618
+
1619
+ def initialize(**args)
1620
+ update!(**args)
1621
+ end
1622
+
1623
+ # Update properties of this object
1624
+ def update!(**args)
1625
+ @create_time = args[:create_time] if args.key?(:create_time)
1626
+ @labels = args[:labels] if args.key?(:labels)
1627
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
1628
+ @name = args[:name] if args.key?(:name)
1629
+ @parent = args[:parent] if args.key?(:parent)
1630
+ @project_id = args[:project_id] if args.key?(:project_id)
1631
+ @project_number = args[:project_number] if args.key?(:project_number)
1632
+ end
1633
+ end
1634
+
1635
+ # A status object which is used as the `metadata` field for the Operation
1636
+ # returned by CreateProject. It provides insight for when significant phases of
1637
+ # Project creation have completed.
1638
+ class ProjectCreationStatus
1639
+ include Google::Apis::Core::Hashable
1640
+
1641
+ # Creation time of the project creation workflow.
1642
+ # Corresponds to the JSON property `createTime`
1643
+ # @return [String]
1644
+ attr_accessor :create_time
1645
+
1646
+ # True if the project can be retrieved using GetProject. No other operations on
1647
+ # the project are guaranteed to work until the project creation is complete.
1648
+ # Corresponds to the JSON property `gettable`
1649
+ # @return [Boolean]
1650
+ attr_accessor :gettable
1651
+ alias_method :gettable?, :gettable
1652
+
1653
+ # True if the project creation process is complete.
1654
+ # Corresponds to the JSON property `ready`
1655
+ # @return [Boolean]
1656
+ attr_accessor :ready
1657
+ alias_method :ready?, :ready
1658
+
1659
+ def initialize(**args)
1660
+ update!(**args)
1661
+ end
1662
+
1663
+ # Update properties of this object
1664
+ def update!(**args)
1665
+ @create_time = args[:create_time] if args.key?(:create_time)
1666
+ @gettable = args[:gettable] if args.key?(:gettable)
1667
+ @ready = args[:ready] if args.key?(:ready)
1668
+ end
1669
+ end
1670
+
1671
+ # A container to reference an id for any resource type. A `resource` in Google
1672
+ # Cloud Platform is a generic term for something you (a developer) may want to
1673
+ # interact with through one of our API's. Some examples are an App Engine app, a
1674
+ # Compute Engine instance, a Cloud SQL database, and so on.
1675
+ class ResourceId
1676
+ include Google::Apis::Core::Hashable
1677
+
1678
+ # The type-specific id. This should correspond to the id used in the type-
1679
+ # specific API's.
1680
+ # Corresponds to the JSON property `id`
1681
+ # @return [String]
1682
+ attr_accessor :id
1683
+
1684
+ # The resource type this id is for. At present, the valid types are: "
1685
+ # organization", "folder", and "project".
1686
+ # Corresponds to the JSON property `type`
1687
+ # @return [String]
1688
+ attr_accessor :type
1689
+
1690
+ def initialize(**args)
1691
+ update!(**args)
1692
+ end
1693
+
1694
+ # Update properties of this object
1695
+ def update!(**args)
1696
+ @id = args[:id] if args.key?(:id)
1697
+ @type = args[:type] if args.key?(:type)
1698
+ end
1699
+ end
1700
+
1701
+ # Ignores policies set above this resource and restores the `constraint_default`
1702
+ # enforcement behavior of the specific `Constraint` at this resource. Suppose
1703
+ # that `constraint_default` is set to `ALLOW` for the `Constraint` `constraints/
1704
+ # serviceuser.services`. Suppose that organization foo.com sets a `Policy` at
1705
+ # their Organization resource node that restricts the allowed service
1706
+ # activations to deny all service activations. They could then set a `Policy`
1707
+ # with the `policy_type` `restore_default` on several experimental projects,
1708
+ # restoring the `constraint_default` enforcement of the `Constraint` for only
1709
+ # those projects, allowing those projects to have all services activated.
1710
+ class RestoreDefault
1711
+ include Google::Apis::Core::Hashable
1712
+
1713
+ def initialize(**args)
1714
+ update!(**args)
1715
+ end
1716
+
1717
+ # Update properties of this object
1718
+ def update!(**args)
1719
+ end
1720
+ end
1721
+
1722
+ # The request sent to the `SearchOrganizations` method.
1723
+ class SearchOrganizationsRequest
1724
+ include Google::Apis::Core::Hashable
1725
+
1726
+ # An optional query string used to filter the Organizations to return in the
1727
+ # response. Filter rules are case-insensitive. Organizations may be filtered by `
1728
+ # owner.directoryCustomerId` or by `domain`, where the domain is a G Suite
1729
+ # domain, for example: * Filter `owner.directorycustomerid:123456789` returns
1730
+ # Organization resources with `owner.directory_customer_id` equal to `123456789`.
1731
+ # * Filter `domain:google.com` returns Organization resources corresponding to
1732
+ # the domain `google.com`. This field is optional.
1733
+ # Corresponds to the JSON property `filter`
1734
+ # @return [String]
1735
+ attr_accessor :filter
1736
+
1737
+ # The maximum number of Organizations to return in the response. This field is
1738
+ # optional.
1739
+ # Corresponds to the JSON property `pageSize`
1740
+ # @return [Fixnum]
1741
+ attr_accessor :page_size
1742
+
1743
+ # A pagination token returned from a previous call to `SearchOrganizations` that
1744
+ # indicates from where listing should continue. This field is optional.
1745
+ # Corresponds to the JSON property `pageToken`
1746
+ # @return [String]
1747
+ attr_accessor :page_token
1748
+
1749
+ def initialize(**args)
1750
+ update!(**args)
1751
+ end
1752
+
1753
+ # Update properties of this object
1754
+ def update!(**args)
1755
+ @filter = args[:filter] if args.key?(:filter)
1756
+ @page_size = args[:page_size] if args.key?(:page_size)
1757
+ @page_token = args[:page_token] if args.key?(:page_token)
1758
+ end
1759
+ end
1760
+
1761
+ # The response returned from the `SearchOrganizations` method.
1762
+ class SearchOrganizationsResponse
1763
+ include Google::Apis::Core::Hashable
1764
+
1765
+ # A pagination token to be used to retrieve the next page of results. If the
1766
+ # result is too large to fit within the page size specified in the request, this
1767
+ # field will be set with a token that can be used to fetch the next page of
1768
+ # results. If this field is empty, it indicates that this response contains the
1769
+ # last page of results.
1770
+ # Corresponds to the JSON property `nextPageToken`
1771
+ # @return [String]
1772
+ attr_accessor :next_page_token
1773
+
1774
+ # The list of Organizations that matched the search query, possibly paginated.
1775
+ # Corresponds to the JSON property `organizations`
1776
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
1777
+ attr_accessor :organizations
1778
+
1779
+ def initialize(**args)
1780
+ update!(**args)
1781
+ end
1782
+
1783
+ # Update properties of this object
1784
+ def update!(**args)
1785
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1786
+ @organizations = args[:organizations] if args.key?(:organizations)
1787
+ end
1788
+ end
1789
+
1790
+ # Request message for `SetIamPolicy` method.
1791
+ class SetIamPolicyRequest
1792
+ include Google::Apis::Core::Hashable
1793
+
1794
+ # An Identity and Access Management (IAM) policy, which specifies access
1795
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1796
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1797
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1798
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1799
+ # role or a user-created custom role. For some types of Google Cloud resources,
1800
+ # a `binding` can also specify a `condition`, which is a logical expression that
1801
+ # allows access to a resource only if the expression evaluates to `true`. A
1802
+ # condition can add constraints based on attributes of the request, the resource,
1803
+ # or both. To learn which resources support conditions in their IAM policies,
1804
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1805
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1806
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1807
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1808
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1809
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1810
+ # title": "expirable access", "description": "Does not grant access after Sep
1811
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1812
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1813
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1814
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1815
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1816
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1817
+ # description: Does not grant access after Sep 2020 expression: request.time <
1818
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1819
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1820
+ # google.com/iam/docs/).
1821
+ # Corresponds to the JSON property `policy`
1822
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1823
+ attr_accessor :policy
1824
+
1825
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1826
+ # the fields in the mask will be modified. If no mask is provided, the following
1827
+ # default mask is used: `paths: "bindings, etag"`
1828
+ # Corresponds to the JSON property `updateMask`
1829
+ # @return [String]
1830
+ attr_accessor :update_mask
1831
+
1832
+ def initialize(**args)
1833
+ update!(**args)
1834
+ end
1835
+
1836
+ # Update properties of this object
1837
+ def update!(**args)
1838
+ @policy = args[:policy] if args.key?(:policy)
1839
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1840
+ end
1841
+ end
1842
+
1843
+ # The request sent to the SetOrgPolicyRequest method.
1844
+ class SetOrgPolicyRequest
1845
+ include Google::Apis::Core::Hashable
1846
+
1847
+ # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
1848
+ # for configurations of Cloud Platform resources.
1849
+ # Corresponds to the JSON property `policy`
1850
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1851
+ attr_accessor :policy
1852
+
1853
+ def initialize(**args)
1854
+ update!(**args)
1855
+ end
1856
+
1857
+ # Update properties of this object
1858
+ def update!(**args)
1859
+ @policy = args[:policy] if args.key?(:policy)
1860
+ end
1861
+ end
1862
+
1863
+ # The `Status` type defines a logical error model that is suitable for different
1864
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1865
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1866
+ # data: error code, error message, and error details. You can find out more
1867
+ # about this error model and how to work with it in the [API Design Guide](https:
1868
+ # //cloud.google.com/apis/design/errors).
1869
+ class Status
1870
+ include Google::Apis::Core::Hashable
1871
+
1872
+ # The status code, which should be an enum value of google.rpc.Code.
1873
+ # Corresponds to the JSON property `code`
1874
+ # @return [Fixnum]
1875
+ attr_accessor :code
1876
+
1877
+ # A list of messages that carry the error details. There is a common set of
1878
+ # message types for APIs to use.
1879
+ # Corresponds to the JSON property `details`
1880
+ # @return [Array<Hash<String,Object>>]
1881
+ attr_accessor :details
1882
+
1883
+ # A developer-facing error message, which should be in English. Any user-facing
1884
+ # error message should be localized and sent in the google.rpc.Status.details
1885
+ # field, or localized by the client.
1886
+ # Corresponds to the JSON property `message`
1887
+ # @return [String]
1888
+ attr_accessor :message
1889
+
1890
+ def initialize(**args)
1891
+ update!(**args)
1892
+ end
1893
+
1894
+ # Update properties of this object
1895
+ def update!(**args)
1896
+ @code = args[:code] if args.key?(:code)
1897
+ @details = args[:details] if args.key?(:details)
1898
+ @message = args[:message] if args.key?(:message)
1899
+ end
1900
+ end
1901
+
1902
+ # Request message for `TestIamPermissions` method.
1903
+ class TestIamPermissionsRequest
1904
+ include Google::Apis::Core::Hashable
1905
+
1906
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1907
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1908
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1909
+ # Corresponds to the JSON property `permissions`
1910
+ # @return [Array<String>]
1911
+ attr_accessor :permissions
1912
+
1913
+ def initialize(**args)
1914
+ update!(**args)
1915
+ end
1916
+
1917
+ # Update properties of this object
1918
+ def update!(**args)
1919
+ @permissions = args[:permissions] if args.key?(:permissions)
1920
+ end
1921
+ end
1922
+
1923
+ # Response message for `TestIamPermissions` method.
1924
+ class TestIamPermissionsResponse
1925
+ include Google::Apis::Core::Hashable
1926
+
1927
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1928
+ # Corresponds to the JSON property `permissions`
1929
+ # @return [Array<String>]
1930
+ attr_accessor :permissions
1931
+
1932
+ def initialize(**args)
1933
+ update!(**args)
1934
+ end
1935
+
1936
+ # Update properties of this object
1937
+ def update!(**args)
1938
+ @permissions = args[:permissions] if args.key?(:permissions)
1939
+ end
1940
+ end
1941
+
1942
+ # A status object which is used as the `metadata` field for the Operation
1943
+ # returned by UndeleteFolder.
1944
+ class UndeleteFolderMetadata
1945
+ include Google::Apis::Core::Hashable
1946
+
1947
+ def initialize(**args)
1948
+ update!(**args)
1949
+ end
1950
+
1951
+ # Update properties of this object
1952
+ def update!(**args)
1953
+ end
1954
+ end
1955
+
1956
+ # A status object which is used as the `metadata` field for the Operation
1957
+ # returned by UndeleteOrganization.
1958
+ class UndeleteOrganizationMetadata
1959
+ include Google::Apis::Core::Hashable
1960
+
1961
+ def initialize(**args)
1962
+ update!(**args)
1963
+ end
1964
+
1965
+ # Update properties of this object
1966
+ def update!(**args)
1967
+ end
1968
+ end
1969
+
1970
+ # A status object which is used as the `metadata` field for the Operation
1971
+ # returned by UndeleteProject.
1972
+ class UndeleteProjectMetadata
1973
+ include Google::Apis::Core::Hashable
1974
+
1975
+ def initialize(**args)
1976
+ update!(**args)
1977
+ end
1978
+
1979
+ # Update properties of this object
1980
+ def update!(**args)
1981
+ end
1982
+ end
1983
+
1984
+ # The request sent to the UndeleteProject method.
1985
+ class UndeleteProjectRequest
1986
+ include Google::Apis::Core::Hashable
1987
+
1988
+ def initialize(**args)
1989
+ update!(**args)
1990
+ end
1991
+
1992
+ # Update properties of this object
1993
+ def update!(**args)
1994
+ end
1995
+ end
1996
+
1997
+ # A status object which is used as the `metadata` field for the Operation
1998
+ # returned by UpdateFolder.
1999
+ class UpdateFolderMetadata
2000
+ include Google::Apis::Core::Hashable
2001
+
2002
+ def initialize(**args)
2003
+ update!(**args)
2004
+ end
2005
+
2006
+ # Update properties of this object
2007
+ def update!(**args)
2008
+ end
2009
+ end
2010
+
2011
+ # A status object which is used as the `metadata` field for the Operation
2012
+ # returned by UpdateProject.
2013
+ class UpdateProjectMetadata
2014
+ include Google::Apis::Core::Hashable
2015
+
2016
+ def initialize(**args)
2017
+ update!(**args)
2018
+ end
2019
+
2020
+ # Update properties of this object
2021
+ def update!(**args)
2022
+ end
2023
+ end
2024
+
2025
+ # Runtime operation information for updating a TagKey.
2026
+ class UpdateTagKeyMetadata
2027
+ include Google::Apis::Core::Hashable
2028
+
2029
+ def initialize(**args)
2030
+ update!(**args)
2031
+ end
2032
+
2033
+ # Update properties of this object
2034
+ def update!(**args)
2035
+ end
2036
+ end
2037
+
2038
+ # Runtime operation information for updating a TagValue.
2039
+ class UpdateTagValueMetadata
2040
+ include Google::Apis::Core::Hashable
2041
+
2042
+ def initialize(**args)
2043
+ update!(**args)
2044
+ end
2045
+
2046
+ # Update properties of this object
2047
+ def update!(**args)
2048
+ end
2049
+ end
2050
+ end
2051
+ end
2052
+ end