google-apis-runtimeconfig_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module RuntimeconfigV1beta1
18
+ # Version of the google-apis-runtimeconfig_v1beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201109"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,298 @@
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
+ class Binding
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Cardinality
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Empty
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class EndCondition
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Expr
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListConfigsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListVariablesResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListWaitersResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Operation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Policy
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class RuntimeConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class SetIamPolicyRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Status
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class TestIamPermissionsRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class TestIamPermissionsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Variable
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Waiter
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class WatchVariableRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Binding
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ property :condition, as: 'condition', class: Google::Apis::RuntimeconfigV1beta1::Expr, decorator: Google::Apis::RuntimeconfigV1beta1::Expr::Representation
137
+
138
+ collection :members, as: 'members'
139
+ property :role, as: 'role'
140
+ end
141
+ end
142
+
143
+ class Cardinality
144
+ # @private
145
+ class Representation < Google::Apis::Core::JsonRepresentation
146
+ property :number, as: 'number'
147
+ property :path, as: 'path'
148
+ end
149
+ end
150
+
151
+ class Empty
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ end
155
+ end
156
+
157
+ class EndCondition
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ property :cardinality, as: 'cardinality', class: Google::Apis::RuntimeconfigV1beta1::Cardinality, decorator: Google::Apis::RuntimeconfigV1beta1::Cardinality::Representation
161
+
162
+ end
163
+ end
164
+
165
+ class Expr
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :description, as: 'description'
169
+ property :expression, as: 'expression'
170
+ property :location, as: 'location'
171
+ property :title, as: 'title'
172
+ end
173
+ end
174
+
175
+ class ListConfigsResponse
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ collection :configs, as: 'configs', class: Google::Apis::RuntimeconfigV1beta1::RuntimeConfig, decorator: Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
179
+
180
+ property :next_page_token, as: 'nextPageToken'
181
+ end
182
+ end
183
+
184
+ class ListVariablesResponse
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :next_page_token, as: 'nextPageToken'
188
+ collection :variables, as: 'variables', class: Google::Apis::RuntimeconfigV1beta1::Variable, decorator: Google::Apis::RuntimeconfigV1beta1::Variable::Representation
189
+
190
+ end
191
+ end
192
+
193
+ class ListWaitersResponse
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :next_page_token, as: 'nextPageToken'
197
+ collection :waiters, as: 'waiters', class: Google::Apis::RuntimeconfigV1beta1::Waiter, decorator: Google::Apis::RuntimeconfigV1beta1::Waiter::Representation
198
+
199
+ end
200
+ end
201
+
202
+ class Operation
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ property :done, as: 'done'
206
+ property :error, as: 'error', class: Google::Apis::RuntimeconfigV1beta1::Status, decorator: Google::Apis::RuntimeconfigV1beta1::Status::Representation
207
+
208
+ hash :metadata, as: 'metadata'
209
+ property :name, as: 'name'
210
+ hash :response, as: 'response'
211
+ end
212
+ end
213
+
214
+ class Policy
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ collection :bindings, as: 'bindings', class: Google::Apis::RuntimeconfigV1beta1::Binding, decorator: Google::Apis::RuntimeconfigV1beta1::Binding::Representation
218
+
219
+ property :etag, :base64 => true, as: 'etag'
220
+ property :version, as: 'version'
221
+ end
222
+ end
223
+
224
+ class RuntimeConfig
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ property :description, as: 'description'
228
+ property :name, as: 'name'
229
+ end
230
+ end
231
+
232
+ class SetIamPolicyRequest
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :policy, as: 'policy', class: Google::Apis::RuntimeconfigV1beta1::Policy, decorator: Google::Apis::RuntimeconfigV1beta1::Policy::Representation
236
+
237
+ end
238
+ end
239
+
240
+ class Status
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :code, as: 'code'
244
+ collection :details, as: 'details'
245
+ property :message, as: 'message'
246
+ end
247
+ end
248
+
249
+ class TestIamPermissionsRequest
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ collection :permissions, as: 'permissions'
253
+ end
254
+ end
255
+
256
+ class TestIamPermissionsResponse
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ collection :permissions, as: 'permissions'
260
+ end
261
+ end
262
+
263
+ class Variable
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :name, as: 'name'
267
+ property :state, as: 'state'
268
+ property :text, as: 'text'
269
+ property :update_time, as: 'updateTime'
270
+ property :value, :base64 => true, as: 'value'
271
+ end
272
+ end
273
+
274
+ class Waiter
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :create_time, as: 'createTime'
278
+ property :done, as: 'done'
279
+ property :error, as: 'error', class: Google::Apis::RuntimeconfigV1beta1::Status, decorator: Google::Apis::RuntimeconfigV1beta1::Status::Representation
280
+
281
+ property :failure, as: 'failure', class: Google::Apis::RuntimeconfigV1beta1::EndCondition, decorator: Google::Apis::RuntimeconfigV1beta1::EndCondition::Representation
282
+
283
+ property :name, as: 'name'
284
+ property :success, as: 'success', class: Google::Apis::RuntimeconfigV1beta1::EndCondition, decorator: Google::Apis::RuntimeconfigV1beta1::EndCondition::Representation
285
+
286
+ property :timeout, as: 'timeout'
287
+ end
288
+ end
289
+
290
+ class WatchVariableRequest
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ property :newer_than, as: 'newerThan'
294
+ end
295
+ end
296
+ end
297
+ end
298
+ end
@@ -0,0 +1,894 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module RuntimeconfigV1beta1
23
+ # Cloud Runtime Configuration API
24
+ #
25
+ # The Runtime Configurator allows you to dynamically configure and expose
26
+ # variables through Google Cloud Platform. In addition, you can also set
27
+ # Watchers and Waiters that will watch for changes to your data and return based
28
+ # on certain conditions.
29
+ #
30
+ # @example
31
+ # require 'google/apis/runtimeconfig_v1beta1'
32
+ #
33
+ # Runtimeconfig = Google::Apis::RuntimeconfigV1beta1 # Alias the module
34
+ # service = Runtimeconfig::CloudRuntimeConfigService.new
35
+ #
36
+ # @see https://cloud.google.com/deployment-manager/runtime-configurator/
37
+ class CloudRuntimeConfigService < Google::Apis::Core::BaseService
38
+ # @return [String]
39
+ # API key. Your API key identifies your project and provides you with API access,
40
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
+ attr_accessor :key
42
+
43
+ # @return [String]
44
+ # Available to use for quota purposes for server-side applications. Can be any
45
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ attr_accessor :quota_user
47
+
48
+ def initialize
49
+ super('https://runtimeconfig.googleapis.com/', '',
50
+ client_name: 'google-apis-runtimeconfig_v1beta1',
51
+ client_version: Google::Apis::RuntimeconfigV1beta1::GEM_VERSION)
52
+ @batch_path = 'batch'
53
+ end
54
+
55
+ # Creates a new RuntimeConfig resource. The configuration name must be unique
56
+ # within project.
57
+ # @param [String] parent
58
+ # The [project ID](https://support.google.com/cloud/answer/6158840?hl=en&
59
+ # ref_topic=6158848) for this request, in the format `projects/[PROJECT_ID]`.
60
+ # @param [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] runtime_config_object
61
+ # @param [String] request_id
62
+ # An optional but recommended unique `request_id`. If the server receives two `
63
+ # create()` requests with the same `request_id`, then the second request will be
64
+ # ignored and the first resource created and stored in the backend is returned.
65
+ # Empty `request_id` fields are ignored. It is responsibility of the client to
66
+ # ensure uniqueness of the `request_id` strings. `request_id` strings are
67
+ # limited to 64 characters.
68
+ # @param [String] fields
69
+ # Selector specifying which fields to include in a partial response.
70
+ # @param [String] quota_user
71
+ # Available to use for quota purposes for server-side applications. Can be any
72
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
73
+ # @param [Google::Apis::RequestOptions] options
74
+ # Request-specific options
75
+ #
76
+ # @yield [result, err] Result & error if block supplied
77
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] parsed result object
78
+ # @yieldparam err [StandardError] error object if request failed
79
+ #
80
+ # @return [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig]
81
+ #
82
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
83
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
84
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
85
+ def create_project_config(parent, runtime_config_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
86
+ command = make_simple_command(:post, 'v1beta1/{+parent}/configs', options)
87
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
88
+ command.request_object = runtime_config_object
89
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
90
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig
91
+ command.params['parent'] = parent unless parent.nil?
92
+ command.query['requestId'] = request_id unless request_id.nil?
93
+ command.query['fields'] = fields unless fields.nil?
94
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
95
+ execute_or_queue_command(command, &block)
96
+ end
97
+
98
+ # Deletes a RuntimeConfig resource.
99
+ # @param [String] name
100
+ # The RuntimeConfig resource to delete, in the format: `projects/[PROJECT_ID]/
101
+ # configs/[CONFIG_NAME]`
102
+ # @param [String] fields
103
+ # Selector specifying which fields to include in a partial response.
104
+ # @param [String] quota_user
105
+ # Available to use for quota purposes for server-side applications. Can be any
106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
107
+ # @param [Google::Apis::RequestOptions] options
108
+ # Request-specific options
109
+ #
110
+ # @yield [result, err] Result & error if block supplied
111
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Empty] parsed result object
112
+ # @yieldparam err [StandardError] error object if request failed
113
+ #
114
+ # @return [Google::Apis::RuntimeconfigV1beta1::Empty]
115
+ #
116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
119
+ def delete_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
120
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
121
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Empty::Representation
122
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Empty
123
+ command.params['name'] = name unless name.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ # Gets information about a RuntimeConfig resource.
130
+ # @param [String] name
131
+ # The name of the RuntimeConfig resource to retrieve, in the format: `projects/[
132
+ # PROJECT_ID]/configs/[CONFIG_NAME]`
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
152
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
153
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig
154
+ command.params['name'] = name unless name.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
160
+ # Gets the access control policy for a resource. Returns an empty policy if the
161
+ # resource exists and does not have a policy set.
162
+ # @param [String] resource
163
+ # REQUIRED: The resource for which the policy is being requested. See the
164
+ # operation documentation for the appropriate value for this field.
165
+ # @param [Fixnum] options_requested_policy_version
166
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
167
+ # 3. Requests specifying an invalid value will be rejected. Requests for
168
+ # policies with any conditional bindings must specify version 3. Policies
169
+ # without any conditional bindings may specify any valid value or leave the
170
+ # field unset. To learn which resources support conditions in their IAM policies,
171
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
172
+ # resource-policies).
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
175
+ # @param [String] quota_user
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Policy] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::RuntimeconfigV1beta1::Policy]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def get_project_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
192
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Policy::Representation
193
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Policy
194
+ command.params['resource'] = resource unless resource.nil?
195
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ execute_or_queue_command(command, &block)
199
+ end
200
+
201
+ # Lists all the RuntimeConfig resources within project.
202
+ # @param [String] parent
203
+ # The [project ID](https://support.google.com/cloud/answer/6158840?hl=en&
204
+ # ref_topic=6158848) for this request, in the format `projects/[PROJECT_ID]`.
205
+ # @param [Fixnum] page_size
206
+ # Specifies the number of results to return per page. If there are fewer
207
+ # elements than the specified number, returns all elements.
208
+ # @param [String] page_token
209
+ # Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned
210
+ # by a previous list request to get the next page of results.
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
213
+ # @param [String] quota_user
214
+ # Available to use for quota purposes for server-side applications. Can be any
215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::ListConfigsResponse] parsed result object
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [Google::Apis::RuntimeconfigV1beta1::ListConfigsResponse]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def list_project_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
229
+ command = make_simple_command(:get, 'v1beta1/{+parent}/configs', options)
230
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::ListConfigsResponse::Representation
231
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::ListConfigsResponse
232
+ command.params['parent'] = parent unless parent.nil?
233
+ command.query['pageSize'] = page_size unless page_size.nil?
234
+ command.query['pageToken'] = page_token unless page_token.nil?
235
+ command.query['fields'] = fields unless fields.nil?
236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
237
+ execute_or_queue_command(command, &block)
238
+ end
239
+
240
+ # Sets the access control policy on the specified resource. Replaces any
241
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
242
+ # PERMISSION_DENIED` errors.
243
+ # @param [String] resource
244
+ # REQUIRED: The resource for which the policy is being specified. See the
245
+ # operation documentation for the appropriate value for this field.
246
+ # @param [Google::Apis::RuntimeconfigV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Policy] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::RuntimeconfigV1beta1::Policy]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def set_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
266
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::SetIamPolicyRequest::Representation
267
+ command.request_object = set_iam_policy_request_object
268
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Policy::Representation
269
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Policy
270
+ command.params['resource'] = resource unless resource.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Returns permissions that a caller has on the specified resource. If the
277
+ # resource does not exist, this will return an empty set of permissions, not a `
278
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
279
+ # permission-aware UIs and command-line tools, not for authorization checking.
280
+ # This operation may "fail open" without warning.
281
+ # @param [String] resource
282
+ # REQUIRED: The resource for which the policy detail is being requested. See the
283
+ # operation documentation for the appropriate value for this field.
284
+ # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
285
+ # @param [String] fields
286
+ # Selector specifying which fields to include in a partial response.
287
+ # @param [String] quota_user
288
+ # Available to use for quota purposes for server-side applications. Can be any
289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
290
+ # @param [Google::Apis::RequestOptions] options
291
+ # Request-specific options
292
+ #
293
+ # @yield [result, err] Result & error if block supplied
294
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse]
298
+ #
299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
302
+ def test_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
303
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
304
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest::Representation
305
+ command.request_object = test_iam_permissions_request_object
306
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse::Representation
307
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse
308
+ command.params['resource'] = resource unless resource.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
311
+ execute_or_queue_command(command, &block)
312
+ end
313
+
314
+ # Updates a RuntimeConfig resource. The configuration must exist beforehand.
315
+ # @param [String] name
316
+ # The name of the RuntimeConfig resource to update, in the format: `projects/[
317
+ # PROJECT_ID]/configs/[CONFIG_NAME]`
318
+ # @param [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] runtime_config_object
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def update_project_config(name, runtime_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
338
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
339
+ command.request_object = runtime_config_object
340
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig::Representation
341
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::RuntimeConfig
342
+ command.params['name'] = name unless name.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
348
+ # Gets the latest state of a long-running operation. Clients can use this method
349
+ # to poll the operation result at intervals as recommended by the API service.
350
+ # @param [String] name
351
+ # The name of the operation resource.
352
+ # @param [String] fields
353
+ # Selector specifying which fields to include in a partial response.
354
+ # @param [String] quota_user
355
+ # Available to use for quota purposes for server-side applications. Can be any
356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
357
+ # @param [Google::Apis::RequestOptions] options
358
+ # Request-specific options
359
+ #
360
+ # @yield [result, err] Result & error if block supplied
361
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Operation] parsed result object
362
+ # @yieldparam err [StandardError] error object if request failed
363
+ #
364
+ # @return [Google::Apis::RuntimeconfigV1beta1::Operation]
365
+ #
366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
369
+ def get_project_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
370
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
371
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Operation::Representation
372
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Operation
373
+ command.params['name'] = name unless name.nil?
374
+ command.query['fields'] = fields unless fields.nil?
375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
376
+ execute_or_queue_command(command, &block)
377
+ end
378
+
379
+ # Returns permissions that a caller has on the specified resource. If the
380
+ # resource does not exist, this will return an empty set of permissions, not a `
381
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
382
+ # permission-aware UIs and command-line tools, not for authorization checking.
383
+ # This operation may "fail open" without warning.
384
+ # @param [String] resource
385
+ # REQUIRED: The resource for which the policy detail is being requested. See the
386
+ # operation documentation for the appropriate value for this field.
387
+ # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
388
+ # @param [String] fields
389
+ # Selector specifying which fields to include in a partial response.
390
+ # @param [String] quota_user
391
+ # Available to use for quota purposes for server-side applications. Can be any
392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
393
+ # @param [Google::Apis::RequestOptions] options
394
+ # Request-specific options
395
+ #
396
+ # @yield [result, err] Result & error if block supplied
397
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse] parsed result object
398
+ # @yieldparam err [StandardError] error object if request failed
399
+ #
400
+ # @return [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse]
401
+ #
402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
405
+ def test_operation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
406
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
407
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest::Representation
408
+ command.request_object = test_iam_permissions_request_object
409
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse::Representation
410
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse
411
+ command.params['resource'] = resource unless resource.nil?
412
+ command.query['fields'] = fields unless fields.nil?
413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
+ execute_or_queue_command(command, &block)
415
+ end
416
+
417
+ # Creates a variable within the given configuration. You cannot create a
418
+ # variable with a name that is a prefix of an existing variable name, or a name
419
+ # that has an existing variable name as a prefix. To learn more about creating a
420
+ # variable, read the [Setting and Getting Data](/deployment-manager/runtime-
421
+ # configurator/set-and-get-variables) documentation.
422
+ # @param [String] parent
423
+ # The path to the RutimeConfig resource that this variable should belong to. The
424
+ # configuration must exist beforehand; the path must be in the format: `projects/
425
+ # [PROJECT_ID]/configs/[CONFIG_NAME]`
426
+ # @param [Google::Apis::RuntimeconfigV1beta1::Variable] variable_object
427
+ # @param [String] request_id
428
+ # An optional but recommended unique `request_id`. If the server receives two `
429
+ # create()` requests with the same `request_id`, then the second request will be
430
+ # ignored and the first resource created and stored in the backend is returned.
431
+ # Empty `request_id` fields are ignored. It is responsibility of the client to
432
+ # ensure uniqueness of the `request_id` strings. `request_id` strings are
433
+ # limited to 64 characters.
434
+ # @param [String] fields
435
+ # Selector specifying which fields to include in a partial response.
436
+ # @param [String] quota_user
437
+ # Available to use for quota purposes for server-side applications. Can be any
438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
439
+ # @param [Google::Apis::RequestOptions] options
440
+ # Request-specific options
441
+ #
442
+ # @yield [result, err] Result & error if block supplied
443
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Variable] parsed result object
444
+ # @yieldparam err [StandardError] error object if request failed
445
+ #
446
+ # @return [Google::Apis::RuntimeconfigV1beta1::Variable]
447
+ #
448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
451
+ def create_project_config_variable(parent, variable_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
452
+ command = make_simple_command(:post, 'v1beta1/{+parent}/variables', options)
453
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
454
+ command.request_object = variable_object
455
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
456
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Variable
457
+ command.params['parent'] = parent unless parent.nil?
458
+ command.query['requestId'] = request_id unless request_id.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Deletes a variable or multiple variables. If you specify a variable name, then
465
+ # that variable is deleted. If you specify a prefix and `recursive` is true,
466
+ # then all variables with that prefix are deleted. You must set a `recursive` to
467
+ # true if you delete variables by prefix.
468
+ # @param [String] name
469
+ # The name of the variable to delete, in the format: `projects/[PROJECT_ID]/
470
+ # configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
471
+ # @param [Boolean] recursive
472
+ # Set to `true` to recursively delete multiple variables with the same prefix.
473
+ # @param [String] fields
474
+ # Selector specifying which fields to include in a partial response.
475
+ # @param [String] quota_user
476
+ # Available to use for quota purposes for server-side applications. Can be any
477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
478
+ # @param [Google::Apis::RequestOptions] options
479
+ # Request-specific options
480
+ #
481
+ # @yield [result, err] Result & error if block supplied
482
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Empty] parsed result object
483
+ # @yieldparam err [StandardError] error object if request failed
484
+ #
485
+ # @return [Google::Apis::RuntimeconfigV1beta1::Empty]
486
+ #
487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
490
+ def delete_project_config_variable(name, recursive: nil, fields: nil, quota_user: nil, options: nil, &block)
491
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
492
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Empty::Representation
493
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Empty
494
+ command.params['name'] = name unless name.nil?
495
+ command.query['recursive'] = recursive unless recursive.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
501
+ # Gets information about a single variable.
502
+ # @param [String] name
503
+ # The name of the variable to return, in the format: `projects/[PROJECT_ID]/
504
+ # configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
507
+ # @param [String] quota_user
508
+ # Available to use for quota purposes for server-side applications. Can be any
509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Variable] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::RuntimeconfigV1beta1::Variable]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def get_project_config_variable(name, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
524
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
525
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Variable
526
+ command.params['name'] = name unless name.nil?
527
+ command.query['fields'] = fields unless fields.nil?
528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
529
+ execute_or_queue_command(command, &block)
530
+ end
531
+
532
+ # Lists variables within given a configuration, matching any provided filters.
533
+ # This only lists variable names, not the values, unless `return_values` is true,
534
+ # in which case only variables that user has IAM permission to GetVariable will
535
+ # be returned.
536
+ # @param [String] parent
537
+ # The path to the RuntimeConfig resource for which you want to list variables.
538
+ # The configuration must exist beforehand; the path must be in the format: `
539
+ # projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
540
+ # @param [String] filter
541
+ # Filters variables by matching the specified filter. For example: `projects/
542
+ # example-project/config/[CONFIG_NAME]/variables/example-variable`.
543
+ # @param [Fixnum] page_size
544
+ # Specifies the number of results to return per page. If there are fewer
545
+ # elements than the specified number, returns all elements.
546
+ # @param [String] page_token
547
+ # Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned
548
+ # by a previous list request to get the next page of results.
549
+ # @param [Boolean] return_values
550
+ # The flag indicates whether the user wants to return values of variables. If
551
+ # true, then only those variables that user has IAM GetVariable permission will
552
+ # be returned along with their values.
553
+ # @param [String] fields
554
+ # Selector specifying which fields to include in a partial response.
555
+ # @param [String] quota_user
556
+ # Available to use for quota purposes for server-side applications. Can be any
557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
558
+ # @param [Google::Apis::RequestOptions] options
559
+ # Request-specific options
560
+ #
561
+ # @yield [result, err] Result & error if block supplied
562
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::ListVariablesResponse] parsed result object
563
+ # @yieldparam err [StandardError] error object if request failed
564
+ #
565
+ # @return [Google::Apis::RuntimeconfigV1beta1::ListVariablesResponse]
566
+ #
567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
570
+ def list_project_config_variables(parent, filter: nil, page_size: nil, page_token: nil, return_values: nil, fields: nil, quota_user: nil, options: nil, &block)
571
+ command = make_simple_command(:get, 'v1beta1/{+parent}/variables', options)
572
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::ListVariablesResponse::Representation
573
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::ListVariablesResponse
574
+ command.params['parent'] = parent unless parent.nil?
575
+ command.query['filter'] = filter unless filter.nil?
576
+ command.query['pageSize'] = page_size unless page_size.nil?
577
+ command.query['pageToken'] = page_token unless page_token.nil?
578
+ command.query['returnValues'] = return_values unless return_values.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
584
+ # Returns permissions that a caller has on the specified resource. If the
585
+ # resource does not exist, this will return an empty set of permissions, not a `
586
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
587
+ # permission-aware UIs and command-line tools, not for authorization checking.
588
+ # This operation may "fail open" without warning.
589
+ # @param [String] resource
590
+ # REQUIRED: The resource for which the policy detail is being requested. See the
591
+ # operation documentation for the appropriate value for this field.
592
+ # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
+ # @param [String] quota_user
596
+ # Available to use for quota purposes for server-side applications. Can be any
597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
598
+ # @param [Google::Apis::RequestOptions] options
599
+ # Request-specific options
600
+ #
601
+ # @yield [result, err] Result & error if block supplied
602
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse] parsed result object
603
+ # @yieldparam err [StandardError] error object if request failed
604
+ #
605
+ # @return [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse]
606
+ #
607
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
610
+ def test_variable_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
611
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
612
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest::Representation
613
+ command.request_object = test_iam_permissions_request_object
614
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse::Representation
615
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse
616
+ command.params['resource'] = resource unless resource.nil?
617
+ command.query['fields'] = fields unless fields.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
619
+ execute_or_queue_command(command, &block)
620
+ end
621
+
622
+ # Updates an existing variable with a new value.
623
+ # @param [String] name
624
+ # The name of the variable to update, in the format: `projects/[PROJECT_ID]/
625
+ # configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
626
+ # @param [Google::Apis::RuntimeconfigV1beta1::Variable] variable_object
627
+ # @param [String] fields
628
+ # Selector specifying which fields to include in a partial response.
629
+ # @param [String] quota_user
630
+ # Available to use for quota purposes for server-side applications. Can be any
631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Variable] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::RuntimeconfigV1beta1::Variable]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def update_project_config_variable(name, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
646
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
647
+ command.request_object = variable_object
648
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
649
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Variable
650
+ command.params['name'] = name unless name.nil?
651
+ command.query['fields'] = fields unless fields.nil?
652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
656
+ # Watches a specific variable and waits for a change in the variable's value.
657
+ # When there is a change, this method returns the new value or times out. If a
658
+ # variable is deleted while being watched, the `variableState` state is set to `
659
+ # DELETED` and the method returns the last known variable `value`. If you set
660
+ # the deadline for watching to a larger value than internal timeout (60 seconds),
661
+ # the current variable value is returned and the `variableState` will be `
662
+ # VARIABLE_STATE_UNSPECIFIED`. To learn more about creating a watcher, read the [
663
+ # Watching a Variable for Changes](/deployment-manager/runtime-configurator/
664
+ # watching-a-variable) documentation.
665
+ # @param [String] name
666
+ # The name of the variable to watch, in the format: `projects/[PROJECT_ID]/
667
+ # configs/[CONFIG_NAME]`
668
+ # @param [Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest] watch_variable_request_object
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [String] quota_user
672
+ # Available to use for quota purposes for server-side applications. Can be any
673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
674
+ # @param [Google::Apis::RequestOptions] options
675
+ # Request-specific options
676
+ #
677
+ # @yield [result, err] Result & error if block supplied
678
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Variable] parsed result object
679
+ # @yieldparam err [StandardError] error object if request failed
680
+ #
681
+ # @return [Google::Apis::RuntimeconfigV1beta1::Variable]
682
+ #
683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
686
+ def watch_variable(name, watch_variable_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:post, 'v1beta1/{+name}:watch', options)
688
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest::Representation
689
+ command.request_object = watch_variable_request_object
690
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Variable::Representation
691
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Variable
692
+ command.params['name'] = name unless name.nil?
693
+ command.query['fields'] = fields unless fields.nil?
694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
695
+ execute_or_queue_command(command, &block)
696
+ end
697
+
698
+ # Creates a Waiter resource. This operation returns a long-running Operation
699
+ # resource which can be polled for completion. However, a waiter with the given
700
+ # name will exist (and can be retrieved) prior to the operation completing. If
701
+ # the operation fails, the failed Waiter resource will still exist and must be
702
+ # deleted prior to subsequent creation attempts.
703
+ # @param [String] parent
704
+ # The path to the configuration that will own the waiter. The configuration must
705
+ # exist beforehand; the path must be in the format: `projects/[PROJECT_ID]/
706
+ # configs/[CONFIG_NAME]`.
707
+ # @param [Google::Apis::RuntimeconfigV1beta1::Waiter] waiter_object
708
+ # @param [String] request_id
709
+ # An optional but recommended unique `request_id`. If the server receives two `
710
+ # create()` requests with the same `request_id`, then the second request will be
711
+ # ignored and the first resource created and stored in the backend is returned.
712
+ # Empty `request_id` fields are ignored. It is responsibility of the client to
713
+ # ensure uniqueness of the `request_id` strings. `request_id` strings are
714
+ # limited to 64 characters.
715
+ # @param [String] fields
716
+ # Selector specifying which fields to include in a partial response.
717
+ # @param [String] quota_user
718
+ # Available to use for quota purposes for server-side applications. Can be any
719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
720
+ # @param [Google::Apis::RequestOptions] options
721
+ # Request-specific options
722
+ #
723
+ # @yield [result, err] Result & error if block supplied
724
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Operation] parsed result object
725
+ # @yieldparam err [StandardError] error object if request failed
726
+ #
727
+ # @return [Google::Apis::RuntimeconfigV1beta1::Operation]
728
+ #
729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
732
+ def create_project_config_waiter(parent, waiter_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
733
+ command = make_simple_command(:post, 'v1beta1/{+parent}/waiters', options)
734
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::Waiter::Representation
735
+ command.request_object = waiter_object
736
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Operation::Representation
737
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Operation
738
+ command.params['parent'] = parent unless parent.nil?
739
+ command.query['requestId'] = request_id unless request_id.nil?
740
+ command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
742
+ execute_or_queue_command(command, &block)
743
+ end
744
+
745
+ # Deletes the waiter with the specified name.
746
+ # @param [String] name
747
+ # The Waiter resource to delete, in the format: `projects/[PROJECT_ID]/configs/[
748
+ # CONFIG_NAME]/waiters/[WAITER_NAME]`
749
+ # @param [String] fields
750
+ # Selector specifying which fields to include in a partial response.
751
+ # @param [String] quota_user
752
+ # Available to use for quota purposes for server-side applications. Can be any
753
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
754
+ # @param [Google::Apis::RequestOptions] options
755
+ # Request-specific options
756
+ #
757
+ # @yield [result, err] Result & error if block supplied
758
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Empty] parsed result object
759
+ # @yieldparam err [StandardError] error object if request failed
760
+ #
761
+ # @return [Google::Apis::RuntimeconfigV1beta1::Empty]
762
+ #
763
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
764
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
765
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
766
+ def delete_project_config_waiter(name, fields: nil, quota_user: nil, options: nil, &block)
767
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
768
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Empty::Representation
769
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Empty
770
+ command.params['name'] = name unless name.nil?
771
+ command.query['fields'] = fields unless fields.nil?
772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
773
+ execute_or_queue_command(command, &block)
774
+ end
775
+
776
+ # Gets information about a single waiter.
777
+ # @param [String] name
778
+ # The fully-qualified name of the Waiter resource object to retrieve, in the
779
+ # format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
780
+ # @param [String] fields
781
+ # Selector specifying which fields to include in a partial response.
782
+ # @param [String] quota_user
783
+ # Available to use for quota purposes for server-side applications. Can be any
784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
785
+ # @param [Google::Apis::RequestOptions] options
786
+ # Request-specific options
787
+ #
788
+ # @yield [result, err] Result & error if block supplied
789
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::Waiter] parsed result object
790
+ # @yieldparam err [StandardError] error object if request failed
791
+ #
792
+ # @return [Google::Apis::RuntimeconfigV1beta1::Waiter]
793
+ #
794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
797
+ def get_project_config_waiter(name, fields: nil, quota_user: nil, options: nil, &block)
798
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
799
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::Waiter::Representation
800
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::Waiter
801
+ command.params['name'] = name unless name.nil?
802
+ command.query['fields'] = fields unless fields.nil?
803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
804
+ execute_or_queue_command(command, &block)
805
+ end
806
+
807
+ # List waiters within the given configuration.
808
+ # @param [String] parent
809
+ # The path to the configuration for which you want to get a list of waiters. The
810
+ # configuration must exist beforehand; the path must be in the format: `projects/
811
+ # [PROJECT_ID]/configs/[CONFIG_NAME]`
812
+ # @param [Fixnum] page_size
813
+ # Specifies the number of results to return per page. If there are fewer
814
+ # elements than the specified number, returns all elements.
815
+ # @param [String] page_token
816
+ # Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned
817
+ # by a previous list request to get the next page of results.
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::ListWaitersResponse] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::RuntimeconfigV1beta1::ListWaitersResponse]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def list_project_config_waiters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:get, 'v1beta1/{+parent}/waiters', options)
837
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::ListWaitersResponse::Representation
838
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::ListWaitersResponse
839
+ command.params['parent'] = parent unless parent.nil?
840
+ command.query['pageSize'] = page_size unless page_size.nil?
841
+ command.query['pageToken'] = page_token unless page_token.nil?
842
+ command.query['fields'] = fields unless fields.nil?
843
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
844
+ execute_or_queue_command(command, &block)
845
+ end
846
+
847
+ # Returns permissions that a caller has on the specified resource. If the
848
+ # resource does not exist, this will return an empty set of permissions, not a `
849
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
850
+ # permission-aware UIs and command-line tools, not for authorization checking.
851
+ # This operation may "fail open" without warning.
852
+ # @param [String] resource
853
+ # REQUIRED: The resource for which the policy detail is being requested. See the
854
+ # operation documentation for the appropriate value for this field.
855
+ # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
856
+ # @param [String] fields
857
+ # Selector specifying which fields to include in a partial response.
858
+ # @param [String] quota_user
859
+ # Available to use for quota purposes for server-side applications. Can be any
860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def test_waiter_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
874
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
875
+ command.request_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest::Representation
876
+ command.request_object = test_iam_permissions_request_object
877
+ command.response_representation = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse::Representation
878
+ command.response_class = Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsResponse
879
+ command.params['resource'] = resource unless resource.nil?
880
+ command.query['fields'] = fields unless fields.nil?
881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
882
+ execute_or_queue_command(command, &block)
883
+ end
884
+
885
+ protected
886
+
887
+ def apply_command_defaults(command)
888
+ command.query['key'] = key unless key.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ end
891
+ end
892
+ end
893
+ end
894
+ end