google-apis-cloudresourcemanager_v2 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: '08048b4ebb4516dc263119355073f18651ea6bb843359e07e04d8ccb5252a9da'
4
+ data.tar.gz: d752fc7b36fcea1dc5315e41e371af3249887a3d443b0751ac331d657b200a24
5
+ SHA512:
6
+ metadata.gz: 19f56d6e772402f4becbedb7a202e65e460cc89150b6f1995b9a357a44db794d9eaf4e523c150e48d0faf11e0725ed42f66c5bf8b48e76f19da5ea32b67f6a43
7
+ data.tar.gz: 6acaddfef5576d7b546f13b047f60d447d3632380c8f728fa4aec197189eb30ec4474e5504ded596fd18259b0808d6919e9fb86ba51a791695d94fa3809d5377
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudresourcemanager_v2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudresourcemanager_v2/*.rb
9
+ lib/google/apis/cloudresourcemanager_v2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudresourcemanager_v2
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 V2 of the Cloud Resource Manager API
2
+
3
+ This is a simple client library for version V2 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_v2', '~> 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_v2
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_v2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudresourcemanagerV2::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::CloudresourcemanagerV2::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_v2`, 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_v2"
@@ -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_v2/service.rb'
16
+ require 'google/apis/cloudresourcemanager_v2/classes.rb'
17
+ require 'google/apis/cloudresourcemanager_v2/representations.rb'
18
+ require 'google/apis/cloudresourcemanager_v2/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 CloudresourcemanagerV2
29
+ # Version of the Cloud Resource Manager API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V2'
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,1203 @@
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 CloudresourcemanagerV2
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
28
+ # are AuditConfigs for both `allServices` and a specific service, the union of
29
+ # the two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
+ # DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::CloudresourcemanagerV2::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example, `
49
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates `members` with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
103
+ # "Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::CloudresourcemanagerV2::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the identities requesting access for a Cloud Platform resource. `
120
+ # members` can have the following values: * `allUsers`: A special identifier
121
+ # that represents anyone who is on the internet; with or without a Google
122
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
123
+ # anyone who is authenticated with a Google account or a service account. * `
124
+ # user:`emailid``: An email address that represents a specific Google account.
125
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
126
+ # address that represents a service account. For example, `my-other-app@appspot.
127
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
128
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
129
+ # `uniqueid``: An email address (plus unique identifier) representing a user
130
+ # that has been recently deleted. For example, `alice@example.com?uid=
131
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
132
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
133
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
134
+ # identifier) representing a service account that has been recently deleted. For
135
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
136
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
137
+ # emailid`` and the undeleted service account retains the role in the binding. *
138
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
139
+ # identifier) representing a Google group that has been recently deleted. For
140
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
141
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
142
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
143
+ # primary) that represents all the users of that domain. For example, `google.
144
+ # com` or `example.com`.
145
+ # Corresponds to the JSON property `members`
146
+ # @return [Array<String>]
147
+ attr_accessor :members
148
+
149
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
+ # , or `roles/owner`.
151
+ # Corresponds to the JSON property `role`
152
+ # @return [String]
153
+ attr_accessor :role
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @condition = args[:condition] if args.key?(:condition)
162
+ @members = args[:members] if args.key?(:members)
163
+ @role = args[:role] if args.key?(:role)
164
+ end
165
+ end
166
+
167
+ # Metadata describing a long running folder operation
168
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The resource name of the folder or organization we are either creating the
172
+ # folder under or moving the folder to.
173
+ # Corresponds to the JSON property `destinationParent`
174
+ # @return [String]
175
+ attr_accessor :destination_parent
176
+
177
+ # The display name of the folder.
178
+ # Corresponds to the JSON property `displayName`
179
+ # @return [String]
180
+ attr_accessor :display_name
181
+
182
+ # The type of this operation.
183
+ # Corresponds to the JSON property `operationType`
184
+ # @return [String]
185
+ attr_accessor :operation_type
186
+
187
+ # The resource name of the folder's parent. Only applicable when the
188
+ # operation_type is MOVE.
189
+ # Corresponds to the JSON property `sourceParent`
190
+ # @return [String]
191
+ attr_accessor :source_parent
192
+
193
+ def initialize(**args)
194
+ update!(**args)
195
+ end
196
+
197
+ # Update properties of this object
198
+ def update!(**args)
199
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
200
+ @display_name = args[:display_name] if args.key?(:display_name)
201
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
202
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
203
+ end
204
+ end
205
+
206
+ # Metadata describing a long running folder operation
207
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
208
+ include Google::Apis::Core::Hashable
209
+
210
+ # The resource name of the folder or organization we are either creating the
211
+ # folder under or moving the folder to.
212
+ # Corresponds to the JSON property `destinationParent`
213
+ # @return [String]
214
+ attr_accessor :destination_parent
215
+
216
+ # The display name of the folder.
217
+ # Corresponds to the JSON property `displayName`
218
+ # @return [String]
219
+ attr_accessor :display_name
220
+
221
+ # The type of this operation.
222
+ # Corresponds to the JSON property `operationType`
223
+ # @return [String]
224
+ attr_accessor :operation_type
225
+
226
+ # The resource name of the folder's parent. Only applicable when the
227
+ # operation_type is MOVE.
228
+ # Corresponds to the JSON property `sourceParent`
229
+ # @return [String]
230
+ attr_accessor :source_parent
231
+
232
+ def initialize(**args)
233
+ update!(**args)
234
+ end
235
+
236
+ # Update properties of this object
237
+ def update!(**args)
238
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
239
+ @display_name = args[:display_name] if args.key?(:display_name)
240
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
241
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
242
+ end
243
+ end
244
+
245
+ # Metadata pertaining to the Folder creation process.
246
+ class CreateFolderMetadata
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # The display name of the folder.
250
+ # Corresponds to the JSON property `displayName`
251
+ # @return [String]
252
+ attr_accessor :display_name
253
+
254
+ # The resource name of the folder or organization we are creating the folder
255
+ # under.
256
+ # Corresponds to the JSON property `parent`
257
+ # @return [String]
258
+ attr_accessor :parent
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @display_name = args[:display_name] if args.key?(:display_name)
267
+ @parent = args[:parent] if args.key?(:parent)
268
+ end
269
+ end
270
+
271
+ # A status object which is used as the `metadata` field for the Operation
272
+ # returned by CreateProject. It provides insight for when significant phases of
273
+ # Project creation have completed.
274
+ class CreateProjectMetadata
275
+ include Google::Apis::Core::Hashable
276
+
277
+ # Creation time of the project creation workflow.
278
+ # Corresponds to the JSON property `createTime`
279
+ # @return [String]
280
+ attr_accessor :create_time
281
+
282
+ # True if the project can be retrieved using GetProject. No other operations on
283
+ # the project are guaranteed to work until the project creation is complete.
284
+ # Corresponds to the JSON property `gettable`
285
+ # @return [Boolean]
286
+ attr_accessor :gettable
287
+ alias_method :gettable?, :gettable
288
+
289
+ # True if the project creation process is complete.
290
+ # Corresponds to the JSON property `ready`
291
+ # @return [Boolean]
292
+ attr_accessor :ready
293
+ alias_method :ready?, :ready
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @create_time = args[:create_time] if args.key?(:create_time)
302
+ @gettable = args[:gettable] if args.key?(:gettable)
303
+ @ready = args[:ready] if args.key?(:ready)
304
+ end
305
+ end
306
+
307
+ # Runtime operation information for creating a TagKey.
308
+ class CreateTagKeyMetadata
309
+ include Google::Apis::Core::Hashable
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ end
318
+ end
319
+
320
+ # Runtime operation information for creating a TagValue.
321
+ class CreateTagValueMetadata
322
+ include Google::Apis::Core::Hashable
323
+
324
+ def initialize(**args)
325
+ update!(**args)
326
+ end
327
+
328
+ # Update properties of this object
329
+ def update!(**args)
330
+ end
331
+ end
332
+
333
+ # A status object which is used as the `metadata` field for the Operation
334
+ # returned by DeleteFolder.
335
+ class DeleteFolderMetadata
336
+ include Google::Apis::Core::Hashable
337
+
338
+ def initialize(**args)
339
+ update!(**args)
340
+ end
341
+
342
+ # Update properties of this object
343
+ def update!(**args)
344
+ end
345
+ end
346
+
347
+ # A status object which is used as the `metadata` field for the Operation
348
+ # returned by DeleteOrganization.
349
+ class DeleteOrganizationMetadata
350
+ include Google::Apis::Core::Hashable
351
+
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ end
359
+ end
360
+
361
+ # A status object which is used as the `metadata` field for the Operation
362
+ # returned by DeleteProject.
363
+ class DeleteProjectMetadata
364
+ include Google::Apis::Core::Hashable
365
+
366
+ def initialize(**args)
367
+ update!(**args)
368
+ end
369
+
370
+ # Update properties of this object
371
+ def update!(**args)
372
+ end
373
+ end
374
+
375
+ # Runtime operation information for deleting a TagKey.
376
+ class DeleteTagKeyMetadata
377
+ include Google::Apis::Core::Hashable
378
+
379
+ def initialize(**args)
380
+ update!(**args)
381
+ end
382
+
383
+ # Update properties of this object
384
+ def update!(**args)
385
+ end
386
+ end
387
+
388
+ # Runtime operation information for deleting a TagValue.
389
+ class DeleteTagValueMetadata
390
+ include Google::Apis::Core::Hashable
391
+
392
+ def initialize(**args)
393
+ update!(**args)
394
+ end
395
+
396
+ # Update properties of this object
397
+ def update!(**args)
398
+ end
399
+ end
400
+
401
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
402
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
403
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
404
+ # "Summary size limit" description: "Determines if a summary is less than 100
405
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
406
+ # Requestor is owner" description: "Determines if requestor is the document
407
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
408
+ # Logic): title: "Public documents" description: "Determine whether the document
409
+ # should be publicly visible" expression: "document.type != 'private' &&
410
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
411
+ # string" description: "Create a notification string with a timestamp."
412
+ # expression: "'New message received at ' + string(document.create_time)" The
413
+ # exact variables and functions that may be referenced within an expression are
414
+ # determined by the service that evaluates it. See the service documentation for
415
+ # additional information.
416
+ class Expr
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Optional. Description of the expression. This is a longer text which describes
420
+ # the expression, e.g. when hovered over it in a UI.
421
+ # Corresponds to the JSON property `description`
422
+ # @return [String]
423
+ attr_accessor :description
424
+
425
+ # Textual representation of an expression in Common Expression Language syntax.
426
+ # Corresponds to the JSON property `expression`
427
+ # @return [String]
428
+ attr_accessor :expression
429
+
430
+ # Optional. String indicating the location of the expression for error reporting,
431
+ # e.g. a file name and a position in the file.
432
+ # Corresponds to the JSON property `location`
433
+ # @return [String]
434
+ attr_accessor :location
435
+
436
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
437
+ # This can be used e.g. in UIs which allow to enter the expression.
438
+ # Corresponds to the JSON property `title`
439
+ # @return [String]
440
+ attr_accessor :title
441
+
442
+ def initialize(**args)
443
+ update!(**args)
444
+ end
445
+
446
+ # Update properties of this object
447
+ def update!(**args)
448
+ @description = args[:description] if args.key?(:description)
449
+ @expression = args[:expression] if args.key?(:expression)
450
+ @location = args[:location] if args.key?(:location)
451
+ @title = args[:title] if args.key?(:title)
452
+ end
453
+ end
454
+
455
+ # A Folder in an Organization's resource hierarchy, used to organize that
456
+ # Organization's resources.
457
+ class Folder
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # Output only. Timestamp when the Folder was created. Assigned by the server.
461
+ # Corresponds to the JSON property `createTime`
462
+ # @return [String]
463
+ attr_accessor :create_time
464
+
465
+ # The folder's display name. A folder's display name must be unique amongst its
466
+ # siblings, e.g. no two folders with the same parent can share the same display
467
+ # name. The display name must start and end with a letter or digit, may contain
468
+ # letters, digits, spaces, hyphens and underscores and can be no longer than 30
469
+ # characters. This is captured by the regular expression: `[\p`L`\p`N`]([\p`L`\p`
470
+ # N`_- ]`0,28`[\p`L`\p`N`])?`.
471
+ # Corresponds to the JSON property `displayName`
472
+ # @return [String]
473
+ attr_accessor :display_name
474
+
475
+ # Output only. The lifecycle state of the folder. Updates to the lifecycle_state
476
+ # must be performed via DeleteFolder and UndeleteFolder.
477
+ # Corresponds to the JSON property `lifecycleState`
478
+ # @return [String]
479
+ attr_accessor :lifecycle_state
480
+
481
+ # Output only. The resource name of the Folder. Its format is `folders/`
482
+ # folder_id``, for example: "folders/1234".
483
+ # Corresponds to the JSON property `name`
484
+ # @return [String]
485
+ attr_accessor :name
486
+
487
+ # Required. The Folder's parent's resource name. Updates to the folder's parent
488
+ # must be performed via MoveFolder.
489
+ # Corresponds to the JSON property `parent`
490
+ # @return [String]
491
+ attr_accessor :parent
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ @create_time = args[:create_time] if args.key?(:create_time)
500
+ @display_name = args[:display_name] if args.key?(:display_name)
501
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
502
+ @name = args[:name] if args.key?(:name)
503
+ @parent = args[:parent] if args.key?(:parent)
504
+ end
505
+ end
506
+
507
+ # Metadata describing a long running folder operation
508
+ class FolderOperation
509
+ include Google::Apis::Core::Hashable
510
+
511
+ # The resource name of the folder or organization we are either creating the
512
+ # folder under or moving the folder to.
513
+ # Corresponds to the JSON property `destinationParent`
514
+ # @return [String]
515
+ attr_accessor :destination_parent
516
+
517
+ # The display name of the folder.
518
+ # Corresponds to the JSON property `displayName`
519
+ # @return [String]
520
+ attr_accessor :display_name
521
+
522
+ # The type of this operation.
523
+ # Corresponds to the JSON property `operationType`
524
+ # @return [String]
525
+ attr_accessor :operation_type
526
+
527
+ # The resource name of the folder's parent. Only applicable when the
528
+ # operation_type is MOVE.
529
+ # Corresponds to the JSON property `sourceParent`
530
+ # @return [String]
531
+ attr_accessor :source_parent
532
+
533
+ def initialize(**args)
534
+ update!(**args)
535
+ end
536
+
537
+ # Update properties of this object
538
+ def update!(**args)
539
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
540
+ @display_name = args[:display_name] if args.key?(:display_name)
541
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
542
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
543
+ end
544
+ end
545
+
546
+ # A classification of the Folder Operation error.
547
+ class FolderOperationError
548
+ include Google::Apis::Core::Hashable
549
+
550
+ # The type of operation error experienced.
551
+ # Corresponds to the JSON property `errorMessageId`
552
+ # @return [String]
553
+ attr_accessor :error_message_id
554
+
555
+ def initialize(**args)
556
+ update!(**args)
557
+ end
558
+
559
+ # Update properties of this object
560
+ def update!(**args)
561
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
562
+ end
563
+ end
564
+
565
+ # Request message for `GetIamPolicy` method.
566
+ class GetIamPolicyRequest
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # Encapsulates settings provided to GetIamPolicy.
570
+ # Corresponds to the JSON property `options`
571
+ # @return [Google::Apis::CloudresourcemanagerV2::GetPolicyOptions]
572
+ attr_accessor :options
573
+
574
+ def initialize(**args)
575
+ update!(**args)
576
+ end
577
+
578
+ # Update properties of this object
579
+ def update!(**args)
580
+ @options = args[:options] if args.key?(:options)
581
+ end
582
+ end
583
+
584
+ # Encapsulates settings provided to GetIamPolicy.
585
+ class GetPolicyOptions
586
+ include Google::Apis::Core::Hashable
587
+
588
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
589
+ # 3. Requests specifying an invalid value will be rejected. Requests for
590
+ # policies with any conditional bindings must specify version 3. Policies
591
+ # without any conditional bindings may specify any valid value or leave the
592
+ # field unset. To learn which resources support conditions in their IAM policies,
593
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
594
+ # resource-policies).
595
+ # Corresponds to the JSON property `requestedPolicyVersion`
596
+ # @return [Fixnum]
597
+ attr_accessor :requested_policy_version
598
+
599
+ def initialize(**args)
600
+ update!(**args)
601
+ end
602
+
603
+ # Update properties of this object
604
+ def update!(**args)
605
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
606
+ end
607
+ end
608
+
609
+ # The ListFolders response message.
610
+ class ListFoldersResponse
611
+ include Google::Apis::Core::Hashable
612
+
613
+ # A possibly paginated list of Folders that are direct descendants of the
614
+ # specified parent resource.
615
+ # Corresponds to the JSON property `folders`
616
+ # @return [Array<Google::Apis::CloudresourcemanagerV2::Folder>]
617
+ attr_accessor :folders
618
+
619
+ # A pagination token returned from a previous call to `ListFolders` that
620
+ # indicates from where listing should continue.
621
+ # Corresponds to the JSON property `nextPageToken`
622
+ # @return [String]
623
+ attr_accessor :next_page_token
624
+
625
+ def initialize(**args)
626
+ update!(**args)
627
+ end
628
+
629
+ # Update properties of this object
630
+ def update!(**args)
631
+ @folders = args[:folders] if args.key?(:folders)
632
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
633
+ end
634
+ end
635
+
636
+ # Metadata pertaining to the Folder move process.
637
+ class MoveFolderMetadata
638
+ include Google::Apis::Core::Hashable
639
+
640
+ # The resource name of the folder or organization to move the folder to.
641
+ # Corresponds to the JSON property `destinationParent`
642
+ # @return [String]
643
+ attr_accessor :destination_parent
644
+
645
+ # The display name of the folder.
646
+ # Corresponds to the JSON property `displayName`
647
+ # @return [String]
648
+ attr_accessor :display_name
649
+
650
+ # The resource name of the folder's parent.
651
+ # Corresponds to the JSON property `sourceParent`
652
+ # @return [String]
653
+ attr_accessor :source_parent
654
+
655
+ def initialize(**args)
656
+ update!(**args)
657
+ end
658
+
659
+ # Update properties of this object
660
+ def update!(**args)
661
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
662
+ @display_name = args[:display_name] if args.key?(:display_name)
663
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
664
+ end
665
+ end
666
+
667
+ # The MoveFolder request message.
668
+ class MoveFolderRequest
669
+ include Google::Apis::Core::Hashable
670
+
671
+ # Required. The resource name of the Folder or Organization to reparent the
672
+ # folder under. Must be of the form `folders/`folder_id`` or `organizations/`
673
+ # org_id``.
674
+ # Corresponds to the JSON property `destinationParent`
675
+ # @return [String]
676
+ attr_accessor :destination_parent
677
+
678
+ def initialize(**args)
679
+ update!(**args)
680
+ end
681
+
682
+ # Update properties of this object
683
+ def update!(**args)
684
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
685
+ end
686
+ end
687
+
688
+ # A status object which is used as the `metadata` field for the Operation
689
+ # returned by MoveProject.
690
+ class MoveProjectMetadata
691
+ include Google::Apis::Core::Hashable
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ end
700
+ end
701
+
702
+ # This resource represents a long-running operation that is the result of a
703
+ # network API call.
704
+ class Operation
705
+ include Google::Apis::Core::Hashable
706
+
707
+ # If the value is `false`, it means the operation is still in progress. If `true`
708
+ # , the operation is completed, and either `error` or `response` is available.
709
+ # Corresponds to the JSON property `done`
710
+ # @return [Boolean]
711
+ attr_accessor :done
712
+ alias_method :done?, :done
713
+
714
+ # The `Status` type defines a logical error model that is suitable for different
715
+ # programming environments, including REST APIs and RPC APIs. It is used by [
716
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
717
+ # data: error code, error message, and error details. You can find out more
718
+ # about this error model and how to work with it in the [API Design Guide](https:
719
+ # //cloud.google.com/apis/design/errors).
720
+ # Corresponds to the JSON property `error`
721
+ # @return [Google::Apis::CloudresourcemanagerV2::Status]
722
+ attr_accessor :error
723
+
724
+ # Service-specific metadata associated with the operation. It typically contains
725
+ # progress information and common metadata such as create time. Some services
726
+ # might not provide such metadata. Any method that returns a long-running
727
+ # operation should document the metadata type, if any.
728
+ # Corresponds to the JSON property `metadata`
729
+ # @return [Hash<String,Object>]
730
+ attr_accessor :metadata
731
+
732
+ # The server-assigned name, which is only unique within the same service that
733
+ # originally returns it. If you use the default HTTP mapping, the `name` should
734
+ # be a resource name ending with `operations/`unique_id``.
735
+ # Corresponds to the JSON property `name`
736
+ # @return [String]
737
+ attr_accessor :name
738
+
739
+ # The normal response of the operation in case of success. If the original
740
+ # method returns no data on success, such as `Delete`, the response is `google.
741
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
742
+ # the response should be the resource. For other methods, the response should
743
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
744
+ # example, if the original method name is `TakeSnapshot()`, the inferred
745
+ # response type is `TakeSnapshotResponse`.
746
+ # Corresponds to the JSON property `response`
747
+ # @return [Hash<String,Object>]
748
+ attr_accessor :response
749
+
750
+ def initialize(**args)
751
+ update!(**args)
752
+ end
753
+
754
+ # Update properties of this object
755
+ def update!(**args)
756
+ @done = args[:done] if args.key?(:done)
757
+ @error = args[:error] if args.key?(:error)
758
+ @metadata = args[:metadata] if args.key?(:metadata)
759
+ @name = args[:name] if args.key?(:name)
760
+ @response = args[:response] if args.key?(:response)
761
+ end
762
+ end
763
+
764
+ # An Identity and Access Management (IAM) policy, which specifies access
765
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
766
+ # A `binding` binds one or more `members` to a single `role`. Members can be
767
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
768
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
769
+ # role or a user-created custom role. For some types of Google Cloud resources,
770
+ # a `binding` can also specify a `condition`, which is a logical expression that
771
+ # allows access to a resource only if the expression evaluates to `true`. A
772
+ # condition can add constraints based on attributes of the request, the resource,
773
+ # or both. To learn which resources support conditions in their IAM policies,
774
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
775
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
776
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
777
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
778
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
779
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
780
+ # title": "expirable access", "description": "Does not grant access after Sep
781
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
782
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
783
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
784
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
785
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
786
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
787
+ # description: Does not grant access after Sep 2020 expression: request.time <
788
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
789
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
790
+ # google.com/iam/docs/).
791
+ class Policy
792
+ include Google::Apis::Core::Hashable
793
+
794
+ # Specifies cloud audit logging configuration for this policy.
795
+ # Corresponds to the JSON property `auditConfigs`
796
+ # @return [Array<Google::Apis::CloudresourcemanagerV2::AuditConfig>]
797
+ attr_accessor :audit_configs
798
+
799
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
800
+ # condition` that determines how and when the `bindings` are applied. Each of
801
+ # the `bindings` must contain at least one member.
802
+ # Corresponds to the JSON property `bindings`
803
+ # @return [Array<Google::Apis::CloudresourcemanagerV2::Binding>]
804
+ attr_accessor :bindings
805
+
806
+ # `etag` is used for optimistic concurrency control as a way to help prevent
807
+ # simultaneous updates of a policy from overwriting each other. It is strongly
808
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
809
+ # to perform policy updates in order to avoid race conditions: An `etag` is
810
+ # returned in the response to `getIamPolicy`, and systems are expected to put
811
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
812
+ # applied to the same version of the policy. **Important:** If you use IAM
813
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
814
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
815
+ # with a version `1` policy, and all of the conditions in the version `3` policy
816
+ # are lost.
817
+ # Corresponds to the JSON property `etag`
818
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
819
+ # @return [String]
820
+ attr_accessor :etag
821
+
822
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
823
+ # Requests that specify an invalid value are rejected. Any operation that
824
+ # affects conditional role bindings must specify version `3`. This requirement
825
+ # applies to the following operations: * Getting a policy that includes a
826
+ # conditional role binding * Adding a conditional role binding to a policy *
827
+ # Changing a conditional role binding in a policy * Removing any role binding,
828
+ # with or without a condition, from a policy that includes conditions **
829
+ # Important:** If you use IAM Conditions, you must include the `etag` field
830
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
831
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
832
+ # conditions in the version `3` policy are lost. If a policy does not include
833
+ # any conditions, operations on that policy may specify any valid version or
834
+ # leave the field unset. To learn which resources support conditions in their
835
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
836
+ # conditions/resource-policies).
837
+ # Corresponds to the JSON property `version`
838
+ # @return [Fixnum]
839
+ attr_accessor :version
840
+
841
+ def initialize(**args)
842
+ update!(**args)
843
+ end
844
+
845
+ # Update properties of this object
846
+ def update!(**args)
847
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
848
+ @bindings = args[:bindings] if args.key?(:bindings)
849
+ @etag = args[:etag] if args.key?(:etag)
850
+ @version = args[:version] if args.key?(:version)
851
+ end
852
+ end
853
+
854
+ # A status object which is used as the `metadata` field for the Operation
855
+ # returned by CreateProject. It provides insight for when significant phases of
856
+ # Project creation have completed.
857
+ class ProjectCreationStatus
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # Creation time of the project creation workflow.
861
+ # Corresponds to the JSON property `createTime`
862
+ # @return [String]
863
+ attr_accessor :create_time
864
+
865
+ # True if the project can be retrieved using GetProject. No other operations on
866
+ # the project are guaranteed to work until the project creation is complete.
867
+ # Corresponds to the JSON property `gettable`
868
+ # @return [Boolean]
869
+ attr_accessor :gettable
870
+ alias_method :gettable?, :gettable
871
+
872
+ # True if the project creation process is complete.
873
+ # Corresponds to the JSON property `ready`
874
+ # @return [Boolean]
875
+ attr_accessor :ready
876
+ alias_method :ready?, :ready
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @create_time = args[:create_time] if args.key?(:create_time)
885
+ @gettable = args[:gettable] if args.key?(:gettable)
886
+ @ready = args[:ready] if args.key?(:ready)
887
+ end
888
+ end
889
+
890
+ # The request message for searching folders.
891
+ class SearchFoldersRequest
892
+ include Google::Apis::Core::Hashable
893
+
894
+ # Optional. The maximum number of folders to return in the response.
895
+ # Corresponds to the JSON property `pageSize`
896
+ # @return [Fixnum]
897
+ attr_accessor :page_size
898
+
899
+ # Optional. A pagination token returned from a previous call to `SearchFolders`
900
+ # that indicates from where search should continue.
901
+ # Corresponds to the JSON property `pageToken`
902
+ # @return [String]
903
+ attr_accessor :page_token
904
+
905
+ # Search criteria used to select the Folders to return. If no search criteria is
906
+ # specified then all accessible folders will be returned. Query expressions can
907
+ # be used to restrict results based upon displayName, lifecycleState and parent,
908
+ # where the operators `=`, `NOT`, `AND` and `OR` can be used along with the
909
+ # suffix wildcard symbol `*`. The displayName field in a query expression should
910
+ # use escaped quotes for values that include whitespace to prevent unexpected
911
+ # behavior. Some example queries are: * Query `displayName=Test*` returns Folder
912
+ # resources whose display name starts with "Test". * Query `lifecycleState=
913
+ # ACTIVE` returns Folder resources with `lifecycleState` set to `ACTIVE`. *
914
+ # Query `parent=folders/123` returns Folder resources that have `folders/123` as
915
+ # a parent resource. * Query `parent=folders/123 AND lifecycleState=ACTIVE`
916
+ # returns active Folder resources that have `folders/123` as a parent resource. *
917
+ # Query `displayName=\\"Test String\\"` returns Folder resources with display
918
+ # names that include both "Test" and "String".
919
+ # Corresponds to the JSON property `query`
920
+ # @return [String]
921
+ attr_accessor :query
922
+
923
+ def initialize(**args)
924
+ update!(**args)
925
+ end
926
+
927
+ # Update properties of this object
928
+ def update!(**args)
929
+ @page_size = args[:page_size] if args.key?(:page_size)
930
+ @page_token = args[:page_token] if args.key?(:page_token)
931
+ @query = args[:query] if args.key?(:query)
932
+ end
933
+ end
934
+
935
+ # The response message for searching folders.
936
+ class SearchFoldersResponse
937
+ include Google::Apis::Core::Hashable
938
+
939
+ # A possibly paginated folder search results. the specified parent resource.
940
+ # Corresponds to the JSON property `folders`
941
+ # @return [Array<Google::Apis::CloudresourcemanagerV2::Folder>]
942
+ attr_accessor :folders
943
+
944
+ # A pagination token returned from a previous call to `SearchFolders` that
945
+ # indicates from where searching should continue.
946
+ # Corresponds to the JSON property `nextPageToken`
947
+ # @return [String]
948
+ attr_accessor :next_page_token
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @folders = args[:folders] if args.key?(:folders)
957
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
958
+ end
959
+ end
960
+
961
+ # Request message for `SetIamPolicy` method.
962
+ class SetIamPolicyRequest
963
+ include Google::Apis::Core::Hashable
964
+
965
+ # An Identity and Access Management (IAM) policy, which specifies access
966
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
967
+ # A `binding` binds one or more `members` to a single `role`. Members can be
968
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
969
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
970
+ # role or a user-created custom role. For some types of Google Cloud resources,
971
+ # a `binding` can also specify a `condition`, which is a logical expression that
972
+ # allows access to a resource only if the expression evaluates to `true`. A
973
+ # condition can add constraints based on attributes of the request, the resource,
974
+ # or both. To learn which resources support conditions in their IAM policies,
975
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
976
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
977
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
978
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
979
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
980
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
981
+ # title": "expirable access", "description": "Does not grant access after Sep
982
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
983
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
984
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
985
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
986
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
987
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
988
+ # description: Does not grant access after Sep 2020 expression: request.time <
989
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
990
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
991
+ # google.com/iam/docs/).
992
+ # Corresponds to the JSON property `policy`
993
+ # @return [Google::Apis::CloudresourcemanagerV2::Policy]
994
+ attr_accessor :policy
995
+
996
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
997
+ # the fields in the mask will be modified. If no mask is provided, the following
998
+ # default mask is used: `paths: "bindings, etag"`
999
+ # Corresponds to the JSON property `updateMask`
1000
+ # @return [String]
1001
+ attr_accessor :update_mask
1002
+
1003
+ def initialize(**args)
1004
+ update!(**args)
1005
+ end
1006
+
1007
+ # Update properties of this object
1008
+ def update!(**args)
1009
+ @policy = args[:policy] if args.key?(:policy)
1010
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1011
+ end
1012
+ end
1013
+
1014
+ # The `Status` type defines a logical error model that is suitable for different
1015
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1016
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1017
+ # data: error code, error message, and error details. You can find out more
1018
+ # about this error model and how to work with it in the [API Design Guide](https:
1019
+ # //cloud.google.com/apis/design/errors).
1020
+ class Status
1021
+ include Google::Apis::Core::Hashable
1022
+
1023
+ # The status code, which should be an enum value of google.rpc.Code.
1024
+ # Corresponds to the JSON property `code`
1025
+ # @return [Fixnum]
1026
+ attr_accessor :code
1027
+
1028
+ # A list of messages that carry the error details. There is a common set of
1029
+ # message types for APIs to use.
1030
+ # Corresponds to the JSON property `details`
1031
+ # @return [Array<Hash<String,Object>>]
1032
+ attr_accessor :details
1033
+
1034
+ # A developer-facing error message, which should be in English. Any user-facing
1035
+ # error message should be localized and sent in the google.rpc.Status.details
1036
+ # field, or localized by the client.
1037
+ # Corresponds to the JSON property `message`
1038
+ # @return [String]
1039
+ attr_accessor :message
1040
+
1041
+ def initialize(**args)
1042
+ update!(**args)
1043
+ end
1044
+
1045
+ # Update properties of this object
1046
+ def update!(**args)
1047
+ @code = args[:code] if args.key?(:code)
1048
+ @details = args[:details] if args.key?(:details)
1049
+ @message = args[:message] if args.key?(:message)
1050
+ end
1051
+ end
1052
+
1053
+ # Request message for `TestIamPermissions` method.
1054
+ class TestIamPermissionsRequest
1055
+ include Google::Apis::Core::Hashable
1056
+
1057
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1058
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1059
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1060
+ # Corresponds to the JSON property `permissions`
1061
+ # @return [Array<String>]
1062
+ attr_accessor :permissions
1063
+
1064
+ def initialize(**args)
1065
+ update!(**args)
1066
+ end
1067
+
1068
+ # Update properties of this object
1069
+ def update!(**args)
1070
+ @permissions = args[:permissions] if args.key?(:permissions)
1071
+ end
1072
+ end
1073
+
1074
+ # Response message for `TestIamPermissions` method.
1075
+ class TestIamPermissionsResponse
1076
+ include Google::Apis::Core::Hashable
1077
+
1078
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1079
+ # Corresponds to the JSON property `permissions`
1080
+ # @return [Array<String>]
1081
+ attr_accessor :permissions
1082
+
1083
+ def initialize(**args)
1084
+ update!(**args)
1085
+ end
1086
+
1087
+ # Update properties of this object
1088
+ def update!(**args)
1089
+ @permissions = args[:permissions] if args.key?(:permissions)
1090
+ end
1091
+ end
1092
+
1093
+ # A status object which is used as the `metadata` field for the Operation
1094
+ # returned by UndeleteFolder.
1095
+ class UndeleteFolderMetadata
1096
+ include Google::Apis::Core::Hashable
1097
+
1098
+ def initialize(**args)
1099
+ update!(**args)
1100
+ end
1101
+
1102
+ # Update properties of this object
1103
+ def update!(**args)
1104
+ end
1105
+ end
1106
+
1107
+ # The UndeleteFolder request message.
1108
+ class UndeleteFolderRequest
1109
+ include Google::Apis::Core::Hashable
1110
+
1111
+ def initialize(**args)
1112
+ update!(**args)
1113
+ end
1114
+
1115
+ # Update properties of this object
1116
+ def update!(**args)
1117
+ end
1118
+ end
1119
+
1120
+ # A status object which is used as the `metadata` field for the Operation
1121
+ # returned by UndeleteOrganization.
1122
+ class UndeleteOrganizationMetadata
1123
+ include Google::Apis::Core::Hashable
1124
+
1125
+ def initialize(**args)
1126
+ update!(**args)
1127
+ end
1128
+
1129
+ # Update properties of this object
1130
+ def update!(**args)
1131
+ end
1132
+ end
1133
+
1134
+ # A status object which is used as the `metadata` field for the Operation
1135
+ # returned by UndeleteProject.
1136
+ class UndeleteProjectMetadata
1137
+ include Google::Apis::Core::Hashable
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ end
1146
+ end
1147
+
1148
+ # A status object which is used as the `metadata` field for the Operation
1149
+ # returned by UpdateFolder.
1150
+ class UpdateFolderMetadata
1151
+ include Google::Apis::Core::Hashable
1152
+
1153
+ def initialize(**args)
1154
+ update!(**args)
1155
+ end
1156
+
1157
+ # Update properties of this object
1158
+ def update!(**args)
1159
+ end
1160
+ end
1161
+
1162
+ # A status object which is used as the `metadata` field for the Operation
1163
+ # returned by UpdateProject.
1164
+ class UpdateProjectMetadata
1165
+ include Google::Apis::Core::Hashable
1166
+
1167
+ def initialize(**args)
1168
+ update!(**args)
1169
+ end
1170
+
1171
+ # Update properties of this object
1172
+ def update!(**args)
1173
+ end
1174
+ end
1175
+
1176
+ # Runtime operation information for updating a TagKey.
1177
+ class UpdateTagKeyMetadata
1178
+ include Google::Apis::Core::Hashable
1179
+
1180
+ def initialize(**args)
1181
+ update!(**args)
1182
+ end
1183
+
1184
+ # Update properties of this object
1185
+ def update!(**args)
1186
+ end
1187
+ end
1188
+
1189
+ # Runtime operation information for updating a TagValue.
1190
+ class UpdateTagValueMetadata
1191
+ include Google::Apis::Core::Hashable
1192
+
1193
+ def initialize(**args)
1194
+ update!(**args)
1195
+ end
1196
+
1197
+ # Update properties of this object
1198
+ def update!(**args)
1199
+ end
1200
+ end
1201
+ end
1202
+ end
1203
+ end