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