google-apis-deploymentmanager_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: afb96346e52e8a2d354e91886152684b666f754f7dc3836b9a74025c957ab46a
4
+ data.tar.gz: 3a245c144ba9e57bfce12da462fcc6814dec29f6e9040a2a7236e9be4273c41d
5
+ SHA512:
6
+ metadata.gz: f55ecc79c04a8f534a40e46a594bc6898e43ed44b950cb29ac1fdf87e820a349fbeb0476885ec3a8d16832d0834140016d89fffd7302cfe95e448c38ccfde057
7
+ data.tar.gz: b4d04a13ad16358806df31755fc66c06dbc5afa031c3edefd72c80891250e35c4e32d008a7c148b99e0032b450330f50767d6294e0069df0f9a7a44fdddbb8a9
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-deploymentmanager_v2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/deploymentmanager_v2/*.rb
9
+ lib/google/apis/deploymentmanager_v2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-deploymentmanager_v2
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201203
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V2 of the Cloud Deployment Manager V2 API
2
+
3
+ This is a simple client library for version V2 of the Cloud Deployment Manager V2 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/deploymentmanager.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-deploymentmanager_v2', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-deploymentmanager_v2
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/deploymentmanager_v2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DeploymentmanagerV2::DeploymentManagerService.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 Deploymentmanager service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Deployment Manager V2 API, see the {Google::Apis::DeploymentmanagerV2::DeploymentManagerService 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-deploymentmanager_v2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/deployment-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/deploymentmanager_v2"
@@ -0,0 +1,47 @@
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/deploymentmanager_v2/service.rb'
16
+ require 'google/apis/deploymentmanager_v2/classes.rb'
17
+ require 'google/apis/deploymentmanager_v2/representations.rb'
18
+ require 'google/apis/deploymentmanager_v2/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Deployment Manager V2 API
23
+ #
24
+ # The Google Cloud Deployment Manager v2 API provides services for configuring,
25
+ # deploying, and viewing Google Cloud services and APIs via templates which
26
+ # specify deployments of Cloud resources.
27
+ #
28
+ # @see https://cloud.google.com/deployment-manager
29
+ module DeploymentmanagerV2
30
+ # Version of the Cloud Deployment Manager V2 API this client connects to.
31
+ # This is NOT the gem version.
32
+ VERSION = 'V2'
33
+
34
+ # View and manage your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
+
37
+ # View your data across Google Cloud Platform services
38
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
39
+
40
+ # View and manage your Google Cloud Platform management resources and deployment status information
41
+ AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
42
+
43
+ # View your Google Cloud Platform management resources and deployment status information
44
+ AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,1638 @@
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 DeploymentmanagerV2
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::DeploymentmanagerV2::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::DeploymentmanagerV2::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
+ #
168
+ class ConfigFile
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The contents of the file.
172
+ # Corresponds to the JSON property `content`
173
+ # @return [String]
174
+ attr_accessor :content
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @content = args[:content] if args.key?(:content)
183
+ end
184
+ end
185
+
186
+ #
187
+ class Deployment
188
+ include Google::Apis::Core::Hashable
189
+
190
+ # An optional user-provided description of the deployment.
191
+ # Corresponds to the JSON property `description`
192
+ # @return [String]
193
+ attr_accessor :description
194
+
195
+ # Provides a fingerprint to use in requests to modify a deployment, such as `
196
+ # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a
197
+ # randomly generated value that must be provided with `update()`, `stop()`, and `
198
+ # cancelPreview()` requests to perform optimistic locking. This ensures
199
+ # optimistic concurrency so that only one request happens at a time. The
200
+ # fingerprint is initially generated by Deployment Manager and changes after
201
+ # every request to modify data. To get the latest fingerprint value, perform a `
202
+ # get()` request to a deployment.
203
+ # Corresponds to the JSON property `fingerprint`
204
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
205
+ # @return [String]
206
+ attr_accessor :fingerprint
207
+
208
+ #
209
+ # Corresponds to the JSON property `id`
210
+ # @return [Fixnum]
211
+ attr_accessor :id
212
+
213
+ # Output only. Creation timestamp in RFC3339 text format.
214
+ # Corresponds to the JSON property `insertTime`
215
+ # @return [String]
216
+ attr_accessor :insert_time
217
+
218
+ # Map of One Platform labels; provided by the client when the resource is
219
+ # created or updated. Specifically: Label keys must be between 1 and 63
220
+ # characters long and must conform to the following regular expression: `[a-z]([-
221
+ # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and
222
+ # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
223
+ # Corresponds to the JSON property `labels`
224
+ # @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
225
+ attr_accessor :labels
226
+
227
+ # Output only. URL of the manifest representing the last manifest that was
228
+ # successfully deployed. If no manifest has been successfully deployed, this
229
+ # field will be absent.
230
+ # Corresponds to the JSON property `manifest`
231
+ # @return [String]
232
+ attr_accessor :manifest
233
+
234
+ # Name of the resource; provided by the client when the resource is created. The
235
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
236
+ # name must be 1-63 characters long and match the regular expression `[a-z]([-a-
237
+ # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
238
+ # and all following characters must be a dash, lowercase letter, or digit,
239
+ # except the last character, which cannot be a dash.
240
+ # Corresponds to the JSON property `name`
241
+ # @return [String]
242
+ attr_accessor :name
243
+
244
+ # Represents an Operation resource. Google Compute Engine has three Operation
245
+ # resources: * [Global](/compute/docs/reference/rest/`$api_version`/
246
+ # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
247
+ # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
248
+ # zoneOperations) You can use an operation resource to manage asynchronous API
249
+ # requests. For more information, read Handling API responses. Operations can be
250
+ # global, regional or zonal. - For global operations, use the `globalOperations`
251
+ # resource. - For regional operations, use the `regionOperations` resource. -
252
+ # For zonal operations, use the `zonalOperations` resource. For more information,
253
+ # read Global, Regional, and Zonal Resources.
254
+ # Corresponds to the JSON property `operation`
255
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
256
+ attr_accessor :operation
257
+
258
+ # Output only. Server defined URL for the resource.
259
+ # Corresponds to the JSON property `selfLink`
260
+ # @return [String]
261
+ attr_accessor :self_link
262
+
263
+ # [Input Only] The parameters that define your deployment, including the
264
+ # deployment configuration and relevant templates.
265
+ # Corresponds to the JSON property `target`
266
+ # @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
267
+ attr_accessor :target
268
+
269
+ # Output only. If Deployment Manager is currently updating or previewing an
270
+ # update to this deployment, the updated configuration appears here.
271
+ # Corresponds to the JSON property `update`
272
+ # @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
273
+ attr_accessor :update
274
+
275
+ # Output only. Update timestamp in RFC3339 text format.
276
+ # Corresponds to the JSON property `updateTime`
277
+ # @return [String]
278
+ attr_accessor :update_time
279
+
280
+ def initialize(**args)
281
+ update!(**args)
282
+ end
283
+
284
+ # Update properties of this object
285
+ def update!(**args)
286
+ @description = args[:description] if args.key?(:description)
287
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
288
+ @id = args[:id] if args.key?(:id)
289
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
290
+ @labels = args[:labels] if args.key?(:labels)
291
+ @manifest = args[:manifest] if args.key?(:manifest)
292
+ @name = args[:name] if args.key?(:name)
293
+ @operation = args[:operation] if args.key?(:operation)
294
+ @self_link = args[:self_link] if args.key?(:self_link)
295
+ @target = args[:target] if args.key?(:target)
296
+ @update = args[:update] if args.key?(:update)
297
+ @update_time = args[:update_time] if args.key?(:update_time)
298
+ end
299
+ end
300
+
301
+ # Label object for Deployments
302
+ class DeploymentLabelEntry
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # Key of the label
306
+ # Corresponds to the JSON property `key`
307
+ # @return [String]
308
+ attr_accessor :key
309
+
310
+ # Value of the label
311
+ # Corresponds to the JSON property `value`
312
+ # @return [String]
313
+ attr_accessor :value
314
+
315
+ def initialize(**args)
316
+ update!(**args)
317
+ end
318
+
319
+ # Update properties of this object
320
+ def update!(**args)
321
+ @key = args[:key] if args.key?(:key)
322
+ @value = args[:value] if args.key?(:value)
323
+ end
324
+ end
325
+
326
+ #
327
+ class DeploymentUpdate
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # Output only. An optional user-provided description of the deployment after the
331
+ # current update has been applied.
332
+ # Corresponds to the JSON property `description`
333
+ # @return [String]
334
+ attr_accessor :description
335
+
336
+ # Map of One Platform labels; provided by the client when the resource is
337
+ # created or updated. Specifically: Label keys must be between 1 and 63
338
+ # characters long and must conform to the following regular expression: `[a-z]([-
339
+ # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and
340
+ # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
341
+ # Corresponds to the JSON property `labels`
342
+ # @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry>]
343
+ attr_accessor :labels
344
+
345
+ # Output only. URL of the manifest representing the update configuration of this
346
+ # deployment.
347
+ # Corresponds to the JSON property `manifest`
348
+ # @return [String]
349
+ attr_accessor :manifest
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @description = args[:description] if args.key?(:description)
358
+ @labels = args[:labels] if args.key?(:labels)
359
+ @manifest = args[:manifest] if args.key?(:manifest)
360
+ end
361
+ end
362
+
363
+ # Label object for DeploymentUpdate
364
+ class DeploymentUpdateLabelEntry
365
+ include Google::Apis::Core::Hashable
366
+
367
+ # Key of the label
368
+ # Corresponds to the JSON property `key`
369
+ # @return [String]
370
+ attr_accessor :key
371
+
372
+ # Value of the label
373
+ # Corresponds to the JSON property `value`
374
+ # @return [String]
375
+ attr_accessor :value
376
+
377
+ def initialize(**args)
378
+ update!(**args)
379
+ end
380
+
381
+ # Update properties of this object
382
+ def update!(**args)
383
+ @key = args[:key] if args.key?(:key)
384
+ @value = args[:value] if args.key?(:value)
385
+ end
386
+ end
387
+
388
+ #
389
+ class DeploymentsCancelPreviewRequest
390
+ include Google::Apis::Core::Hashable
391
+
392
+ # Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a
393
+ # randomly generated value that must be provided in `cancelPreview()` requests
394
+ # to perform optimistic locking. This ensures optimistic concurrency so that the
395
+ # deployment does not have conflicting requests (e.g. if someone attempts to
396
+ # make a new update request while another user attempts to cancel a preview,
397
+ # this would prevent one of the requests). The fingerprint is initially
398
+ # generated by Deployment Manager and changes after every request to modify a
399
+ # deployment. To get the latest fingerprint value, perform a `get()` request on
400
+ # the deployment.
401
+ # Corresponds to the JSON property `fingerprint`
402
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
403
+ # @return [String]
404
+ attr_accessor :fingerprint
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
413
+ end
414
+ end
415
+
416
+ # A response containing a partial list of deployments and a page token used to
417
+ # build the next request if the request has been truncated.
418
+ class ListDeploymentsResponse
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # Output only. The deployments contained in this response.
422
+ # Corresponds to the JSON property `deployments`
423
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Deployment>]
424
+ attr_accessor :deployments
425
+
426
+ # Output only. A token used to continue a truncated list request.
427
+ # Corresponds to the JSON property `nextPageToken`
428
+ # @return [String]
429
+ attr_accessor :next_page_token
430
+
431
+ def initialize(**args)
432
+ update!(**args)
433
+ end
434
+
435
+ # Update properties of this object
436
+ def update!(**args)
437
+ @deployments = args[:deployments] if args.key?(:deployments)
438
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
439
+ end
440
+ end
441
+
442
+ #
443
+ class DeploymentsStopRequest
444
+ include Google::Apis::Core::Hashable
445
+
446
+ # Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly
447
+ # generated value that must be provided in `stop()` requests to perform
448
+ # optimistic locking. This ensures optimistic concurrency so that the deployment
449
+ # does not have conflicting requests (e.g. if someone attempts to make a new
450
+ # update request while another user attempts to stop an ongoing update request,
451
+ # this would prevent a collision). The fingerprint is initially generated by
452
+ # Deployment Manager and changes after every request to modify a deployment. To
453
+ # get the latest fingerprint value, perform a `get()` request on the deployment.
454
+ # Corresponds to the JSON property `fingerprint`
455
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
456
+ # @return [String]
457
+ attr_accessor :fingerprint
458
+
459
+ def initialize(**args)
460
+ update!(**args)
461
+ end
462
+
463
+ # Update properties of this object
464
+ def update!(**args)
465
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
466
+ end
467
+ end
468
+
469
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
470
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
471
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
472
+ # "Summary size limit" description: "Determines if a summary is less than 100
473
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
474
+ # Requestor is owner" description: "Determines if requestor is the document
475
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
476
+ # Logic): title: "Public documents" description: "Determine whether the document
477
+ # should be publicly visible" expression: "document.type != 'private' &&
478
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
479
+ # string" description: "Create a notification string with a timestamp."
480
+ # expression: "'New message received at ' + string(document.create_time)" The
481
+ # exact variables and functions that may be referenced within an expression are
482
+ # determined by the service that evaluates it. See the service documentation for
483
+ # additional information.
484
+ class Expr
485
+ include Google::Apis::Core::Hashable
486
+
487
+ # Optional. Description of the expression. This is a longer text which describes
488
+ # the expression, e.g. when hovered over it in a UI.
489
+ # Corresponds to the JSON property `description`
490
+ # @return [String]
491
+ attr_accessor :description
492
+
493
+ # Textual representation of an expression in Common Expression Language syntax.
494
+ # Corresponds to the JSON property `expression`
495
+ # @return [String]
496
+ attr_accessor :expression
497
+
498
+ # Optional. String indicating the location of the expression for error reporting,
499
+ # e.g. a file name and a position in the file.
500
+ # Corresponds to the JSON property `location`
501
+ # @return [String]
502
+ attr_accessor :location
503
+
504
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
505
+ # This can be used e.g. in UIs which allow to enter the expression.
506
+ # Corresponds to the JSON property `title`
507
+ # @return [String]
508
+ attr_accessor :title
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @description = args[:description] if args.key?(:description)
517
+ @expression = args[:expression] if args.key?(:expression)
518
+ @location = args[:location] if args.key?(:location)
519
+ @title = args[:title] if args.key?(:title)
520
+ end
521
+ end
522
+
523
+ #
524
+ class GlobalSetPolicyRequest
525
+ include Google::Apis::Core::Hashable
526
+
527
+ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use '
528
+ # policy' to specify bindings.
529
+ # Corresponds to the JSON property `bindings`
530
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Binding>]
531
+ attr_accessor :bindings
532
+
533
+ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use '
534
+ # policy' to specify the etag.
535
+ # Corresponds to the JSON property `etag`
536
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
537
+ # @return [String]
538
+ attr_accessor :etag
539
+
540
+ # An Identity and Access Management (IAM) policy, which specifies access
541
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
542
+ # A `binding` binds one or more `members` to a single `role`. Members can be
543
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
544
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
545
+ # role or a user-created custom role. For some types of Google Cloud resources,
546
+ # a `binding` can also specify a `condition`, which is a logical expression that
547
+ # allows access to a resource only if the expression evaluates to `true`. A
548
+ # condition can add constraints based on attributes of the request, the resource,
549
+ # or both. To learn which resources support conditions in their IAM policies,
550
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
551
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
552
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
553
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
554
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
555
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
556
+ # title": "expirable access", "description": "Does not grant access after Sep
557
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
558
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
559
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
560
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
561
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
562
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
563
+ # description: Does not grant access after Sep 2020 expression: request.time <
564
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
565
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
566
+ # google.com/iam/docs/).
567
+ # Corresponds to the JSON property `policy`
568
+ # @return [Google::Apis::DeploymentmanagerV2::Policy]
569
+ attr_accessor :policy
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @bindings = args[:bindings] if args.key?(:bindings)
578
+ @etag = args[:etag] if args.key?(:etag)
579
+ @policy = args[:policy] if args.key?(:policy)
580
+ end
581
+ end
582
+
583
+ #
584
+ class ImportFile
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # The contents of the file.
588
+ # Corresponds to the JSON property `content`
589
+ # @return [String]
590
+ attr_accessor :content
591
+
592
+ # The name of the file.
593
+ # Corresponds to the JSON property `name`
594
+ # @return [String]
595
+ attr_accessor :name
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @content = args[:content] if args.key?(:content)
604
+ @name = args[:name] if args.key?(:name)
605
+ end
606
+ end
607
+
608
+ #
609
+ class Manifest
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # Output only. The YAML configuration for this manifest.
613
+ # Corresponds to the JSON property `config`
614
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
615
+ attr_accessor :config
616
+
617
+ # Output only. The fully-expanded configuration file, including any templates
618
+ # and references.
619
+ # Corresponds to the JSON property `expandedConfig`
620
+ # @return [String]
621
+ attr_accessor :expanded_config
622
+
623
+ #
624
+ # Corresponds to the JSON property `id`
625
+ # @return [Fixnum]
626
+ attr_accessor :id
627
+
628
+ # Output only. The imported files for this manifest.
629
+ # Corresponds to the JSON property `imports`
630
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
631
+ attr_accessor :imports
632
+
633
+ # Output only. Creation timestamp in RFC3339 text format.
634
+ # Corresponds to the JSON property `insertTime`
635
+ # @return [String]
636
+ attr_accessor :insert_time
637
+
638
+ # Output only. The YAML layout for this manifest.
639
+ # Corresponds to the JSON property `layout`
640
+ # @return [String]
641
+ attr_accessor :layout
642
+
643
+ # Output only. The name of the manifest.
644
+ # Corresponds to the JSON property `name`
645
+ # @return [String]
646
+ attr_accessor :name
647
+
648
+ # Output only. Self link for the manifest.
649
+ # Corresponds to the JSON property `selfLink`
650
+ # @return [String]
651
+ attr_accessor :self_link
652
+
653
+ def initialize(**args)
654
+ update!(**args)
655
+ end
656
+
657
+ # Update properties of this object
658
+ def update!(**args)
659
+ @config = args[:config] if args.key?(:config)
660
+ @expanded_config = args[:expanded_config] if args.key?(:expanded_config)
661
+ @id = args[:id] if args.key?(:id)
662
+ @imports = args[:imports] if args.key?(:imports)
663
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
664
+ @layout = args[:layout] if args.key?(:layout)
665
+ @name = args[:name] if args.key?(:name)
666
+ @self_link = args[:self_link] if args.key?(:self_link)
667
+ end
668
+ end
669
+
670
+ # A response containing a partial list of manifests and a page token used to
671
+ # build the next request if the request has been truncated.
672
+ class ListManifestsResponse
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # Output only. Manifests contained in this list response.
676
+ # Corresponds to the JSON property `manifests`
677
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Manifest>]
678
+ attr_accessor :manifests
679
+
680
+ # Output only. A token used to continue a truncated list request.
681
+ # Corresponds to the JSON property `nextPageToken`
682
+ # @return [String]
683
+ attr_accessor :next_page_token
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @manifests = args[:manifests] if args.key?(:manifests)
692
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
693
+ end
694
+ end
695
+
696
+ # Represents an Operation resource. Google Compute Engine has three Operation
697
+ # resources: * [Global](/compute/docs/reference/rest/`$api_version`/
698
+ # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
699
+ # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
700
+ # zoneOperations) You can use an operation resource to manage asynchronous API
701
+ # requests. For more information, read Handling API responses. Operations can be
702
+ # global, regional or zonal. - For global operations, use the `globalOperations`
703
+ # resource. - For regional operations, use the `regionOperations` resource. -
704
+ # For zonal operations, use the `zonalOperations` resource. For more information,
705
+ # read Global, Regional, and Zonal Resources.
706
+ class Operation
707
+ include Google::Apis::Core::Hashable
708
+
709
+ # [Output Only] The value of `requestId` if you provided it in the request. Not
710
+ # present otherwise.
711
+ # Corresponds to the JSON property `clientOperationId`
712
+ # @return [String]
713
+ attr_accessor :client_operation_id
714
+
715
+ # [Deprecated] This field is deprecated.
716
+ # Corresponds to the JSON property `creationTimestamp`
717
+ # @return [String]
718
+ attr_accessor :creation_timestamp
719
+
720
+ # [Output Only] A textual description of the operation, which is set when the
721
+ # operation is created.
722
+ # Corresponds to the JSON property `description`
723
+ # @return [String]
724
+ attr_accessor :description
725
+
726
+ # [Output Only] The time that this operation was completed. This value is in
727
+ # RFC3339 text format.
728
+ # Corresponds to the JSON property `endTime`
729
+ # @return [String]
730
+ attr_accessor :end_time
731
+
732
+ # [Output Only] If errors are generated during processing of the operation, this
733
+ # field will be populated.
734
+ # Corresponds to the JSON property `error`
735
+ # @return [Google::Apis::DeploymentmanagerV2::Operation::Error]
736
+ attr_accessor :error
737
+
738
+ # [Output Only] If the operation fails, this field contains the HTTP error
739
+ # message that was returned, such as `NOT FOUND`.
740
+ # Corresponds to the JSON property `httpErrorMessage`
741
+ # @return [String]
742
+ attr_accessor :http_error_message
743
+
744
+ # [Output Only] If the operation fails, this field contains the HTTP error
745
+ # status code that was returned. For example, a `404` means the resource was not
746
+ # found.
747
+ # Corresponds to the JSON property `httpErrorStatusCode`
748
+ # @return [Fixnum]
749
+ attr_accessor :http_error_status_code
750
+
751
+ # [Output Only] The unique identifier for the operation. This identifier is
752
+ # defined by the server.
753
+ # Corresponds to the JSON property `id`
754
+ # @return [Fixnum]
755
+ attr_accessor :id
756
+
757
+ # [Output Only] The time that this operation was requested. This value is in
758
+ # RFC3339 text format.
759
+ # Corresponds to the JSON property `insertTime`
760
+ # @return [String]
761
+ attr_accessor :insert_time
762
+
763
+ # [Output Only] Type of the resource. Always `compute#operation` for Operation
764
+ # resources.
765
+ # Corresponds to the JSON property `kind`
766
+ # @return [String]
767
+ attr_accessor :kind
768
+
769
+ # [Output Only] Name of the operation.
770
+ # Corresponds to the JSON property `name`
771
+ # @return [String]
772
+ attr_accessor :name
773
+
774
+ # [Output Only] The type of operation, such as `insert`, `update`, or `delete`,
775
+ # and so on.
776
+ # Corresponds to the JSON property `operationType`
777
+ # @return [String]
778
+ attr_accessor :operation_type
779
+
780
+ # [Output Only] An optional progress indicator that ranges from 0 to 100. There
781
+ # is no requirement that this be linear or support any granularity of operations.
782
+ # This should not be used to guess when the operation will be complete. This
783
+ # number should monotonically increase as the operation progresses.
784
+ # Corresponds to the JSON property `progress`
785
+ # @return [Fixnum]
786
+ attr_accessor :progress
787
+
788
+ # [Output Only] The URL of the region where the operation resides. Only
789
+ # applicable when performing regional operations.
790
+ # Corresponds to the JSON property `region`
791
+ # @return [String]
792
+ attr_accessor :region
793
+
794
+ # [Output Only] Server-defined URL for the resource.
795
+ # Corresponds to the JSON property `selfLink`
796
+ # @return [String]
797
+ attr_accessor :self_link
798
+
799
+ # [Output Only] The time that this operation was started by the server. This
800
+ # value is in RFC3339 text format.
801
+ # Corresponds to the JSON property `startTime`
802
+ # @return [String]
803
+ attr_accessor :start_time
804
+
805
+ # [Output Only] The status of the operation, which can be one of the following: `
806
+ # PENDING`, `RUNNING`, or `DONE`.
807
+ # Corresponds to the JSON property `status`
808
+ # @return [String]
809
+ attr_accessor :status
810
+
811
+ # [Output Only] An optional textual description of the current status of the
812
+ # operation.
813
+ # Corresponds to the JSON property `statusMessage`
814
+ # @return [String]
815
+ attr_accessor :status_message
816
+
817
+ # [Output Only] The unique target ID, which identifies a specific incarnation of
818
+ # the target resource.
819
+ # Corresponds to the JSON property `targetId`
820
+ # @return [Fixnum]
821
+ attr_accessor :target_id
822
+
823
+ # [Output Only] The URL of the resource that the operation modifies. For
824
+ # operations related to creating a snapshot, this points to the persistent disk
825
+ # that the snapshot was created from.
826
+ # Corresponds to the JSON property `targetLink`
827
+ # @return [String]
828
+ attr_accessor :target_link
829
+
830
+ # [Output Only] User who requested the operation, for example: `user@example.com`
831
+ # .
832
+ # Corresponds to the JSON property `user`
833
+ # @return [String]
834
+ attr_accessor :user
835
+
836
+ # [Output Only] If warning messages are generated during processing of the
837
+ # operation, this field will be populated.
838
+ # Corresponds to the JSON property `warnings`
839
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
840
+ attr_accessor :warnings
841
+
842
+ # [Output Only] The URL of the zone where the operation resides. Only applicable
843
+ # when performing per-zone operations.
844
+ # Corresponds to the JSON property `zone`
845
+ # @return [String]
846
+ attr_accessor :zone
847
+
848
+ def initialize(**args)
849
+ update!(**args)
850
+ end
851
+
852
+ # Update properties of this object
853
+ def update!(**args)
854
+ @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
855
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
856
+ @description = args[:description] if args.key?(:description)
857
+ @end_time = args[:end_time] if args.key?(:end_time)
858
+ @error = args[:error] if args.key?(:error)
859
+ @http_error_message = args[:http_error_message] if args.key?(:http_error_message)
860
+ @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
861
+ @id = args[:id] if args.key?(:id)
862
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
863
+ @kind = args[:kind] if args.key?(:kind)
864
+ @name = args[:name] if args.key?(:name)
865
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
866
+ @progress = args[:progress] if args.key?(:progress)
867
+ @region = args[:region] if args.key?(:region)
868
+ @self_link = args[:self_link] if args.key?(:self_link)
869
+ @start_time = args[:start_time] if args.key?(:start_time)
870
+ @status = args[:status] if args.key?(:status)
871
+ @status_message = args[:status_message] if args.key?(:status_message)
872
+ @target_id = args[:target_id] if args.key?(:target_id)
873
+ @target_link = args[:target_link] if args.key?(:target_link)
874
+ @user = args[:user] if args.key?(:user)
875
+ @warnings = args[:warnings] if args.key?(:warnings)
876
+ @zone = args[:zone] if args.key?(:zone)
877
+ end
878
+
879
+ # [Output Only] If errors are generated during processing of the operation, this
880
+ # field will be populated.
881
+ class Error
882
+ include Google::Apis::Core::Hashable
883
+
884
+ # [Output Only] The array of errors encountered while processing this operation.
885
+ # Corresponds to the JSON property `errors`
886
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Error::Error>]
887
+ attr_accessor :errors
888
+
889
+ def initialize(**args)
890
+ update!(**args)
891
+ end
892
+
893
+ # Update properties of this object
894
+ def update!(**args)
895
+ @errors = args[:errors] if args.key?(:errors)
896
+ end
897
+
898
+ #
899
+ class Error
900
+ include Google::Apis::Core::Hashable
901
+
902
+ # [Output Only] The error type identifier for this error.
903
+ # Corresponds to the JSON property `code`
904
+ # @return [String]
905
+ attr_accessor :code
906
+
907
+ # [Output Only] Indicates the field in the request that caused the error. This
908
+ # property is optional.
909
+ # Corresponds to the JSON property `location`
910
+ # @return [String]
911
+ attr_accessor :location
912
+
913
+ # [Output Only] An optional, human-readable error message.
914
+ # Corresponds to the JSON property `message`
915
+ # @return [String]
916
+ attr_accessor :message
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @code = args[:code] if args.key?(:code)
925
+ @location = args[:location] if args.key?(:location)
926
+ @message = args[:message] if args.key?(:message)
927
+ end
928
+ end
929
+ end
930
+
931
+ #
932
+ class Warning
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
936
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
937
+ # Corresponds to the JSON property `code`
938
+ # @return [String]
939
+ attr_accessor :code
940
+
941
+ # [Output Only] Metadata about this warning in key: value format. For example: "
942
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
943
+ # Corresponds to the JSON property `data`
944
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
945
+ attr_accessor :data
946
+
947
+ # [Output Only] A human-readable description of the warning code.
948
+ # Corresponds to the JSON property `message`
949
+ # @return [String]
950
+ attr_accessor :message
951
+
952
+ def initialize(**args)
953
+ update!(**args)
954
+ end
955
+
956
+ # Update properties of this object
957
+ def update!(**args)
958
+ @code = args[:code] if args.key?(:code)
959
+ @data = args[:data] if args.key?(:data)
960
+ @message = args[:message] if args.key?(:message)
961
+ end
962
+
963
+ #
964
+ class Datum
965
+ include Google::Apis::Core::Hashable
966
+
967
+ # [Output Only] A key that provides more detail on the warning being returned.
968
+ # For example, for warnings where there are no results in a list request for a
969
+ # particular zone, this key might be scope and the key value might be the zone
970
+ # name. Other examples might be a key indicating a deprecated resource and a
971
+ # suggested replacement, or a warning about invalid network settings (for
972
+ # example, if an instance attempts to perform IP forwarding but is not enabled
973
+ # for IP forwarding).
974
+ # Corresponds to the JSON property `key`
975
+ # @return [String]
976
+ attr_accessor :key
977
+
978
+ # [Output Only] A warning data value corresponding to the key.
979
+ # Corresponds to the JSON property `value`
980
+ # @return [String]
981
+ attr_accessor :value
982
+
983
+ def initialize(**args)
984
+ update!(**args)
985
+ end
986
+
987
+ # Update properties of this object
988
+ def update!(**args)
989
+ @key = args[:key] if args.key?(:key)
990
+ @value = args[:value] if args.key?(:value)
991
+ end
992
+ end
993
+ end
994
+ end
995
+
996
+ # A response containing a partial list of operations and a page token used to
997
+ # build the next request if the request has been truncated.
998
+ class ListOperationsResponse
999
+ include Google::Apis::Core::Hashable
1000
+
1001
+ # Output only. A token used to continue a truncated list request.
1002
+ # Corresponds to the JSON property `nextPageToken`
1003
+ # @return [String]
1004
+ attr_accessor :next_page_token
1005
+
1006
+ # Output only. Operations contained in this list response.
1007
+ # Corresponds to the JSON property `operations`
1008
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation>]
1009
+ attr_accessor :operations
1010
+
1011
+ def initialize(**args)
1012
+ update!(**args)
1013
+ end
1014
+
1015
+ # Update properties of this object
1016
+ def update!(**args)
1017
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1018
+ @operations = args[:operations] if args.key?(:operations)
1019
+ end
1020
+ end
1021
+
1022
+ # An Identity and Access Management (IAM) policy, which specifies access
1023
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1024
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1025
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1026
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1027
+ # role or a user-created custom role. For some types of Google Cloud resources,
1028
+ # a `binding` can also specify a `condition`, which is a logical expression that
1029
+ # allows access to a resource only if the expression evaluates to `true`. A
1030
+ # condition can add constraints based on attributes of the request, the resource,
1031
+ # or both. To learn which resources support conditions in their IAM policies,
1032
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1033
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1034
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1035
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1036
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1037
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1038
+ # title": "expirable access", "description": "Does not grant access after Sep
1039
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1040
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1041
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1042
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1043
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1044
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1045
+ # description: Does not grant access after Sep 2020 expression: request.time <
1046
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1047
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1048
+ # google.com/iam/docs/).
1049
+ class Policy
1050
+ include Google::Apis::Core::Hashable
1051
+
1052
+ # Specifies cloud audit logging configuration for this policy.
1053
+ # Corresponds to the JSON property `auditConfigs`
1054
+ # @return [Array<Google::Apis::DeploymentmanagerV2::AuditConfig>]
1055
+ attr_accessor :audit_configs
1056
+
1057
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1058
+ # condition` that determines how and when the `bindings` are applied. Each of
1059
+ # the `bindings` must contain at least one member.
1060
+ # Corresponds to the JSON property `bindings`
1061
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Binding>]
1062
+ attr_accessor :bindings
1063
+
1064
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1065
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1066
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1067
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1068
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1069
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1070
+ # applied to the same version of the policy. **Important:** If you use IAM
1071
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1072
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1073
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1074
+ # are lost.
1075
+ # Corresponds to the JSON property `etag`
1076
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1077
+ # @return [String]
1078
+ attr_accessor :etag
1079
+
1080
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1081
+ # Requests that specify an invalid value are rejected. Any operation that
1082
+ # affects conditional role bindings must specify version `3`. This requirement
1083
+ # applies to the following operations: * Getting a policy that includes a
1084
+ # conditional role binding * Adding a conditional role binding to a policy *
1085
+ # Changing a conditional role binding in a policy * Removing any role binding,
1086
+ # with or without a condition, from a policy that includes conditions **
1087
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1088
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1089
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1090
+ # conditions in the version `3` policy are lost. If a policy does not include
1091
+ # any conditions, operations on that policy may specify any valid version or
1092
+ # leave the field unset. To learn which resources support conditions in their
1093
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1094
+ # conditions/resource-policies).
1095
+ # Corresponds to the JSON property `version`
1096
+ # @return [Fixnum]
1097
+ attr_accessor :version
1098
+
1099
+ def initialize(**args)
1100
+ update!(**args)
1101
+ end
1102
+
1103
+ # Update properties of this object
1104
+ def update!(**args)
1105
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1106
+ @bindings = args[:bindings] if args.key?(:bindings)
1107
+ @etag = args[:etag] if args.key?(:etag)
1108
+ @version = args[:version] if args.key?(:version)
1109
+ end
1110
+ end
1111
+
1112
+ #
1113
+ class Resource
1114
+ include Google::Apis::Core::Hashable
1115
+
1116
+ # The access controls set on the resource.
1117
+ # Corresponds to the JSON property `accessControl`
1118
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1119
+ attr_accessor :access_control
1120
+
1121
+ # Output only. The evaluated properties of the resource with references expanded.
1122
+ # Returned as serialized YAML.
1123
+ # Corresponds to the JSON property `finalProperties`
1124
+ # @return [String]
1125
+ attr_accessor :final_properties
1126
+
1127
+ #
1128
+ # Corresponds to the JSON property `id`
1129
+ # @return [Fixnum]
1130
+ attr_accessor :id
1131
+
1132
+ # Output only. Creation timestamp in RFC3339 text format.
1133
+ # Corresponds to the JSON property `insertTime`
1134
+ # @return [String]
1135
+ attr_accessor :insert_time
1136
+
1137
+ # Output only. URL of the manifest representing the current configuration of
1138
+ # this resource.
1139
+ # Corresponds to the JSON property `manifest`
1140
+ # @return [String]
1141
+ attr_accessor :manifest
1142
+
1143
+ # Output only. The name of the resource as it appears in the YAML config.
1144
+ # Corresponds to the JSON property `name`
1145
+ # @return [String]
1146
+ attr_accessor :name
1147
+
1148
+ # Output only. The current properties of the resource before any references have
1149
+ # been filled in. Returned as serialized YAML.
1150
+ # Corresponds to the JSON property `properties`
1151
+ # @return [String]
1152
+ attr_accessor :properties
1153
+
1154
+ # Output only. The type of the resource, for example `compute.v1.instance`, or `
1155
+ # cloudfunctions.v1beta1.function`.
1156
+ # Corresponds to the JSON property `type`
1157
+ # @return [String]
1158
+ attr_accessor :type
1159
+
1160
+ # Output only. If Deployment Manager is currently updating or previewing an
1161
+ # update to this resource, the updated configuration appears here.
1162
+ # Corresponds to the JSON property `update`
1163
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
1164
+ attr_accessor :update
1165
+
1166
+ # Output only. Update timestamp in RFC3339 text format.
1167
+ # Corresponds to the JSON property `updateTime`
1168
+ # @return [String]
1169
+ attr_accessor :update_time
1170
+
1171
+ # Output only. The URL of the actual resource.
1172
+ # Corresponds to the JSON property `url`
1173
+ # @return [String]
1174
+ attr_accessor :url
1175
+
1176
+ # Output only. If warning messages are generated during processing of this
1177
+ # resource, this field will be populated.
1178
+ # Corresponds to the JSON property `warnings`
1179
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning>]
1180
+ attr_accessor :warnings
1181
+
1182
+ def initialize(**args)
1183
+ update!(**args)
1184
+ end
1185
+
1186
+ # Update properties of this object
1187
+ def update!(**args)
1188
+ @access_control = args[:access_control] if args.key?(:access_control)
1189
+ @final_properties = args[:final_properties] if args.key?(:final_properties)
1190
+ @id = args[:id] if args.key?(:id)
1191
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1192
+ @manifest = args[:manifest] if args.key?(:manifest)
1193
+ @name = args[:name] if args.key?(:name)
1194
+ @properties = args[:properties] if args.key?(:properties)
1195
+ @type = args[:type] if args.key?(:type)
1196
+ @update = args[:update] if args.key?(:update)
1197
+ @update_time = args[:update_time] if args.key?(:update_time)
1198
+ @url = args[:url] if args.key?(:url)
1199
+ @warnings = args[:warnings] if args.key?(:warnings)
1200
+ end
1201
+
1202
+ #
1203
+ class Warning
1204
+ include Google::Apis::Core::Hashable
1205
+
1206
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
1207
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
1208
+ # Corresponds to the JSON property `code`
1209
+ # @return [String]
1210
+ attr_accessor :code
1211
+
1212
+ # [Output Only] Metadata about this warning in key: value format. For example: "
1213
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
1214
+ # Corresponds to the JSON property `data`
1215
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
1216
+ attr_accessor :data
1217
+
1218
+ # [Output Only] A human-readable description of the warning code.
1219
+ # Corresponds to the JSON property `message`
1220
+ # @return [String]
1221
+ attr_accessor :message
1222
+
1223
+ def initialize(**args)
1224
+ update!(**args)
1225
+ end
1226
+
1227
+ # Update properties of this object
1228
+ def update!(**args)
1229
+ @code = args[:code] if args.key?(:code)
1230
+ @data = args[:data] if args.key?(:data)
1231
+ @message = args[:message] if args.key?(:message)
1232
+ end
1233
+
1234
+ #
1235
+ class Datum
1236
+ include Google::Apis::Core::Hashable
1237
+
1238
+ # [Output Only] A key that provides more detail on the warning being returned.
1239
+ # For example, for warnings where there are no results in a list request for a
1240
+ # particular zone, this key might be scope and the key value might be the zone
1241
+ # name. Other examples might be a key indicating a deprecated resource and a
1242
+ # suggested replacement, or a warning about invalid network settings (for
1243
+ # example, if an instance attempts to perform IP forwarding but is not enabled
1244
+ # for IP forwarding).
1245
+ # Corresponds to the JSON property `key`
1246
+ # @return [String]
1247
+ attr_accessor :key
1248
+
1249
+ # [Output Only] A warning data value corresponding to the key.
1250
+ # Corresponds to the JSON property `value`
1251
+ # @return [String]
1252
+ attr_accessor :value
1253
+
1254
+ def initialize(**args)
1255
+ update!(**args)
1256
+ end
1257
+
1258
+ # Update properties of this object
1259
+ def update!(**args)
1260
+ @key = args[:key] if args.key?(:key)
1261
+ @value = args[:value] if args.key?(:value)
1262
+ end
1263
+ end
1264
+ end
1265
+ end
1266
+
1267
+ # The access controls set on the resource.
1268
+ class ResourceAccessControl
1269
+ include Google::Apis::Core::Hashable
1270
+
1271
+ # The GCP IAM Policy to set on the resource.
1272
+ # Corresponds to the JSON property `gcpIamPolicy`
1273
+ # @return [String]
1274
+ attr_accessor :gcp_iam_policy
1275
+
1276
+ def initialize(**args)
1277
+ update!(**args)
1278
+ end
1279
+
1280
+ # Update properties of this object
1281
+ def update!(**args)
1282
+ @gcp_iam_policy = args[:gcp_iam_policy] if args.key?(:gcp_iam_policy)
1283
+ end
1284
+ end
1285
+
1286
+ #
1287
+ class ResourceUpdate
1288
+ include Google::Apis::Core::Hashable
1289
+
1290
+ # The access controls set on the resource.
1291
+ # Corresponds to the JSON property `accessControl`
1292
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1293
+ attr_accessor :access_control
1294
+
1295
+ # Output only. If errors are generated during update of the resource, this field
1296
+ # will be populated.
1297
+ # Corresponds to the JSON property `error`
1298
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error]
1299
+ attr_accessor :error
1300
+
1301
+ # Output only. The expanded properties of the resource with reference values
1302
+ # expanded. Returned as serialized YAML.
1303
+ # Corresponds to the JSON property `finalProperties`
1304
+ # @return [String]
1305
+ attr_accessor :final_properties
1306
+
1307
+ # Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.
1308
+ # Corresponds to the JSON property `intent`
1309
+ # @return [String]
1310
+ attr_accessor :intent
1311
+
1312
+ # Output only. URL of the manifest representing the update configuration of this
1313
+ # resource.
1314
+ # Corresponds to the JSON property `manifest`
1315
+ # @return [String]
1316
+ attr_accessor :manifest
1317
+
1318
+ # Output only. The set of updated properties for this resource, before
1319
+ # references are expanded. Returned as serialized YAML.
1320
+ # Corresponds to the JSON property `properties`
1321
+ # @return [String]
1322
+ attr_accessor :properties
1323
+
1324
+ # Output only. The state of the resource.
1325
+ # Corresponds to the JSON property `state`
1326
+ # @return [String]
1327
+ attr_accessor :state
1328
+
1329
+ # Output only. If warning messages are generated during processing of this
1330
+ # resource, this field will be populated.
1331
+ # Corresponds to the JSON property `warnings`
1332
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>]
1333
+ attr_accessor :warnings
1334
+
1335
+ def initialize(**args)
1336
+ update!(**args)
1337
+ end
1338
+
1339
+ # Update properties of this object
1340
+ def update!(**args)
1341
+ @access_control = args[:access_control] if args.key?(:access_control)
1342
+ @error = args[:error] if args.key?(:error)
1343
+ @final_properties = args[:final_properties] if args.key?(:final_properties)
1344
+ @intent = args[:intent] if args.key?(:intent)
1345
+ @manifest = args[:manifest] if args.key?(:manifest)
1346
+ @properties = args[:properties] if args.key?(:properties)
1347
+ @state = args[:state] if args.key?(:state)
1348
+ @warnings = args[:warnings] if args.key?(:warnings)
1349
+ end
1350
+
1351
+ # Output only. If errors are generated during update of the resource, this field
1352
+ # will be populated.
1353
+ class Error
1354
+ include Google::Apis::Core::Hashable
1355
+
1356
+ # [Output Only] The array of errors encountered while processing this operation.
1357
+ # Corresponds to the JSON property `errors`
1358
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error>]
1359
+ attr_accessor :errors
1360
+
1361
+ def initialize(**args)
1362
+ update!(**args)
1363
+ end
1364
+
1365
+ # Update properties of this object
1366
+ def update!(**args)
1367
+ @errors = args[:errors] if args.key?(:errors)
1368
+ end
1369
+
1370
+ #
1371
+ class Error
1372
+ include Google::Apis::Core::Hashable
1373
+
1374
+ # [Output Only] The error type identifier for this error.
1375
+ # Corresponds to the JSON property `code`
1376
+ # @return [String]
1377
+ attr_accessor :code
1378
+
1379
+ # [Output Only] Indicates the field in the request that caused the error. This
1380
+ # property is optional.
1381
+ # Corresponds to the JSON property `location`
1382
+ # @return [String]
1383
+ attr_accessor :location
1384
+
1385
+ # [Output Only] An optional, human-readable error message.
1386
+ # Corresponds to the JSON property `message`
1387
+ # @return [String]
1388
+ attr_accessor :message
1389
+
1390
+ def initialize(**args)
1391
+ update!(**args)
1392
+ end
1393
+
1394
+ # Update properties of this object
1395
+ def update!(**args)
1396
+ @code = args[:code] if args.key?(:code)
1397
+ @location = args[:location] if args.key?(:location)
1398
+ @message = args[:message] if args.key?(:message)
1399
+ end
1400
+ end
1401
+ end
1402
+
1403
+ #
1404
+ class Warning
1405
+ include Google::Apis::Core::Hashable
1406
+
1407
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
1408
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
1409
+ # Corresponds to the JSON property `code`
1410
+ # @return [String]
1411
+ attr_accessor :code
1412
+
1413
+ # [Output Only] Metadata about this warning in key: value format. For example: "
1414
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
1415
+ # Corresponds to the JSON property `data`
1416
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
1417
+ attr_accessor :data
1418
+
1419
+ # [Output Only] A human-readable description of the warning code.
1420
+ # Corresponds to the JSON property `message`
1421
+ # @return [String]
1422
+ attr_accessor :message
1423
+
1424
+ def initialize(**args)
1425
+ update!(**args)
1426
+ end
1427
+
1428
+ # Update properties of this object
1429
+ def update!(**args)
1430
+ @code = args[:code] if args.key?(:code)
1431
+ @data = args[:data] if args.key?(:data)
1432
+ @message = args[:message] if args.key?(:message)
1433
+ end
1434
+
1435
+ #
1436
+ class Datum
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # [Output Only] A key that provides more detail on the warning being returned.
1440
+ # For example, for warnings where there are no results in a list request for a
1441
+ # particular zone, this key might be scope and the key value might be the zone
1442
+ # name. Other examples might be a key indicating a deprecated resource and a
1443
+ # suggested replacement, or a warning about invalid network settings (for
1444
+ # example, if an instance attempts to perform IP forwarding but is not enabled
1445
+ # for IP forwarding).
1446
+ # Corresponds to the JSON property `key`
1447
+ # @return [String]
1448
+ attr_accessor :key
1449
+
1450
+ # [Output Only] A warning data value corresponding to the key.
1451
+ # Corresponds to the JSON property `value`
1452
+ # @return [String]
1453
+ attr_accessor :value
1454
+
1455
+ def initialize(**args)
1456
+ update!(**args)
1457
+ end
1458
+
1459
+ # Update properties of this object
1460
+ def update!(**args)
1461
+ @key = args[:key] if args.key?(:key)
1462
+ @value = args[:value] if args.key?(:value)
1463
+ end
1464
+ end
1465
+ end
1466
+ end
1467
+
1468
+ # A response containing a partial list of resources and a page token used to
1469
+ # build the next request if the request has been truncated.
1470
+ class ListResourcesResponse
1471
+ include Google::Apis::Core::Hashable
1472
+
1473
+ # A token used to continue a truncated list request.
1474
+ # Corresponds to the JSON property `nextPageToken`
1475
+ # @return [String]
1476
+ attr_accessor :next_page_token
1477
+
1478
+ # Resources contained in this list response.
1479
+ # Corresponds to the JSON property `resources`
1480
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource>]
1481
+ attr_accessor :resources
1482
+
1483
+ def initialize(**args)
1484
+ update!(**args)
1485
+ end
1486
+
1487
+ # Update properties of this object
1488
+ def update!(**args)
1489
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1490
+ @resources = args[:resources] if args.key?(:resources)
1491
+ end
1492
+ end
1493
+
1494
+ #
1495
+ class TargetConfiguration
1496
+ include Google::Apis::Core::Hashable
1497
+
1498
+ # The configuration to use for this deployment.
1499
+ # Corresponds to the JSON property `config`
1500
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
1501
+ attr_accessor :config
1502
+
1503
+ # Specifies any files to import for this configuration. This can be used to
1504
+ # import templates or other files. For example, you might import a text file in
1505
+ # order to use the file in a template.
1506
+ # Corresponds to the JSON property `imports`
1507
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
1508
+ attr_accessor :imports
1509
+
1510
+ def initialize(**args)
1511
+ update!(**args)
1512
+ end
1513
+
1514
+ # Update properties of this object
1515
+ def update!(**args)
1516
+ @config = args[:config] if args.key?(:config)
1517
+ @imports = args[:imports] if args.key?(:imports)
1518
+ end
1519
+ end
1520
+
1521
+ #
1522
+ class TestPermissionsRequest
1523
+ include Google::Apis::Core::Hashable
1524
+
1525
+ # The set of permissions to check for the 'resource'. Permissions with wildcards
1526
+ # (such as '*' or 'storage.*') are not allowed.
1527
+ # Corresponds to the JSON property `permissions`
1528
+ # @return [Array<String>]
1529
+ attr_accessor :permissions
1530
+
1531
+ def initialize(**args)
1532
+ update!(**args)
1533
+ end
1534
+
1535
+ # Update properties of this object
1536
+ def update!(**args)
1537
+ @permissions = args[:permissions] if args.key?(:permissions)
1538
+ end
1539
+ end
1540
+
1541
+ #
1542
+ class TestPermissionsResponse
1543
+ include Google::Apis::Core::Hashable
1544
+
1545
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1546
+ # Corresponds to the JSON property `permissions`
1547
+ # @return [Array<String>]
1548
+ attr_accessor :permissions
1549
+
1550
+ def initialize(**args)
1551
+ update!(**args)
1552
+ end
1553
+
1554
+ # Update properties of this object
1555
+ def update!(**args)
1556
+ @permissions = args[:permissions] if args.key?(:permissions)
1557
+ end
1558
+ end
1559
+
1560
+ # A resource type supported by Deployment Manager.
1561
+ class Type
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ #
1565
+ # Corresponds to the JSON property `id`
1566
+ # @return [Fixnum]
1567
+ attr_accessor :id
1568
+
1569
+ # Output only. Creation timestamp in RFC3339 text format.
1570
+ # Corresponds to the JSON property `insertTime`
1571
+ # @return [String]
1572
+ attr_accessor :insert_time
1573
+
1574
+ # Name of the type.
1575
+ # Corresponds to the JSON property `name`
1576
+ # @return [String]
1577
+ attr_accessor :name
1578
+
1579
+ # Represents an Operation resource. Google Compute Engine has three Operation
1580
+ # resources: * [Global](/compute/docs/reference/rest/`$api_version`/
1581
+ # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
1582
+ # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
1583
+ # zoneOperations) You can use an operation resource to manage asynchronous API
1584
+ # requests. For more information, read Handling API responses. Operations can be
1585
+ # global, regional or zonal. - For global operations, use the `globalOperations`
1586
+ # resource. - For regional operations, use the `regionOperations` resource. -
1587
+ # For zonal operations, use the `zonalOperations` resource. For more information,
1588
+ # read Global, Regional, and Zonal Resources.
1589
+ # Corresponds to the JSON property `operation`
1590
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
1591
+ attr_accessor :operation
1592
+
1593
+ # Output only. Server defined URL for the resource.
1594
+ # Corresponds to the JSON property `selfLink`
1595
+ # @return [String]
1596
+ attr_accessor :self_link
1597
+
1598
+ def initialize(**args)
1599
+ update!(**args)
1600
+ end
1601
+
1602
+ # Update properties of this object
1603
+ def update!(**args)
1604
+ @id = args[:id] if args.key?(:id)
1605
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1606
+ @name = args[:name] if args.key?(:name)
1607
+ @operation = args[:operation] if args.key?(:operation)
1608
+ @self_link = args[:self_link] if args.key?(:self_link)
1609
+ end
1610
+ end
1611
+
1612
+ # A response that returns all Types supported by Deployment Manager
1613
+ class ListTypesResponse
1614
+ include Google::Apis::Core::Hashable
1615
+
1616
+ # A token used to continue a truncated list request.
1617
+ # Corresponds to the JSON property `nextPageToken`
1618
+ # @return [String]
1619
+ attr_accessor :next_page_token
1620
+
1621
+ # Output only. A list of resource types supported by Deployment Manager.
1622
+ # Corresponds to the JSON property `types`
1623
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Type>]
1624
+ attr_accessor :types
1625
+
1626
+ def initialize(**args)
1627
+ update!(**args)
1628
+ end
1629
+
1630
+ # Update properties of this object
1631
+ def update!(**args)
1632
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1633
+ @types = args[:types] if args.key?(:types)
1634
+ end
1635
+ end
1636
+ end
1637
+ end
1638
+ end