google-apis-runtimeconfig_v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-runtimeconfig_v1beta1.rb +15 -0
- data/lib/google/apis/runtimeconfig_v1beta1.rb +42 -0
- data/lib/google/apis/runtimeconfig_v1beta1/classes.rb +792 -0
- data/lib/google/apis/runtimeconfig_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/runtimeconfig_v1beta1/representations.rb +298 -0
- data/lib/google/apis/runtimeconfig_v1beta1/service.rb +894 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 66d3f09dd15ce1b699a1bc8f2bc745d40a3fb2c621784d0f4b4a982ddbf1cf75
|
4
|
+
data.tar.gz: b9c5f384e9d07dfa527196448903886c87393dd2eaad50d52776f0ee843b01b9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fbe176f36d5ae5fd367df694010a2301e4a6c85c7e1c759f06e248786526771378b9ea478624c0bd972ec3703287392eb7ed3cd673a6bacd4f45cc58771dc733
|
7
|
+
data.tar.gz: 2a70b481723e56181a19db9e3392980c736559f824c28c851d23dbcba6ff0a1fa41b0915e22a668b233e18a4e0f435b834554c024d8b3e3d3d68e2411c45358f
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-runtimeconfig_v1beta1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/runtimeconfig_v1beta1/*.rb
|
9
|
+
lib/google/apis/runtimeconfig_v1beta1.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1beta1 of the Cloud Runtime Configuration API
|
2
|
+
|
3
|
+
This is a simple client library for version V1beta1 of the Cloud Runtime Configuration 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/runtimeconfig.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-runtimeconfig_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-runtimeconfig_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/runtimeconfig_v1beta1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::RuntimeconfigV1beta1::CloudRuntimeConfigService.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 Runtimeconfig service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Cloud Runtime Configuration API, see the {Google::Apis::RuntimeconfigV1beta1::CloudRuntimeConfigService 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-runtimeconfig_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/deployment-manager/runtime-configurator/) 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/runtimeconfig_v1beta1"
|
@@ -0,0 +1,42 @@
|
|
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/runtimeconfig_v1beta1/service.rb'
|
16
|
+
require 'google/apis/runtimeconfig_v1beta1/classes.rb'
|
17
|
+
require 'google/apis/runtimeconfig_v1beta1/representations.rb'
|
18
|
+
require 'google/apis/runtimeconfig_v1beta1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Cloud Runtime Configuration API
|
23
|
+
#
|
24
|
+
# The Runtime Configurator allows you to dynamically configure and expose
|
25
|
+
# variables through Google Cloud Platform. In addition, you can also set
|
26
|
+
# Watchers and Waiters that will watch for changes to your data and return based
|
27
|
+
# on certain conditions.
|
28
|
+
#
|
29
|
+
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
30
|
+
module RuntimeconfigV1beta1
|
31
|
+
# Version of the Cloud Runtime Configuration API this client connects to.
|
32
|
+
# This is NOT the gem version.
|
33
|
+
VERSION = 'V1beta1'
|
34
|
+
|
35
|
+
# View and manage your data across Google Cloud Platform services
|
36
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
37
|
+
|
38
|
+
# Manage your Google Cloud Platform services' runtime configuration
|
39
|
+
AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig'
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,792 @@
|
|
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 RuntimeconfigV1beta1
|
24
|
+
|
25
|
+
# Associates `members` with a `role`.
|
26
|
+
class Binding
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
30
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
31
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
32
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
33
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
34
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
35
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
36
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
37
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
38
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
39
|
+
# string" description: "Create a notification string with a timestamp."
|
40
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
41
|
+
# exact variables and functions that may be referenced within an expression are
|
42
|
+
# determined by the service that evaluates it. See the service documentation for
|
43
|
+
# additional information.
|
44
|
+
# Corresponds to the JSON property `condition`
|
45
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::Expr]
|
46
|
+
attr_accessor :condition
|
47
|
+
|
48
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
49
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
50
|
+
# that represents anyone who is on the internet; with or without a Google
|
51
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
52
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
53
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
54
|
+
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
55
|
+
# address that represents a service account. For example, `my-other-app@appspot.
|
56
|
+
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
57
|
+
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
58
|
+
# `uniqueid``: An email address (plus unique identifier) representing a user
|
59
|
+
# that has been recently deleted. For example, `alice@example.com?uid=
|
60
|
+
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
61
|
+
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
62
|
+
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
63
|
+
# identifier) representing a service account that has been recently deleted. For
|
64
|
+
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
65
|
+
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
66
|
+
# emailid`` and the undeleted service account retains the role in the binding. *
|
67
|
+
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
68
|
+
# identifier) representing a Google group that has been recently deleted. For
|
69
|
+
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
70
|
+
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
71
|
+
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
72
|
+
# primary) that represents all the users of that domain. For example, `google.
|
73
|
+
# com` or `example.com`.
|
74
|
+
# Corresponds to the JSON property `members`
|
75
|
+
# @return [Array<String>]
|
76
|
+
attr_accessor :members
|
77
|
+
|
78
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
79
|
+
# , or `roles/owner`.
|
80
|
+
# Corresponds to the JSON property `role`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :role
|
83
|
+
|
84
|
+
def initialize(**args)
|
85
|
+
update!(**args)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Update properties of this object
|
89
|
+
def update!(**args)
|
90
|
+
@condition = args[:condition] if args.key?(:condition)
|
91
|
+
@members = args[:members] if args.key?(:members)
|
92
|
+
@role = args[:role] if args.key?(:role)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# A Cardinality condition for the Waiter resource. A cardinality condition is
|
97
|
+
# met when the number of variables under a specified path prefix reaches a
|
98
|
+
# predefined number. For example, if you set a Cardinality condition where the `
|
99
|
+
# path` is set to `/foo` and the number of paths is set to `2`, the following
|
100
|
+
# variables would meet the condition in a RuntimeConfig resource: + `/foo/
|
101
|
+
# variable1 = "value1"` + `/foo/variable2 = "value2"` + `/bar/variable3 = "
|
102
|
+
# value3"` It would not satisfy the same condition with the `number` set to `3`,
|
103
|
+
# however, because there is only 2 paths that start with `/foo`. Cardinality
|
104
|
+
# conditions are recursive; all subtrees under the specific path prefix are
|
105
|
+
# counted.
|
106
|
+
class Cardinality
|
107
|
+
include Google::Apis::Core::Hashable
|
108
|
+
|
109
|
+
# The number variables under the `path` that must exist to meet this condition.
|
110
|
+
# Defaults to 1 if not specified.
|
111
|
+
# Corresponds to the JSON property `number`
|
112
|
+
# @return [Fixnum]
|
113
|
+
attr_accessor :number
|
114
|
+
|
115
|
+
# The root of the variable subtree to monitor. For example, `/foo`.
|
116
|
+
# Corresponds to the JSON property `path`
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :path
|
119
|
+
|
120
|
+
def initialize(**args)
|
121
|
+
update!(**args)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Update properties of this object
|
125
|
+
def update!(**args)
|
126
|
+
@number = args[:number] if args.key?(:number)
|
127
|
+
@path = args[:path] if args.key?(:path)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
132
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
133
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
134
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
135
|
+
# `Empty` is empty JSON object ````.
|
136
|
+
class Empty
|
137
|
+
include Google::Apis::Core::Hashable
|
138
|
+
|
139
|
+
def initialize(**args)
|
140
|
+
update!(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Update properties of this object
|
144
|
+
def update!(**args)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# The condition that a Waiter resource is waiting for.
|
149
|
+
class EndCondition
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
# A Cardinality condition for the Waiter resource. A cardinality condition is
|
153
|
+
# met when the number of variables under a specified path prefix reaches a
|
154
|
+
# predefined number. For example, if you set a Cardinality condition where the `
|
155
|
+
# path` is set to `/foo` and the number of paths is set to `2`, the following
|
156
|
+
# variables would meet the condition in a RuntimeConfig resource: + `/foo/
|
157
|
+
# variable1 = "value1"` + `/foo/variable2 = "value2"` + `/bar/variable3 = "
|
158
|
+
# value3"` It would not satisfy the same condition with the `number` set to `3`,
|
159
|
+
# however, because there is only 2 paths that start with `/foo`. Cardinality
|
160
|
+
# conditions are recursive; all subtrees under the specific path prefix are
|
161
|
+
# counted.
|
162
|
+
# Corresponds to the JSON property `cardinality`
|
163
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::Cardinality]
|
164
|
+
attr_accessor :cardinality
|
165
|
+
|
166
|
+
def initialize(**args)
|
167
|
+
update!(**args)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Update properties of this object
|
171
|
+
def update!(**args)
|
172
|
+
@cardinality = args[:cardinality] if args.key?(:cardinality)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
177
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
178
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
179
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
180
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
181
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
182
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
183
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
184
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
185
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
186
|
+
# string" description: "Create a notification string with a timestamp."
|
187
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
188
|
+
# exact variables and functions that may be referenced within an expression are
|
189
|
+
# determined by the service that evaluates it. See the service documentation for
|
190
|
+
# additional information.
|
191
|
+
class Expr
|
192
|
+
include Google::Apis::Core::Hashable
|
193
|
+
|
194
|
+
# Optional. Description of the expression. This is a longer text which describes
|
195
|
+
# the expression, e.g. when hovered over it in a UI.
|
196
|
+
# Corresponds to the JSON property `description`
|
197
|
+
# @return [String]
|
198
|
+
attr_accessor :description
|
199
|
+
|
200
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
201
|
+
# Corresponds to the JSON property `expression`
|
202
|
+
# @return [String]
|
203
|
+
attr_accessor :expression
|
204
|
+
|
205
|
+
# Optional. String indicating the location of the expression for error reporting,
|
206
|
+
# e.g. a file name and a position in the file.
|
207
|
+
# Corresponds to the JSON property `location`
|
208
|
+
# @return [String]
|
209
|
+
attr_accessor :location
|
210
|
+
|
211
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
212
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
213
|
+
# Corresponds to the JSON property `title`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :title
|
216
|
+
|
217
|
+
def initialize(**args)
|
218
|
+
update!(**args)
|
219
|
+
end
|
220
|
+
|
221
|
+
# Update properties of this object
|
222
|
+
def update!(**args)
|
223
|
+
@description = args[:description] if args.key?(:description)
|
224
|
+
@expression = args[:expression] if args.key?(:expression)
|
225
|
+
@location = args[:location] if args.key?(:location)
|
226
|
+
@title = args[:title] if args.key?(:title)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# `ListConfigs()` returns the following response. The order of returned objects
|
231
|
+
# is arbitrary; that is, it is not ordered in any particular way.
|
232
|
+
class ListConfigsResponse
|
233
|
+
include Google::Apis::Core::Hashable
|
234
|
+
|
235
|
+
# A list of the configurations in the project. The order of returned objects is
|
236
|
+
# arbitrary; that is, it is not ordered in any particular way.
|
237
|
+
# Corresponds to the JSON property `configs`
|
238
|
+
# @return [Array<Google::Apis::RuntimeconfigV1beta1::RuntimeConfig>]
|
239
|
+
attr_accessor :configs
|
240
|
+
|
241
|
+
# This token allows you to get the next page of results for list requests. If
|
242
|
+
# the number of results is larger than `pageSize`, use the `nextPageToken` as a
|
243
|
+
# value for the query parameter `pageToken` in the next list request. Subsequent
|
244
|
+
# list requests will have their own `nextPageToken` to continue paging through
|
245
|
+
# the results
|
246
|
+
# Corresponds to the JSON property `nextPageToken`
|
247
|
+
# @return [String]
|
248
|
+
attr_accessor :next_page_token
|
249
|
+
|
250
|
+
def initialize(**args)
|
251
|
+
update!(**args)
|
252
|
+
end
|
253
|
+
|
254
|
+
# Update properties of this object
|
255
|
+
def update!(**args)
|
256
|
+
@configs = args[:configs] if args.key?(:configs)
|
257
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# Response for the `ListVariables()` method.
|
262
|
+
class ListVariablesResponse
|
263
|
+
include Google::Apis::Core::Hashable
|
264
|
+
|
265
|
+
# This token allows you to get the next page of results for list requests. If
|
266
|
+
# the number of results is larger than `pageSize`, use the `nextPageToken` as a
|
267
|
+
# value for the query parameter `pageToken` in the next list request. Subsequent
|
268
|
+
# list requests will have their own `nextPageToken` to continue paging through
|
269
|
+
# the results
|
270
|
+
# Corresponds to the JSON property `nextPageToken`
|
271
|
+
# @return [String]
|
272
|
+
attr_accessor :next_page_token
|
273
|
+
|
274
|
+
# A list of variables and their values. The order of returned variable objects
|
275
|
+
# is arbitrary.
|
276
|
+
# Corresponds to the JSON property `variables`
|
277
|
+
# @return [Array<Google::Apis::RuntimeconfigV1beta1::Variable>]
|
278
|
+
attr_accessor :variables
|
279
|
+
|
280
|
+
def initialize(**args)
|
281
|
+
update!(**args)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Update properties of this object
|
285
|
+
def update!(**args)
|
286
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
287
|
+
@variables = args[:variables] if args.key?(:variables)
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# Response for the `ListWaiters()` method. Order of returned waiter objects is
|
292
|
+
# arbitrary.
|
293
|
+
class ListWaitersResponse
|
294
|
+
include Google::Apis::Core::Hashable
|
295
|
+
|
296
|
+
# This token allows you to get the next page of results for list requests. If
|
297
|
+
# the number of results is larger than `pageSize`, use the `nextPageToken` as a
|
298
|
+
# value for the query parameter `pageToken` in the next list request. Subsequent
|
299
|
+
# list requests will have their own `nextPageToken` to continue paging through
|
300
|
+
# the results
|
301
|
+
# Corresponds to the JSON property `nextPageToken`
|
302
|
+
# @return [String]
|
303
|
+
attr_accessor :next_page_token
|
304
|
+
|
305
|
+
# Found waiters in the project.
|
306
|
+
# Corresponds to the JSON property `waiters`
|
307
|
+
# @return [Array<Google::Apis::RuntimeconfigV1beta1::Waiter>]
|
308
|
+
attr_accessor :waiters
|
309
|
+
|
310
|
+
def initialize(**args)
|
311
|
+
update!(**args)
|
312
|
+
end
|
313
|
+
|
314
|
+
# Update properties of this object
|
315
|
+
def update!(**args)
|
316
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
317
|
+
@waiters = args[:waiters] if args.key?(:waiters)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# This resource represents a long-running operation that is the result of a
|
322
|
+
# network API call.
|
323
|
+
class Operation
|
324
|
+
include Google::Apis::Core::Hashable
|
325
|
+
|
326
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
327
|
+
# , the operation is completed, and either `error` or `response` is available.
|
328
|
+
# Corresponds to the JSON property `done`
|
329
|
+
# @return [Boolean]
|
330
|
+
attr_accessor :done
|
331
|
+
alias_method :done?, :done
|
332
|
+
|
333
|
+
# The `Status` type defines a logical error model that is suitable for different
|
334
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
335
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
336
|
+
# data: error code, error message, and error details. You can find out more
|
337
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
338
|
+
# //cloud.google.com/apis/design/errors).
|
339
|
+
# Corresponds to the JSON property `error`
|
340
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::Status]
|
341
|
+
attr_accessor :error
|
342
|
+
|
343
|
+
# Service-specific metadata associated with the operation. It typically contains
|
344
|
+
# progress information and common metadata such as create time. Some services
|
345
|
+
# might not provide such metadata. Any method that returns a long-running
|
346
|
+
# operation should document the metadata type, if any.
|
347
|
+
# Corresponds to the JSON property `metadata`
|
348
|
+
# @return [Hash<String,Object>]
|
349
|
+
attr_accessor :metadata
|
350
|
+
|
351
|
+
# The server-assigned name, which is only unique within the same service that
|
352
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
353
|
+
# be a resource name ending with `operations/`unique_id``.
|
354
|
+
# Corresponds to the JSON property `name`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :name
|
357
|
+
|
358
|
+
# The normal response of the operation in case of success. If the original
|
359
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
360
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
361
|
+
# the response should be the resource. For other methods, the response should
|
362
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
363
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
364
|
+
# response type is `TakeSnapshotResponse`.
|
365
|
+
# Corresponds to the JSON property `response`
|
366
|
+
# @return [Hash<String,Object>]
|
367
|
+
attr_accessor :response
|
368
|
+
|
369
|
+
def initialize(**args)
|
370
|
+
update!(**args)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Update properties of this object
|
374
|
+
def update!(**args)
|
375
|
+
@done = args[:done] if args.key?(:done)
|
376
|
+
@error = args[:error] if args.key?(:error)
|
377
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
378
|
+
@name = args[:name] if args.key?(:name)
|
379
|
+
@response = args[:response] if args.key?(:response)
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
384
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
385
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
386
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
387
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
388
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
389
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
390
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
391
|
+
# condition can add constraints based on attributes of the request, the resource,
|
392
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
393
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
394
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
395
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
396
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
397
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
398
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
399
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
400
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
401
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
402
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
403
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
404
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
405
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
406
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
407
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
408
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
409
|
+
# google.com/iam/docs/).
|
410
|
+
class Policy
|
411
|
+
include Google::Apis::Core::Hashable
|
412
|
+
|
413
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
414
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
415
|
+
# the `bindings` must contain at least one member.
|
416
|
+
# Corresponds to the JSON property `bindings`
|
417
|
+
# @return [Array<Google::Apis::RuntimeconfigV1beta1::Binding>]
|
418
|
+
attr_accessor :bindings
|
419
|
+
|
420
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
421
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
422
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
423
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
424
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
425
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
426
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
427
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
428
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
429
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
430
|
+
# are lost.
|
431
|
+
# Corresponds to the JSON property `etag`
|
432
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :etag
|
435
|
+
|
436
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
437
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
438
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
439
|
+
# applies to the following operations: * Getting a policy that includes a
|
440
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
441
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
442
|
+
# with or without a condition, from a policy that includes conditions **
|
443
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
444
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
445
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
446
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
447
|
+
# any conditions, operations on that policy may specify any valid version or
|
448
|
+
# leave the field unset. To learn which resources support conditions in their
|
449
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
450
|
+
# conditions/resource-policies).
|
451
|
+
# Corresponds to the JSON property `version`
|
452
|
+
# @return [Fixnum]
|
453
|
+
attr_accessor :version
|
454
|
+
|
455
|
+
def initialize(**args)
|
456
|
+
update!(**args)
|
457
|
+
end
|
458
|
+
|
459
|
+
# Update properties of this object
|
460
|
+
def update!(**args)
|
461
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
462
|
+
@etag = args[:etag] if args.key?(:etag)
|
463
|
+
@version = args[:version] if args.key?(:version)
|
464
|
+
end
|
465
|
+
end
|
466
|
+
|
467
|
+
# A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
|
468
|
+
# service. A RuntimeConfig resource consists of metadata and a hierarchy of
|
469
|
+
# variables.
|
470
|
+
class RuntimeConfig
|
471
|
+
include Google::Apis::Core::Hashable
|
472
|
+
|
473
|
+
# An optional description of the RuntimeConfig object.
|
474
|
+
# Corresponds to the JSON property `description`
|
475
|
+
# @return [String]
|
476
|
+
attr_accessor :description
|
477
|
+
|
478
|
+
# The resource name of a runtime config. The name must have the format: projects/
|
479
|
+
# [PROJECT_ID]/configs/[CONFIG_NAME] The `[PROJECT_ID]` must be a valid project
|
480
|
+
# ID, and `[CONFIG_NAME]` is an arbitrary name that matches the `[0-9A-Za-z](?:[
|
481
|
+
# _.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])?` regular expression. The length of `[
|
482
|
+
# CONFIG_NAME]` must be less than 64 characters. You pick the RuntimeConfig
|
483
|
+
# resource name, but the server will validate that the name adheres to this
|
484
|
+
# format. After you create the resource, you cannot change the resource's name.
|
485
|
+
# Corresponds to the JSON property `name`
|
486
|
+
# @return [String]
|
487
|
+
attr_accessor :name
|
488
|
+
|
489
|
+
def initialize(**args)
|
490
|
+
update!(**args)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Update properties of this object
|
494
|
+
def update!(**args)
|
495
|
+
@description = args[:description] if args.key?(:description)
|
496
|
+
@name = args[:name] if args.key?(:name)
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
# Request message for `SetIamPolicy` method.
|
501
|
+
class SetIamPolicyRequest
|
502
|
+
include Google::Apis::Core::Hashable
|
503
|
+
|
504
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
505
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
506
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
507
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
508
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
509
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
510
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
511
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
512
|
+
# condition can add constraints based on attributes of the request, the resource,
|
513
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
514
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
515
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
516
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
517
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
518
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
519
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
520
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
521
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
522
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
523
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
524
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
525
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
526
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
527
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
528
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
529
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
530
|
+
# google.com/iam/docs/).
|
531
|
+
# Corresponds to the JSON property `policy`
|
532
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::Policy]
|
533
|
+
attr_accessor :policy
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@policy = args[:policy] if args.key?(:policy)
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
# The `Status` type defines a logical error model that is suitable for different
|
546
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
547
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
548
|
+
# data: error code, error message, and error details. You can find out more
|
549
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
550
|
+
# //cloud.google.com/apis/design/errors).
|
551
|
+
class Status
|
552
|
+
include Google::Apis::Core::Hashable
|
553
|
+
|
554
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
555
|
+
# Corresponds to the JSON property `code`
|
556
|
+
# @return [Fixnum]
|
557
|
+
attr_accessor :code
|
558
|
+
|
559
|
+
# A list of messages that carry the error details. There is a common set of
|
560
|
+
# message types for APIs to use.
|
561
|
+
# Corresponds to the JSON property `details`
|
562
|
+
# @return [Array<Hash<String,Object>>]
|
563
|
+
attr_accessor :details
|
564
|
+
|
565
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
566
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
567
|
+
# field, or localized by the client.
|
568
|
+
# Corresponds to the JSON property `message`
|
569
|
+
# @return [String]
|
570
|
+
attr_accessor :message
|
571
|
+
|
572
|
+
def initialize(**args)
|
573
|
+
update!(**args)
|
574
|
+
end
|
575
|
+
|
576
|
+
# Update properties of this object
|
577
|
+
def update!(**args)
|
578
|
+
@code = args[:code] if args.key?(:code)
|
579
|
+
@details = args[:details] if args.key?(:details)
|
580
|
+
@message = args[:message] if args.key?(:message)
|
581
|
+
end
|
582
|
+
end
|
583
|
+
|
584
|
+
# Request message for `TestIamPermissions` method.
|
585
|
+
class TestIamPermissionsRequest
|
586
|
+
include Google::Apis::Core::Hashable
|
587
|
+
|
588
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
589
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
590
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
591
|
+
# Corresponds to the JSON property `permissions`
|
592
|
+
# @return [Array<String>]
|
593
|
+
attr_accessor :permissions
|
594
|
+
|
595
|
+
def initialize(**args)
|
596
|
+
update!(**args)
|
597
|
+
end
|
598
|
+
|
599
|
+
# Update properties of this object
|
600
|
+
def update!(**args)
|
601
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
# Response message for `TestIamPermissions` method.
|
606
|
+
class TestIamPermissionsResponse
|
607
|
+
include Google::Apis::Core::Hashable
|
608
|
+
|
609
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
610
|
+
# Corresponds to the JSON property `permissions`
|
611
|
+
# @return [Array<String>]
|
612
|
+
attr_accessor :permissions
|
613
|
+
|
614
|
+
def initialize(**args)
|
615
|
+
update!(**args)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Update properties of this object
|
619
|
+
def update!(**args)
|
620
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
# Describes a single variable within a RuntimeConfig resource. The name denotes
|
625
|
+
# the hierarchical variable name. For example, `ports/serving_port` is a valid
|
626
|
+
# variable name. The variable value is an opaque string and only leaf variables
|
627
|
+
# can have values (that is, variables that do not have any child variables).
|
628
|
+
class Variable
|
629
|
+
include Google::Apis::Core::Hashable
|
630
|
+
|
631
|
+
# The name of the variable resource, in the format: projects/[PROJECT_ID]/
|
632
|
+
# configs/[CONFIG_NAME]/variables/[VARIABLE_NAME] The `[PROJECT_ID]` must be a
|
633
|
+
# valid project ID, `[CONFIG_NAME]` must be a valid RuntimeConfig resource and `[
|
634
|
+
# VARIABLE_NAME]` follows Unix file system file path naming. The `[VARIABLE_NAME]
|
635
|
+
# ` can contain ASCII letters, numbers, slashes and dashes. Slashes are used as
|
636
|
+
# path element separators and are not part of the `[VARIABLE_NAME]` itself, so `[
|
637
|
+
# VARIABLE_NAME]` must contain at least one non-slash character. Multiple
|
638
|
+
# slashes are coalesced into single slash character. Each path segment should
|
639
|
+
# match [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression.
|
640
|
+
# The length of a `[VARIABLE_NAME]` must be less than 256 characters. Once you
|
641
|
+
# create a variable, you cannot change the variable name.
|
642
|
+
# Corresponds to the JSON property `name`
|
643
|
+
# @return [String]
|
644
|
+
attr_accessor :name
|
645
|
+
|
646
|
+
# Output only. The current state of the variable. The variable state indicates
|
647
|
+
# the outcome of the `variables().watch` call and is visible through the `get`
|
648
|
+
# and `list` calls.
|
649
|
+
# Corresponds to the JSON property `state`
|
650
|
+
# @return [String]
|
651
|
+
attr_accessor :state
|
652
|
+
|
653
|
+
# The string value of the variable. The length of the value must be less than
|
654
|
+
# 4096 bytes. Empty values are also accepted. For example, `text: "my text value"
|
655
|
+
# `. The string must be valid UTF-8.
|
656
|
+
# Corresponds to the JSON property `text`
|
657
|
+
# @return [String]
|
658
|
+
attr_accessor :text
|
659
|
+
|
660
|
+
# Output only. The time of the last variable update. Timestamp will be UTC
|
661
|
+
# timestamp.
|
662
|
+
# Corresponds to the JSON property `updateTime`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :update_time
|
665
|
+
|
666
|
+
# The binary value of the variable. The length of the value must be less than
|
667
|
+
# 4096 bytes. Empty values are also accepted. The value must be base64 encoded,
|
668
|
+
# and must comply with IETF RFC4648 (https://www.ietf.org/rfc/rfc4648.txt). Only
|
669
|
+
# one of `value` or `text` can be set.
|
670
|
+
# Corresponds to the JSON property `value`
|
671
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
672
|
+
# @return [String]
|
673
|
+
attr_accessor :value
|
674
|
+
|
675
|
+
def initialize(**args)
|
676
|
+
update!(**args)
|
677
|
+
end
|
678
|
+
|
679
|
+
# Update properties of this object
|
680
|
+
def update!(**args)
|
681
|
+
@name = args[:name] if args.key?(:name)
|
682
|
+
@state = args[:state] if args.key?(:state)
|
683
|
+
@text = args[:text] if args.key?(:text)
|
684
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
685
|
+
@value = args[:value] if args.key?(:value)
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
# A Waiter resource waits for some end condition within a RuntimeConfig resource
|
690
|
+
# to be met before it returns. For example, assume you have a distributed system
|
691
|
+
# where each node writes to a Variable resource indicating the node's readiness
|
692
|
+
# as part of the startup process. You then configure a Waiter resource with the
|
693
|
+
# success condition set to wait until some number of nodes have checked in.
|
694
|
+
# Afterwards, your application runs some arbitrary code after the condition has
|
695
|
+
# been met and the waiter returns successfully. Once created, a Waiter resource
|
696
|
+
# is immutable. To learn more about using waiters, read the [Creating a Waiter](/
|
697
|
+
# deployment-manager/runtime-configurator/creating-a-waiter) documentation.
|
698
|
+
class Waiter
|
699
|
+
include Google::Apis::Core::Hashable
|
700
|
+
|
701
|
+
# Output only. The instant at which this Waiter resource was created. Adding the
|
702
|
+
# value of `timeout` to this instant yields the timeout deadline for the waiter.
|
703
|
+
# Corresponds to the JSON property `createTime`
|
704
|
+
# @return [String]
|
705
|
+
attr_accessor :create_time
|
706
|
+
|
707
|
+
# Output only. If the value is `false`, it means the waiter is still waiting for
|
708
|
+
# one of its conditions to be met. If true, the waiter has finished. If the
|
709
|
+
# waiter finished due to a timeout or failure, `error` will be set.
|
710
|
+
# Corresponds to the JSON property `done`
|
711
|
+
# @return [Boolean]
|
712
|
+
attr_accessor :done
|
713
|
+
alias_method :done?, :done
|
714
|
+
|
715
|
+
# The `Status` type defines a logical error model that is suitable for different
|
716
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
717
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
718
|
+
# data: error code, error message, and error details. You can find out more
|
719
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
720
|
+
# //cloud.google.com/apis/design/errors).
|
721
|
+
# Corresponds to the JSON property `error`
|
722
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::Status]
|
723
|
+
attr_accessor :error
|
724
|
+
|
725
|
+
# The condition that a Waiter resource is waiting for.
|
726
|
+
# Corresponds to the JSON property `failure`
|
727
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::EndCondition]
|
728
|
+
attr_accessor :failure
|
729
|
+
|
730
|
+
# The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[
|
731
|
+
# CONFIG_NAME]/waiters/[WAITER_NAME] The `[PROJECT_ID]` must be a valid Google
|
732
|
+
# Cloud project ID, the `[CONFIG_NAME]` must be a valid RuntimeConfig resource,
|
733
|
+
# the `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
|
734
|
+
# of `[WAITER_NAME]` must be less than 64 bytes. After you create a Waiter
|
735
|
+
# resource, you cannot change the resource name.
|
736
|
+
# Corresponds to the JSON property `name`
|
737
|
+
# @return [String]
|
738
|
+
attr_accessor :name
|
739
|
+
|
740
|
+
# The condition that a Waiter resource is waiting for.
|
741
|
+
# Corresponds to the JSON property `success`
|
742
|
+
# @return [Google::Apis::RuntimeconfigV1beta1::EndCondition]
|
743
|
+
attr_accessor :success
|
744
|
+
|
745
|
+
# [Required] Specifies the timeout of the waiter in seconds, beginning from the
|
746
|
+
# instant that `waiters().create` method is called. If this time elapses before
|
747
|
+
# the success or failure conditions are met, the waiter fails and sets the `
|
748
|
+
# error` code to `DEADLINE_EXCEEDED`.
|
749
|
+
# Corresponds to the JSON property `timeout`
|
750
|
+
# @return [String]
|
751
|
+
attr_accessor :timeout
|
752
|
+
|
753
|
+
def initialize(**args)
|
754
|
+
update!(**args)
|
755
|
+
end
|
756
|
+
|
757
|
+
# Update properties of this object
|
758
|
+
def update!(**args)
|
759
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
760
|
+
@done = args[:done] if args.key?(:done)
|
761
|
+
@error = args[:error] if args.key?(:error)
|
762
|
+
@failure = args[:failure] if args.key?(:failure)
|
763
|
+
@name = args[:name] if args.key?(:name)
|
764
|
+
@success = args[:success] if args.key?(:success)
|
765
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
# Request for the `WatchVariable()` method.
|
770
|
+
class WatchVariableRequest
|
771
|
+
include Google::Apis::Core::Hashable
|
772
|
+
|
773
|
+
# If specified, checks the current timestamp of the variable and if the current
|
774
|
+
# timestamp is newer than `newerThan` timestamp, the method returns immediately.
|
775
|
+
# If not specified or the variable has an older timestamp, the watcher waits for
|
776
|
+
# a the value to change before returning.
|
777
|
+
# Corresponds to the JSON property `newerThan`
|
778
|
+
# @return [String]
|
779
|
+
attr_accessor :newer_than
|
780
|
+
|
781
|
+
def initialize(**args)
|
782
|
+
update!(**args)
|
783
|
+
end
|
784
|
+
|
785
|
+
# Update properties of this object
|
786
|
+
def update!(**args)
|
787
|
+
@newer_than = args[:newer_than] if args.key?(:newer_than)
|
788
|
+
end
|
789
|
+
end
|
790
|
+
end
|
791
|
+
end
|
792
|
+
end
|