google-apis-cloudresourcemanager_v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1a2413eba192bf86e811fb344f0ab2127762176037d48c602c6a5944e6887ca4
4
+ data.tar.gz: 1251851c0975e31d96562e249625c2fd3a1f03c88c91918ec43b3a780f9f624c
5
+ SHA512:
6
+ metadata.gz: 1a9e918ce6d274988071eb43893b7772b84be7322f99b88b2e4ed339d6e0c6e47e0a8120ca5b7843d69d6c86bf14555d95ee404ab4db3c2ef7dd402d9787543c
7
+ data.tar.gz: a6f3f7449280934bb329608f78b6b8dd8169c190fa0655113fa293e16c58e748372494ba50947f4eac284337accd166ce57b953aaf8ac2d35fce4059a2ec7c17
data/.yardopts ADDED
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudresourcemanager_v3
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudresourcemanager_v3/*.rb
9
+ lib/google/apis/cloudresourcemanager_v3.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudresourcemanager_v3
2
+
3
+ ### v0.1.0 (2021-02-19)
4
+
5
+ * Regenerated from discovery document revision 20210215
6
+ * Regenerated using generator version 0.1.2
7
+
data/LICENSE.md ADDED
@@ -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.
data/OVERVIEW.md ADDED
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V3 of the Cloud Resource Manager API
2
+
3
+ This is a simple client library for version V3 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_v3', '~> 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_v3
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_v3"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudresourcemanagerV3::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::CloudresourcemanagerV3::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_v3`, 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_v3"
@@ -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_v3/service.rb'
16
+ require 'google/apis/cloudresourcemanager_v3/classes.rb'
17
+ require 'google/apis/cloudresourcemanager_v3/representations.rb'
18
+ require 'google/apis/cloudresourcemanager_v3/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 CloudresourcemanagerV3
29
+ # Version of the Cloud Resource Manager API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V3'
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,1159 @@
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 CloudresourcemanagerV3
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::CloudresourcemanagerV3::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::CloudresourcemanagerV3::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
+ # Runtime operation information for creating a TagKey.
246
+ class CreateTagKeyMetadata
247
+ include Google::Apis::Core::Hashable
248
+
249
+ def initialize(**args)
250
+ update!(**args)
251
+ end
252
+
253
+ # Update properties of this object
254
+ def update!(**args)
255
+ end
256
+ end
257
+
258
+ # Runtime operation information for creating a TagValue.
259
+ class CreateTagValueMetadata
260
+ include Google::Apis::Core::Hashable
261
+
262
+ def initialize(**args)
263
+ update!(**args)
264
+ end
265
+
266
+ # Update properties of this object
267
+ def update!(**args)
268
+ end
269
+ end
270
+
271
+ # Runtime operation information for deleting a TagKey.
272
+ class DeleteTagKeyMetadata
273
+ include Google::Apis::Core::Hashable
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ end
282
+ end
283
+
284
+ # Runtime operation information for deleting a TagValue.
285
+ class DeleteTagValueMetadata
286
+ include Google::Apis::Core::Hashable
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ end
295
+ end
296
+
297
+ # A generic empty message that you can re-use to avoid defining duplicated empty
298
+ # messages in your APIs. A typical example is to use it as the request or the
299
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
300
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
301
+ # `Empty` is empty JSON object ````.
302
+ class Empty
303
+ include Google::Apis::Core::Hashable
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ end
312
+ end
313
+
314
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
315
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
316
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
317
+ # "Summary size limit" description: "Determines if a summary is less than 100
318
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
319
+ # Requestor is owner" description: "Determines if requestor is the document
320
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
321
+ # Logic): title: "Public documents" description: "Determine whether the document
322
+ # should be publicly visible" expression: "document.type != 'private' &&
323
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
324
+ # string" description: "Create a notification string with a timestamp."
325
+ # expression: "'New message received at ' + string(document.create_time)" The
326
+ # exact variables and functions that may be referenced within an expression are
327
+ # determined by the service that evaluates it. See the service documentation for
328
+ # additional information.
329
+ class Expr
330
+ include Google::Apis::Core::Hashable
331
+
332
+ # Optional. Description of the expression. This is a longer text which describes
333
+ # the expression, e.g. when hovered over it in a UI.
334
+ # Corresponds to the JSON property `description`
335
+ # @return [String]
336
+ attr_accessor :description
337
+
338
+ # Textual representation of an expression in Common Expression Language syntax.
339
+ # Corresponds to the JSON property `expression`
340
+ # @return [String]
341
+ attr_accessor :expression
342
+
343
+ # Optional. String indicating the location of the expression for error reporting,
344
+ # e.g. a file name and a position in the file.
345
+ # Corresponds to the JSON property `location`
346
+ # @return [String]
347
+ attr_accessor :location
348
+
349
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
350
+ # This can be used e.g. in UIs which allow to enter the expression.
351
+ # Corresponds to the JSON property `title`
352
+ # @return [String]
353
+ attr_accessor :title
354
+
355
+ def initialize(**args)
356
+ update!(**args)
357
+ end
358
+
359
+ # Update properties of this object
360
+ def update!(**args)
361
+ @description = args[:description] if args.key?(:description)
362
+ @expression = args[:expression] if args.key?(:expression)
363
+ @location = args[:location] if args.key?(:location)
364
+ @title = args[:title] if args.key?(:title)
365
+ end
366
+ end
367
+
368
+ # Metadata describing a long running folder operation
369
+ class FolderOperation
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # The resource name of the folder or organization we are either creating the
373
+ # folder under or moving the folder to.
374
+ # Corresponds to the JSON property `destinationParent`
375
+ # @return [String]
376
+ attr_accessor :destination_parent
377
+
378
+ # The display name of the folder.
379
+ # Corresponds to the JSON property `displayName`
380
+ # @return [String]
381
+ attr_accessor :display_name
382
+
383
+ # The type of this operation.
384
+ # Corresponds to the JSON property `operationType`
385
+ # @return [String]
386
+ attr_accessor :operation_type
387
+
388
+ # The resource name of the folder's parent. Only applicable when the
389
+ # operation_type is MOVE.
390
+ # Corresponds to the JSON property `sourceParent`
391
+ # @return [String]
392
+ attr_accessor :source_parent
393
+
394
+ def initialize(**args)
395
+ update!(**args)
396
+ end
397
+
398
+ # Update properties of this object
399
+ def update!(**args)
400
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
401
+ @display_name = args[:display_name] if args.key?(:display_name)
402
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
403
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
404
+ end
405
+ end
406
+
407
+ # A classification of the Folder Operation error.
408
+ class FolderOperationError
409
+ include Google::Apis::Core::Hashable
410
+
411
+ # The type of operation error experienced.
412
+ # Corresponds to the JSON property `errorMessageId`
413
+ # @return [String]
414
+ attr_accessor :error_message_id
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
423
+ end
424
+ end
425
+
426
+ # Request message for `GetIamPolicy` method.
427
+ class GetIamPolicyRequest
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # Encapsulates settings provided to GetIamPolicy.
431
+ # Corresponds to the JSON property `options`
432
+ # @return [Google::Apis::CloudresourcemanagerV3::GetPolicyOptions]
433
+ attr_accessor :options
434
+
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
+
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @options = args[:options] if args.key?(:options)
442
+ end
443
+ end
444
+
445
+ # Encapsulates settings provided to GetIamPolicy.
446
+ class GetPolicyOptions
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
450
+ # 3. Requests specifying an invalid value will be rejected. Requests for
451
+ # policies with any conditional bindings must specify version 3. Policies
452
+ # without any conditional bindings may specify any valid value or leave the
453
+ # field unset. To learn which resources support conditions in their IAM policies,
454
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
455
+ # resource-policies).
456
+ # Corresponds to the JSON property `requestedPolicyVersion`
457
+ # @return [Fixnum]
458
+ attr_accessor :requested_policy_version
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
467
+ end
468
+ end
469
+
470
+ # A Lien represents an encumbrance on the actions that can be performed on a
471
+ # resource.
472
+ class Lien
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # The creation time of this Lien.
476
+ # Corresponds to the JSON property `createTime`
477
+ # @return [String]
478
+ attr_accessor :create_time
479
+
480
+ # A system-generated unique identifier for this Lien. Example: `liens/1234abcd`
481
+ # Corresponds to the JSON property `name`
482
+ # @return [String]
483
+ attr_accessor :name
484
+
485
+ # A stable, user-visible/meaningful string identifying the origin of the Lien,
486
+ # intended to be inspected programmatically. Maximum length of 200 characters.
487
+ # Example: 'compute.googleapis.com'
488
+ # Corresponds to the JSON property `origin`
489
+ # @return [String]
490
+ attr_accessor :origin
491
+
492
+ # A reference to the resource this Lien is attached to. The server will validate
493
+ # the parent against those for which Liens are supported. Example: `projects/
494
+ # 1234`
495
+ # Corresponds to the JSON property `parent`
496
+ # @return [String]
497
+ attr_accessor :parent
498
+
499
+ # Concise user-visible strings indicating why an action cannot be performed on a
500
+ # resource. Maximum length of 200 characters. Example: 'Holds production API key'
501
+ # Corresponds to the JSON property `reason`
502
+ # @return [String]
503
+ attr_accessor :reason
504
+
505
+ # The types of operations which should be blocked as a result of this Lien. Each
506
+ # value should correspond to an IAM permission. The server will validate the
507
+ # permissions against those for which Liens are supported. An empty list is
508
+ # meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
509
+ # Corresponds to the JSON property `restrictions`
510
+ # @return [Array<String>]
511
+ attr_accessor :restrictions
512
+
513
+ def initialize(**args)
514
+ update!(**args)
515
+ end
516
+
517
+ # Update properties of this object
518
+ def update!(**args)
519
+ @create_time = args[:create_time] if args.key?(:create_time)
520
+ @name = args[:name] if args.key?(:name)
521
+ @origin = args[:origin] if args.key?(:origin)
522
+ @parent = args[:parent] if args.key?(:parent)
523
+ @reason = args[:reason] if args.key?(:reason)
524
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
525
+ end
526
+ end
527
+
528
+ # The response message for Liens.ListLiens.
529
+ class ListLiensResponse
530
+ include Google::Apis::Core::Hashable
531
+
532
+ # A list of Liens.
533
+ # Corresponds to the JSON property `liens`
534
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::Lien>]
535
+ attr_accessor :liens
536
+
537
+ # Token to retrieve the next page of results, or empty if there are no more
538
+ # results in the list.
539
+ # Corresponds to the JSON property `nextPageToken`
540
+ # @return [String]
541
+ attr_accessor :next_page_token
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @liens = args[:liens] if args.key?(:liens)
550
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
551
+ end
552
+ end
553
+
554
+ # The ListTagBindings response.
555
+ class ListTagBindingsResponse
556
+ include Google::Apis::Core::Hashable
557
+
558
+ # A pagination token returned from a previous call to `ListTagBindings` that
559
+ # indicates from where listing should continue. This is currently not used, but
560
+ # the server may at any point start supplying a valid token.
561
+ # Corresponds to the JSON property `nextPageToken`
562
+ # @return [String]
563
+ attr_accessor :next_page_token
564
+
565
+ # A possibly paginated list of TagBindings for the specified TagValue or
566
+ # resource.
567
+ # Corresponds to the JSON property `tagBindings`
568
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::TagBinding>]
569
+ attr_accessor :tag_bindings
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
578
+ @tag_bindings = args[:tag_bindings] if args.key?(:tag_bindings)
579
+ end
580
+ end
581
+
582
+ # The ListTagKeys response message.
583
+ class ListTagKeysResponse
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # A pagination token returned from a previous call to `ListTagKeys` that
587
+ # indicates from where listing should continue. This is currently not used, but
588
+ # the server may at any point start supplying a valid token.
589
+ # Corresponds to the JSON property `nextPageToken`
590
+ # @return [String]
591
+ attr_accessor :next_page_token
592
+
593
+ # List of TagKeys that live under the specified parent in the request.
594
+ # Corresponds to the JSON property `tagKeys`
595
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::TagKey>]
596
+ attr_accessor :tag_keys
597
+
598
+ def initialize(**args)
599
+ update!(**args)
600
+ end
601
+
602
+ # Update properties of this object
603
+ def update!(**args)
604
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
605
+ @tag_keys = args[:tag_keys] if args.key?(:tag_keys)
606
+ end
607
+ end
608
+
609
+ # The ListTagValues response.
610
+ class ListTagValuesResponse
611
+ include Google::Apis::Core::Hashable
612
+
613
+ # A pagination token returned from a previous call to `ListTagValues` that
614
+ # indicates from where listing should continue. This is currently not used, but
615
+ # the server may at any point start supplying a valid token.
616
+ # Corresponds to the JSON property `nextPageToken`
617
+ # @return [String]
618
+ attr_accessor :next_page_token
619
+
620
+ # A possibly paginated list of TagValues that are direct descendants of the
621
+ # specified parent TagKey.
622
+ # Corresponds to the JSON property `tagValues`
623
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::TagValue>]
624
+ attr_accessor :tag_values
625
+
626
+ def initialize(**args)
627
+ update!(**args)
628
+ end
629
+
630
+ # Update properties of this object
631
+ def update!(**args)
632
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
633
+ @tag_values = args[:tag_values] if args.key?(:tag_values)
634
+ end
635
+ end
636
+
637
+ # This resource represents a long-running operation that is the result of a
638
+ # network API call.
639
+ class Operation
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # If the value is `false`, it means the operation is still in progress. If `true`
643
+ # , the operation is completed, and either `error` or `response` is available.
644
+ # Corresponds to the JSON property `done`
645
+ # @return [Boolean]
646
+ attr_accessor :done
647
+ alias_method :done?, :done
648
+
649
+ # The `Status` type defines a logical error model that is suitable for different
650
+ # programming environments, including REST APIs and RPC APIs. It is used by [
651
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
652
+ # data: error code, error message, and error details. You can find out more
653
+ # about this error model and how to work with it in the [API Design Guide](https:
654
+ # //cloud.google.com/apis/design/errors).
655
+ # Corresponds to the JSON property `error`
656
+ # @return [Google::Apis::CloudresourcemanagerV3::Status]
657
+ attr_accessor :error
658
+
659
+ # Service-specific metadata associated with the operation. It typically contains
660
+ # progress information and common metadata such as create time. Some services
661
+ # might not provide such metadata. Any method that returns a long-running
662
+ # operation should document the metadata type, if any.
663
+ # Corresponds to the JSON property `metadata`
664
+ # @return [Hash<String,Object>]
665
+ attr_accessor :metadata
666
+
667
+ # The server-assigned name, which is only unique within the same service that
668
+ # originally returns it. If you use the default HTTP mapping, the `name` should
669
+ # be a resource name ending with `operations/`unique_id``.
670
+ # Corresponds to the JSON property `name`
671
+ # @return [String]
672
+ attr_accessor :name
673
+
674
+ # The normal response of the operation in case of success. If the original
675
+ # method returns no data on success, such as `Delete`, the response is `google.
676
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
677
+ # the response should be the resource. For other methods, the response should
678
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
679
+ # example, if the original method name is `TakeSnapshot()`, the inferred
680
+ # response type is `TakeSnapshotResponse`.
681
+ # Corresponds to the JSON property `response`
682
+ # @return [Hash<String,Object>]
683
+ attr_accessor :response
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @done = args[:done] if args.key?(:done)
692
+ @error = args[:error] if args.key?(:error)
693
+ @metadata = args[:metadata] if args.key?(:metadata)
694
+ @name = args[:name] if args.key?(:name)
695
+ @response = args[:response] if args.key?(:response)
696
+ end
697
+ end
698
+
699
+ # An Identity and Access Management (IAM) policy, which specifies access
700
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
701
+ # A `binding` binds one or more `members` to a single `role`. Members can be
702
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
703
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
704
+ # role or a user-created custom role. For some types of Google Cloud resources,
705
+ # a `binding` can also specify a `condition`, which is a logical expression that
706
+ # allows access to a resource only if the expression evaluates to `true`. A
707
+ # condition can add constraints based on attributes of the request, the resource,
708
+ # or both. To learn which resources support conditions in their IAM policies,
709
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
710
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
711
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
712
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
713
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
714
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
715
+ # title": "expirable access", "description": "Does not grant access after Sep
716
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
717
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
718
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
719
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
720
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
721
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
722
+ # description: Does not grant access after Sep 2020 expression: request.time <
723
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
724
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
725
+ # google.com/iam/docs/).
726
+ class Policy
727
+ include Google::Apis::Core::Hashable
728
+
729
+ # Specifies cloud audit logging configuration for this policy.
730
+ # Corresponds to the JSON property `auditConfigs`
731
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::AuditConfig>]
732
+ attr_accessor :audit_configs
733
+
734
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
735
+ # condition` that determines how and when the `bindings` are applied. Each of
736
+ # the `bindings` must contain at least one member.
737
+ # Corresponds to the JSON property `bindings`
738
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::Binding>]
739
+ attr_accessor :bindings
740
+
741
+ # `etag` is used for optimistic concurrency control as a way to help prevent
742
+ # simultaneous updates of a policy from overwriting each other. It is strongly
743
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
744
+ # to perform policy updates in order to avoid race conditions: An `etag` is
745
+ # returned in the response to `getIamPolicy`, and systems are expected to put
746
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
747
+ # applied to the same version of the policy. **Important:** If you use IAM
748
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
749
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
750
+ # with a version `1` policy, and all of the conditions in the version `3` policy
751
+ # are lost.
752
+ # Corresponds to the JSON property `etag`
753
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
754
+ # @return [String]
755
+ attr_accessor :etag
756
+
757
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
758
+ # Requests that specify an invalid value are rejected. Any operation that
759
+ # affects conditional role bindings must specify version `3`. This requirement
760
+ # applies to the following operations: * Getting a policy that includes a
761
+ # conditional role binding * Adding a conditional role binding to a policy *
762
+ # Changing a conditional role binding in a policy * Removing any role binding,
763
+ # with or without a condition, from a policy that includes conditions **
764
+ # Important:** If you use IAM Conditions, you must include the `etag` field
765
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
766
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
767
+ # conditions in the version `3` policy are lost. If a policy does not include
768
+ # any conditions, operations on that policy may specify any valid version or
769
+ # leave the field unset. To learn which resources support conditions in their
770
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
771
+ # conditions/resource-policies).
772
+ # Corresponds to the JSON property `version`
773
+ # @return [Fixnum]
774
+ attr_accessor :version
775
+
776
+ def initialize(**args)
777
+ update!(**args)
778
+ end
779
+
780
+ # Update properties of this object
781
+ def update!(**args)
782
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
783
+ @bindings = args[:bindings] if args.key?(:bindings)
784
+ @etag = args[:etag] if args.key?(:etag)
785
+ @version = args[:version] if args.key?(:version)
786
+ end
787
+ end
788
+
789
+ # A status object which is used as the `metadata` field for the Operation
790
+ # returned by CreateProject. It provides insight for when significant phases of
791
+ # Project creation have completed.
792
+ class ProjectCreationStatus
793
+ include Google::Apis::Core::Hashable
794
+
795
+ # Creation time of the project creation workflow.
796
+ # Corresponds to the JSON property `createTime`
797
+ # @return [String]
798
+ attr_accessor :create_time
799
+
800
+ # True if the project can be retrieved using GetProject. No other operations on
801
+ # the project are guaranteed to work until the project creation is complete.
802
+ # Corresponds to the JSON property `gettable`
803
+ # @return [Boolean]
804
+ attr_accessor :gettable
805
+ alias_method :gettable?, :gettable
806
+
807
+ # True if the project creation process is complete.
808
+ # Corresponds to the JSON property `ready`
809
+ # @return [Boolean]
810
+ attr_accessor :ready
811
+ alias_method :ready?, :ready
812
+
813
+ def initialize(**args)
814
+ update!(**args)
815
+ end
816
+
817
+ # Update properties of this object
818
+ def update!(**args)
819
+ @create_time = args[:create_time] if args.key?(:create_time)
820
+ @gettable = args[:gettable] if args.key?(:gettable)
821
+ @ready = args[:ready] if args.key?(:ready)
822
+ end
823
+ end
824
+
825
+ # Request message for `SetIamPolicy` method.
826
+ class SetIamPolicyRequest
827
+ include Google::Apis::Core::Hashable
828
+
829
+ # An Identity and Access Management (IAM) policy, which specifies access
830
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
831
+ # A `binding` binds one or more `members` to a single `role`. Members can be
832
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
833
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
834
+ # role or a user-created custom role. For some types of Google Cloud resources,
835
+ # a `binding` can also specify a `condition`, which is a logical expression that
836
+ # allows access to a resource only if the expression evaluates to `true`. A
837
+ # condition can add constraints based on attributes of the request, the resource,
838
+ # or both. To learn which resources support conditions in their IAM policies,
839
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
840
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
841
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
842
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
843
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
844
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
845
+ # title": "expirable access", "description": "Does not grant access after Sep
846
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
847
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
848
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
849
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
850
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
851
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
852
+ # description: Does not grant access after Sep 2020 expression: request.time <
853
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
854
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
855
+ # google.com/iam/docs/).
856
+ # Corresponds to the JSON property `policy`
857
+ # @return [Google::Apis::CloudresourcemanagerV3::Policy]
858
+ attr_accessor :policy
859
+
860
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
861
+ # the fields in the mask will be modified. If no mask is provided, the following
862
+ # default mask is used: `paths: "bindings, etag"`
863
+ # Corresponds to the JSON property `updateMask`
864
+ # @return [String]
865
+ attr_accessor :update_mask
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @policy = args[:policy] if args.key?(:policy)
874
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
875
+ end
876
+ end
877
+
878
+ # The `Status` type defines a logical error model that is suitable for different
879
+ # programming environments, including REST APIs and RPC APIs. It is used by [
880
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
881
+ # data: error code, error message, and error details. You can find out more
882
+ # about this error model and how to work with it in the [API Design Guide](https:
883
+ # //cloud.google.com/apis/design/errors).
884
+ class Status
885
+ include Google::Apis::Core::Hashable
886
+
887
+ # The status code, which should be an enum value of google.rpc.Code.
888
+ # Corresponds to the JSON property `code`
889
+ # @return [Fixnum]
890
+ attr_accessor :code
891
+
892
+ # A list of messages that carry the error details. There is a common set of
893
+ # message types for APIs to use.
894
+ # Corresponds to the JSON property `details`
895
+ # @return [Array<Hash<String,Object>>]
896
+ attr_accessor :details
897
+
898
+ # A developer-facing error message, which should be in English. Any user-facing
899
+ # error message should be localized and sent in the google.rpc.Status.details
900
+ # field, or localized by the client.
901
+ # Corresponds to the JSON property `message`
902
+ # @return [String]
903
+ attr_accessor :message
904
+
905
+ def initialize(**args)
906
+ update!(**args)
907
+ end
908
+
909
+ # Update properties of this object
910
+ def update!(**args)
911
+ @code = args[:code] if args.key?(:code)
912
+ @details = args[:details] if args.key?(:details)
913
+ @message = args[:message] if args.key?(:message)
914
+ end
915
+ end
916
+
917
+ # A TagBinding represents a connection between a TagValue and a cloud resource (
918
+ # currently project, folder, or organization). Once a TagBinding is created, the
919
+ # TagValue is applied to all the descendants of the cloud resource.
920
+ class TagBinding
921
+ include Google::Apis::Core::Hashable
922
+
923
+ # Output only. The name of the TagBinding. This is a String of the form: `
924
+ # tagBindings/`full-resource-name`/`tag-value-name`` (e.g. `tagBindings/%2F%
925
+ # 2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
926
+ # Corresponds to the JSON property `name`
927
+ # @return [String]
928
+ attr_accessor :name
929
+
930
+ # The full resource name of the resource the TagValue is bound to. E.g. `//
931
+ # cloudresourcemanager.googleapis.com/projects/123`
932
+ # Corresponds to the JSON property `parent`
933
+ # @return [String]
934
+ attr_accessor :parent
935
+
936
+ # The TagValue of the TagBinding. Must be of the form `tagValues/456`.
937
+ # Corresponds to the JSON property `tagValue`
938
+ # @return [String]
939
+ attr_accessor :tag_value
940
+
941
+ def initialize(**args)
942
+ update!(**args)
943
+ end
944
+
945
+ # Update properties of this object
946
+ def update!(**args)
947
+ @name = args[:name] if args.key?(:name)
948
+ @parent = args[:parent] if args.key?(:parent)
949
+ @tag_value = args[:tag_value] if args.key?(:tag_value)
950
+ end
951
+ end
952
+
953
+ # A TagKey, used to group a set of TagValues.
954
+ class TagKey
955
+ include Google::Apis::Core::Hashable
956
+
957
+ # Output only. Creation time.
958
+ # Corresponds to the JSON property `createTime`
959
+ # @return [String]
960
+ attr_accessor :create_time
961
+
962
+ # Optional. User-assigned description of the TagKey. Must not exceed 256
963
+ # characters. Read-write.
964
+ # Corresponds to the JSON property `description`
965
+ # @return [String]
966
+ attr_accessor :description
967
+
968
+ # Optional. Entity tag which users can pass to prevent race conditions. This
969
+ # field is always set in server responses. See UpdateTagKeyRequest for details.
970
+ # Corresponds to the JSON property `etag`
971
+ # @return [String]
972
+ attr_accessor :etag
973
+
974
+ # Immutable. The resource name for a TagKey. Must be in the format `tagKeys/`
975
+ # tag_key_id``, where `tag_key_id` is the generated numeric id for the TagKey.
976
+ # Corresponds to the JSON property `name`
977
+ # @return [String]
978
+ attr_accessor :name
979
+
980
+ # Output only. Immutable. Namespaced name of the TagKey.
981
+ # Corresponds to the JSON property `namespacedName`
982
+ # @return [String]
983
+ attr_accessor :namespaced_name
984
+
985
+ # Immutable. The resource name of the new TagKey's parent. Must be of the form `
986
+ # organizations/`org_id``.
987
+ # Corresponds to the JSON property `parent`
988
+ # @return [String]
989
+ attr_accessor :parent
990
+
991
+ # Required. Immutable. The user friendly name for a TagKey. The short name
992
+ # should be unique for TagKeys within the same tag namespace. The short name
993
+ # must be 1-63 characters, beginning and ending with an alphanumeric character ([
994
+ # a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics
995
+ # between.
996
+ # Corresponds to the JSON property `shortName`
997
+ # @return [String]
998
+ attr_accessor :short_name
999
+
1000
+ # Output only. Update time.
1001
+ # Corresponds to the JSON property `updateTime`
1002
+ # @return [String]
1003
+ attr_accessor :update_time
1004
+
1005
+ def initialize(**args)
1006
+ update!(**args)
1007
+ end
1008
+
1009
+ # Update properties of this object
1010
+ def update!(**args)
1011
+ @create_time = args[:create_time] if args.key?(:create_time)
1012
+ @description = args[:description] if args.key?(:description)
1013
+ @etag = args[:etag] if args.key?(:etag)
1014
+ @name = args[:name] if args.key?(:name)
1015
+ @namespaced_name = args[:namespaced_name] if args.key?(:namespaced_name)
1016
+ @parent = args[:parent] if args.key?(:parent)
1017
+ @short_name = args[:short_name] if args.key?(:short_name)
1018
+ @update_time = args[:update_time] if args.key?(:update_time)
1019
+ end
1020
+ end
1021
+
1022
+ # A TagValue is a child of a particular TagKey. This is used to group cloud
1023
+ # resources for the purpose of controlling them using policies.
1024
+ class TagValue
1025
+ include Google::Apis::Core::Hashable
1026
+
1027
+ # Output only. Creation time.
1028
+ # Corresponds to the JSON property `createTime`
1029
+ # @return [String]
1030
+ attr_accessor :create_time
1031
+
1032
+ # Optional. User-assigned description of the TagValue. Must not exceed 256
1033
+ # characters. Read-write.
1034
+ # Corresponds to the JSON property `description`
1035
+ # @return [String]
1036
+ attr_accessor :description
1037
+
1038
+ # Optional. Entity tag which users can pass to prevent race conditions. This
1039
+ # field is always set in server responses. See UpdateTagValueRequest for details.
1040
+ # Corresponds to the JSON property `etag`
1041
+ # @return [String]
1042
+ attr_accessor :etag
1043
+
1044
+ # Immutable. Resource name for TagValue in the format `tagValues/456`.
1045
+ # Corresponds to the JSON property `name`
1046
+ # @return [String]
1047
+ attr_accessor :name
1048
+
1049
+ # Output only. Namespaced name of the TagValue. Must be in the format ``
1050
+ # organization_id`/`tag_key_short_name`/`short_name``.
1051
+ # Corresponds to the JSON property `namespacedName`
1052
+ # @return [String]
1053
+ attr_accessor :namespaced_name
1054
+
1055
+ # Immutable. The resource name of the new TagValue's parent TagKey. Must be of
1056
+ # the form `tagKeys/`tag_key_id``.
1057
+ # Corresponds to the JSON property `parent`
1058
+ # @return [String]
1059
+ attr_accessor :parent
1060
+
1061
+ # Required. Immutable. User-assigned short name for TagValue. The short name
1062
+ # should be unique for TagValues within the same parent TagKey. The short name
1063
+ # must be 63 characters or less, beginning and ending with an alphanumeric
1064
+ # character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
1065
+ # alphanumerics between.
1066
+ # Corresponds to the JSON property `shortName`
1067
+ # @return [String]
1068
+ attr_accessor :short_name
1069
+
1070
+ # Output only. Update time.
1071
+ # Corresponds to the JSON property `updateTime`
1072
+ # @return [String]
1073
+ attr_accessor :update_time
1074
+
1075
+ def initialize(**args)
1076
+ update!(**args)
1077
+ end
1078
+
1079
+ # Update properties of this object
1080
+ def update!(**args)
1081
+ @create_time = args[:create_time] if args.key?(:create_time)
1082
+ @description = args[:description] if args.key?(:description)
1083
+ @etag = args[:etag] if args.key?(:etag)
1084
+ @name = args[:name] if args.key?(:name)
1085
+ @namespaced_name = args[:namespaced_name] if args.key?(:namespaced_name)
1086
+ @parent = args[:parent] if args.key?(:parent)
1087
+ @short_name = args[:short_name] if args.key?(:short_name)
1088
+ @update_time = args[:update_time] if args.key?(:update_time)
1089
+ end
1090
+ end
1091
+
1092
+ # Request message for `TestIamPermissions` method.
1093
+ class TestIamPermissionsRequest
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1097
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1098
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1099
+ # Corresponds to the JSON property `permissions`
1100
+ # @return [Array<String>]
1101
+ attr_accessor :permissions
1102
+
1103
+ def initialize(**args)
1104
+ update!(**args)
1105
+ end
1106
+
1107
+ # Update properties of this object
1108
+ def update!(**args)
1109
+ @permissions = args[:permissions] if args.key?(:permissions)
1110
+ end
1111
+ end
1112
+
1113
+ # Response message for `TestIamPermissions` method.
1114
+ class TestIamPermissionsResponse
1115
+ include Google::Apis::Core::Hashable
1116
+
1117
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1118
+ # Corresponds to the JSON property `permissions`
1119
+ # @return [Array<String>]
1120
+ attr_accessor :permissions
1121
+
1122
+ def initialize(**args)
1123
+ update!(**args)
1124
+ end
1125
+
1126
+ # Update properties of this object
1127
+ def update!(**args)
1128
+ @permissions = args[:permissions] if args.key?(:permissions)
1129
+ end
1130
+ end
1131
+
1132
+ # Runtime operation information for updating a TagKey.
1133
+ class UpdateTagKeyMetadata
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ def initialize(**args)
1137
+ update!(**args)
1138
+ end
1139
+
1140
+ # Update properties of this object
1141
+ def update!(**args)
1142
+ end
1143
+ end
1144
+
1145
+ # Runtime operation information for updating a TagValue.
1146
+ class UpdateTagValueMetadata
1147
+ include Google::Apis::Core::Hashable
1148
+
1149
+ def initialize(**args)
1150
+ update!(**args)
1151
+ end
1152
+
1153
+ # Update properties of this object
1154
+ def update!(**args)
1155
+ end
1156
+ end
1157
+ end
1158
+ end
1159
+ end