google-apis-appengine_v1beta4 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-appengine_v1beta4.rb +15 -0
- data/lib/google/apis/appengine_v1beta4.rb +42 -0
- data/lib/google/apis/appengine_v1beta4/classes.rb +2284 -0
- data/lib/google/apis/appengine_v1beta4/gem_version.rb +28 -0
- data/lib/google/apis/appengine_v1beta4/representations.rb +872 -0
- data/lib/google/apis/appengine_v1beta4/service.rb +877 -0
- metadata +76 -0
@@ -0,0 +1,877 @@
|
|
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 AppengineV1beta4
|
23
|
+
# App Engine Admin API
|
24
|
+
#
|
25
|
+
# Provisions and manages developers' App Engine applications.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/appengine_v1beta4'
|
29
|
+
#
|
30
|
+
# Appengine = Google::Apis::AppengineV1beta4 # Alias the module
|
31
|
+
# service = Appengine::AppengineService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/appengine/docs/admin-api/
|
34
|
+
class AppengineService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://appengine.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-appengine_v1beta4',
|
48
|
+
client_version: Google::Apis::AppengineV1beta4::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Creates an App Engine application for a Google Cloud Platform project.
|
53
|
+
# Required fields:
|
54
|
+
# id - The ID of the target Cloud Platform project.
|
55
|
+
# location - The region (https://cloud.google.com/appengine/docs/locations)
|
56
|
+
# where you want the App Engine application located.For more information about
|
57
|
+
# App Engine applications, see Managing Projects, Applications, and Billing (
|
58
|
+
# https://cloud.google.com/appengine/docs/python/console/).
|
59
|
+
# @param [Google::Apis::AppengineV1beta4::Application] application_object
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
66
|
+
# Request-specific options
|
67
|
+
#
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
69
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
71
|
+
#
|
72
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
73
|
+
#
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
+
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:post, 'v1beta4/apps', options)
|
79
|
+
command.request_representation = Google::Apis::AppengineV1beta4::Application::Representation
|
80
|
+
command.request_object = application_object
|
81
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
82
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Gets information about an application.
|
89
|
+
# @param [String] apps_id
|
90
|
+
# Part of `name`. Name of the application to get. Example: apps/myapp.
|
91
|
+
# @param [Boolean] ensure_resources_exist
|
92
|
+
# Certain resources associated with an application are created on-demand.
|
93
|
+
# Controls whether these resources should be created when performing the GET
|
94
|
+
# operation. If specified and any resources could not be created, the request
|
95
|
+
# will fail with an error code. Additionally, this parameter can cause the
|
96
|
+
# request to take longer to complete.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Application] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::AppengineV1beta4::Application]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def get_app(apps_id, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}', options)
|
116
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Application::Representation
|
117
|
+
command.response_class = Google::Apis::AppengineV1beta4::Application
|
118
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
119
|
+
command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Updates the specified Application resource. You can update the following
|
126
|
+
# fields:
|
127
|
+
# auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/
|
128
|
+
# v1beta4/apps#Application.FIELDS.auth_domain)
|
129
|
+
# default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/
|
130
|
+
# reference/rest/v1beta4/apps#Application.FIELDS.default_cookie_expiration)
|
131
|
+
# @param [String] apps_id
|
132
|
+
# Part of `name`. Name of the Application resource to update. Example: apps/
|
133
|
+
# myapp.
|
134
|
+
# @param [Google::Apis::AppengineV1beta4::Application] application_object
|
135
|
+
# @param [String] mask
|
136
|
+
# Standard field mask for the set of fields to be updated.
|
137
|
+
# @param [String] fields
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
139
|
+
# @param [String] quota_user
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
142
|
+
# @param [Google::Apis::RequestOptions] options
|
143
|
+
# Request-specific options
|
144
|
+
#
|
145
|
+
# @yield [result, err] Result & error if block supplied
|
146
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
147
|
+
# @yieldparam err [StandardError] error object if request failed
|
148
|
+
#
|
149
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
150
|
+
#
|
151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
154
|
+
def patch_app(apps_id, application_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
155
|
+
command = make_simple_command(:patch, 'v1beta4/apps/{appsId}', options)
|
156
|
+
command.request_representation = Google::Apis::AppengineV1beta4::Application::Representation
|
157
|
+
command.request_object = application_object
|
158
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
159
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
160
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
161
|
+
command.query['mask'] = mask unless mask.nil?
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
+
execute_or_queue_command(command, &block)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Gets information about a location.
|
168
|
+
# @param [String] apps_id
|
169
|
+
# Part of `name`. Resource name for the location.
|
170
|
+
# @param [String] locations_id
|
171
|
+
# Part of `name`. See documentation of `appsId`.
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
174
|
+
# @param [String] quota_user
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
178
|
+
# Request-specific options
|
179
|
+
#
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
181
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Location] parsed result object
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
183
|
+
#
|
184
|
+
# @return [Google::Apis::AppengineV1beta4::Location]
|
185
|
+
#
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
189
|
+
def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
|
190
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/locations/{locationsId}', options)
|
191
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Location::Representation
|
192
|
+
command.response_class = Google::Apis::AppengineV1beta4::Location
|
193
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
194
|
+
command.params['locationsId'] = locations_id unless locations_id.nil?
|
195
|
+
command.query['fields'] = fields unless fields.nil?
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
197
|
+
execute_or_queue_command(command, &block)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Lists information about the supported locations for this service.
|
201
|
+
# @param [String] apps_id
|
202
|
+
# Part of `name`. The resource that owns the locations collection, if applicable.
|
203
|
+
# @param [String] filter
|
204
|
+
# The standard list filter.
|
205
|
+
# @param [Fixnum] page_size
|
206
|
+
# The standard list page size.
|
207
|
+
# @param [String] page_token
|
208
|
+
# The standard list page token.
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::ListLocationsResponse] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::AppengineV1beta4::ListLocationsResponse]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/locations', options)
|
228
|
+
command.response_representation = Google::Apis::AppengineV1beta4::ListLocationsResponse::Representation
|
229
|
+
command.response_class = Google::Apis::AppengineV1beta4::ListLocationsResponse
|
230
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
231
|
+
command.query['filter'] = filter unless filter.nil?
|
232
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
233
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
234
|
+
command.query['fields'] = fields unless fields.nil?
|
235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
|
+
execute_or_queue_command(command, &block)
|
237
|
+
end
|
238
|
+
|
239
|
+
# Deletes the specified module and all enclosed versions.
|
240
|
+
# @param [String] apps_id
|
241
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
242
|
+
# default.
|
243
|
+
# @param [String] modules_id
|
244
|
+
# Part of `name`. See documentation of `appsId`.
|
245
|
+
# @param [String] fields
|
246
|
+
# Selector specifying which fields to include in a partial response.
|
247
|
+
# @param [String] quota_user
|
248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
250
|
+
# @param [Google::Apis::RequestOptions] options
|
251
|
+
# Request-specific options
|
252
|
+
#
|
253
|
+
# @yield [result, err] Result & error if block supplied
|
254
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
255
|
+
# @yieldparam err [StandardError] error object if request failed
|
256
|
+
#
|
257
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
258
|
+
#
|
259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
262
|
+
def delete_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
|
263
|
+
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
264
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
265
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
266
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
267
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Gets the current configuration of the specified module.
|
274
|
+
# @param [String] apps_id
|
275
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
276
|
+
# default.
|
277
|
+
# @param [String] modules_id
|
278
|
+
# Part of `name`. See documentation of `appsId`.
|
279
|
+
# @param [String] fields
|
280
|
+
# Selector specifying which fields to include in a partial response.
|
281
|
+
# @param [String] quota_user
|
282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
284
|
+
# @param [Google::Apis::RequestOptions] options
|
285
|
+
# Request-specific options
|
286
|
+
#
|
287
|
+
# @yield [result, err] Result & error if block supplied
|
288
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Module] parsed result object
|
289
|
+
# @yieldparam err [StandardError] error object if request failed
|
290
|
+
#
|
291
|
+
# @return [Google::Apis::AppengineV1beta4::Module]
|
292
|
+
#
|
293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
296
|
+
def get_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
|
297
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
298
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Module::Representation
|
299
|
+
command.response_class = Google::Apis::AppengineV1beta4::Module
|
300
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
301
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
302
|
+
command.query['fields'] = fields unless fields.nil?
|
303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
|
+
execute_or_queue_command(command, &block)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Lists all the modules in the application.
|
308
|
+
# @param [String] apps_id
|
309
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp.
|
310
|
+
# @param [Fixnum] page_size
|
311
|
+
# Maximum results to return per page.
|
312
|
+
# @param [String] page_token
|
313
|
+
# Continuation token for fetching the next page of results.
|
314
|
+
# @param [String] fields
|
315
|
+
# Selector specifying which fields to include in a partial response.
|
316
|
+
# @param [String] quota_user
|
317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
319
|
+
# @param [Google::Apis::RequestOptions] options
|
320
|
+
# Request-specific options
|
321
|
+
#
|
322
|
+
# @yield [result, err] Result & error if block supplied
|
323
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::ListModulesResponse] parsed result object
|
324
|
+
# @yieldparam err [StandardError] error object if request failed
|
325
|
+
#
|
326
|
+
# @return [Google::Apis::AppengineV1beta4::ListModulesResponse]
|
327
|
+
#
|
328
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
329
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
330
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
331
|
+
def list_app_modules(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
332
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules', options)
|
333
|
+
command.response_representation = Google::Apis::AppengineV1beta4::ListModulesResponse::Representation
|
334
|
+
command.response_class = Google::Apis::AppengineV1beta4::ListModulesResponse
|
335
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
336
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
337
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
338
|
+
command.query['fields'] = fields unless fields.nil?
|
339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
+
execute_or_queue_command(command, &block)
|
341
|
+
end
|
342
|
+
|
343
|
+
# Updates the configuration of the specified module.
|
344
|
+
# @param [String] apps_id
|
345
|
+
# Part of `name`. Name of the resource to update. Example: apps/myapp/modules/
|
346
|
+
# default.
|
347
|
+
# @param [String] modules_id
|
348
|
+
# Part of `name`. See documentation of `appsId`.
|
349
|
+
# @param [Google::Apis::AppengineV1beta4::Module] module_object
|
350
|
+
# @param [String] mask
|
351
|
+
# Standard field mask for the set of fields to be updated.
|
352
|
+
# @param [Boolean] migrate_traffic
|
353
|
+
# Set to true to gradually shift traffic to one or more versions that you
|
354
|
+
# specify. By default, traffic is shifted immediately. For gradual traffic
|
355
|
+
# migration, the target versions must be located within instances that are
|
356
|
+
# configured for both warmup requests (https://cloud.google.com/appengine/docs/
|
357
|
+
# admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) and
|
358
|
+
# automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/
|
359
|
+
# rest/v1beta4/apps.modules.versions#automaticscaling). You must specify the
|
360
|
+
# shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/
|
361
|
+
# v1beta4/apps.modules#shardby) field in the Module resource. Gradual traffic
|
362
|
+
# migration is not supported in the App Engine flexible environment. For
|
363
|
+
# examples, see Migrating and Splitting Traffic (https://cloud.google.com/
|
364
|
+
# appengine/docs/admin-api/migrating-splitting-traffic).
|
365
|
+
# @param [String] fields
|
366
|
+
# Selector specifying which fields to include in a partial response.
|
367
|
+
# @param [String] quota_user
|
368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [Google::Apis::RequestOptions] options
|
371
|
+
# Request-specific options
|
372
|
+
#
|
373
|
+
# @yield [result, err] Result & error if block supplied
|
374
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
375
|
+
# @yieldparam err [StandardError] error object if request failed
|
376
|
+
#
|
377
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
378
|
+
#
|
379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
+
def patch_app_module(apps_id, modules_id, module_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
command = make_simple_command(:patch, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
384
|
+
command.request_representation = Google::Apis::AppengineV1beta4::Module::Representation
|
385
|
+
command.request_object = module_object
|
386
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
387
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
388
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
389
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
390
|
+
command.query['mask'] = mask unless mask.nil?
|
391
|
+
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
397
|
+
# Deploys code and resource files to a new version.
|
398
|
+
# @param [String] apps_id
|
399
|
+
# Part of `name`. Name of the resource to update. Example: apps/myapp/modules/
|
400
|
+
# default.
|
401
|
+
# @param [String] modules_id
|
402
|
+
# Part of `name`. See documentation of `appsId`.
|
403
|
+
# @param [Google::Apis::AppengineV1beta4::Version] version_object
|
404
|
+
# @param [String] fields
|
405
|
+
# Selector specifying which fields to include in a partial response.
|
406
|
+
# @param [String] quota_user
|
407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
409
|
+
# @param [Google::Apis::RequestOptions] options
|
410
|
+
# Request-specific options
|
411
|
+
#
|
412
|
+
# @yield [result, err] Result & error if block supplied
|
413
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
414
|
+
# @yieldparam err [StandardError] error object if request failed
|
415
|
+
#
|
416
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
417
|
+
#
|
418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
+
def create_app_module_version(apps_id, modules_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
422
|
+
command = make_simple_command(:post, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
|
423
|
+
command.request_representation = Google::Apis::AppengineV1beta4::Version::Representation
|
424
|
+
command.request_object = version_object
|
425
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
426
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
427
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
428
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
429
|
+
command.query['fields'] = fields unless fields.nil?
|
430
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
431
|
+
execute_or_queue_command(command, &block)
|
432
|
+
end
|
433
|
+
|
434
|
+
# Deletes an existing version.
|
435
|
+
# @param [String] apps_id
|
436
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
437
|
+
# default/versions/v1.
|
438
|
+
# @param [String] modules_id
|
439
|
+
# Part of `name`. See documentation of `appsId`.
|
440
|
+
# @param [String] versions_id
|
441
|
+
# Part of `name`. See documentation of `appsId`.
|
442
|
+
# @param [String] fields
|
443
|
+
# Selector specifying which fields to include in a partial response.
|
444
|
+
# @param [String] quota_user
|
445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
447
|
+
# @param [Google::Apis::RequestOptions] options
|
448
|
+
# Request-specific options
|
449
|
+
#
|
450
|
+
# @yield [result, err] Result & error if block supplied
|
451
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
452
|
+
# @yieldparam err [StandardError] error object if request failed
|
453
|
+
#
|
454
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
455
|
+
#
|
456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
459
|
+
def delete_app_module_version(apps_id, modules_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
+
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
|
461
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
462
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
463
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
464
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
465
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
466
|
+
command.query['fields'] = fields unless fields.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
execute_or_queue_command(command, &block)
|
469
|
+
end
|
470
|
+
|
471
|
+
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
|
472
|
+
# returned. Specify the FULL_VIEW parameter to get the full resource.
|
473
|
+
# @param [String] apps_id
|
474
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
475
|
+
# default/versions/v1.
|
476
|
+
# @param [String] modules_id
|
477
|
+
# Part of `name`. See documentation of `appsId`.
|
478
|
+
# @param [String] versions_id
|
479
|
+
# Part of `name`. See documentation of `appsId`.
|
480
|
+
# @param [String] view
|
481
|
+
# Controls the set of fields returned in the Get response.
|
482
|
+
# @param [String] fields
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
484
|
+
# @param [String] quota_user
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
488
|
+
# Request-specific options
|
489
|
+
#
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
491
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Version] parsed result object
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
493
|
+
#
|
494
|
+
# @return [Google::Apis::AppengineV1beta4::Version]
|
495
|
+
#
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
499
|
+
def get_app_module_version(apps_id, modules_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
500
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
|
501
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Version::Representation
|
502
|
+
command.response_class = Google::Apis::AppengineV1beta4::Version
|
503
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
504
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
505
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
506
|
+
command.query['view'] = view unless view.nil?
|
507
|
+
command.query['fields'] = fields unless fields.nil?
|
508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
509
|
+
execute_or_queue_command(command, &block)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Lists the versions of a module.
|
513
|
+
# @param [String] apps_id
|
514
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
515
|
+
# default.
|
516
|
+
# @param [String] modules_id
|
517
|
+
# Part of `name`. See documentation of `appsId`.
|
518
|
+
# @param [Fixnum] page_size
|
519
|
+
# Maximum results to return per page.
|
520
|
+
# @param [String] page_token
|
521
|
+
# Continuation token for fetching the next page of results.
|
522
|
+
# @param [String] view
|
523
|
+
# Controls the set of fields returned in the List response.
|
524
|
+
# @param [String] fields
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
526
|
+
# @param [String] quota_user
|
527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
529
|
+
# @param [Google::Apis::RequestOptions] options
|
530
|
+
# Request-specific options
|
531
|
+
#
|
532
|
+
# @yield [result, err] Result & error if block supplied
|
533
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::ListVersionsResponse] parsed result object
|
534
|
+
# @yieldparam err [StandardError] error object if request failed
|
535
|
+
#
|
536
|
+
# @return [Google::Apis::AppengineV1beta4::ListVersionsResponse]
|
537
|
+
#
|
538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
+
def list_app_module_versions(apps_id, modules_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
542
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
|
543
|
+
command.response_representation = Google::Apis::AppengineV1beta4::ListVersionsResponse::Representation
|
544
|
+
command.response_class = Google::Apis::AppengineV1beta4::ListVersionsResponse
|
545
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
546
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
547
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
548
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
549
|
+
command.query['view'] = view unless view.nil?
|
550
|
+
command.query['fields'] = fields unless fields.nil?
|
551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
552
|
+
execute_or_queue_command(command, &block)
|
553
|
+
end
|
554
|
+
|
555
|
+
# Updates the specified Version resource. You can specify the following fields
|
556
|
+
# depending on the App Engine environment and type of scaling that the version
|
557
|
+
# resource uses:
|
558
|
+
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
|
559
|
+
# rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): For
|
560
|
+
# Version resources that use basic scaling, manual scaling, or run in the App
|
561
|
+
# Engine flexible environment.
|
562
|
+
# instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/
|
563
|
+
# rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): For
|
564
|
+
# Version resources that run in the App Engine standard environment.
|
565
|
+
# automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/
|
566
|
+
# admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.
|
567
|
+
# automatic_scaling): For Version resources that use automatic scaling and run
|
568
|
+
# in the App Engine standard environment.
|
569
|
+
# automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/
|
570
|
+
# admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.
|
571
|
+
# automatic_scaling): For Version resources that use automatic scaling and run
|
572
|
+
# in the App Engine standard environment.
|
573
|
+
# @param [String] apps_id
|
574
|
+
# Part of `name`. Name of the resource to update. Example: apps/myapp/modules/
|
575
|
+
# default/versions/1.
|
576
|
+
# @param [String] modules_id
|
577
|
+
# Part of `name`. See documentation of `appsId`.
|
578
|
+
# @param [String] versions_id
|
579
|
+
# Part of `name`. See documentation of `appsId`.
|
580
|
+
# @param [Google::Apis::AppengineV1beta4::Version] version_object
|
581
|
+
# @param [String] mask
|
582
|
+
# Standard field mask for the set of fields to be updated.
|
583
|
+
# @param [String] fields
|
584
|
+
# Selector specifying which fields to include in a partial response.
|
585
|
+
# @param [String] quota_user
|
586
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
587
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
588
|
+
# @param [Google::Apis::RequestOptions] options
|
589
|
+
# Request-specific options
|
590
|
+
#
|
591
|
+
# @yield [result, err] Result & error if block supplied
|
592
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
593
|
+
# @yieldparam err [StandardError] error object if request failed
|
594
|
+
#
|
595
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
596
|
+
#
|
597
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
598
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
599
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
600
|
+
def patch_app_module_version(apps_id, modules_id, versions_id, version_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
601
|
+
command = make_simple_command(:patch, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
|
602
|
+
command.request_representation = Google::Apis::AppengineV1beta4::Version::Representation
|
603
|
+
command.request_object = version_object
|
604
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
605
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
606
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
607
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
608
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
609
|
+
command.query['mask'] = mask unless mask.nil?
|
610
|
+
command.query['fields'] = fields unless fields.nil?
|
611
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
612
|
+
execute_or_queue_command(command, &block)
|
613
|
+
end
|
614
|
+
|
615
|
+
# Enables debugging on a VM instance. This allows you to use the SSH command to
|
616
|
+
# connect to the virtual machine where the instance lives. While in "debug mode",
|
617
|
+
# the instance continues to serve live traffic. You should delete the instance
|
618
|
+
# when you are done debugging and then allow the system to take over and
|
619
|
+
# determine if another instance should be started.Only applicable for instances
|
620
|
+
# in App Engine flexible environment.
|
621
|
+
# @param [String] apps_id
|
622
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
623
|
+
# default/versions/v1/instances/instance-1.
|
624
|
+
# @param [String] modules_id
|
625
|
+
# Part of `name`. See documentation of `appsId`.
|
626
|
+
# @param [String] versions_id
|
627
|
+
# Part of `name`. See documentation of `appsId`.
|
628
|
+
# @param [String] instances_id
|
629
|
+
# Part of `name`. See documentation of `appsId`.
|
630
|
+
# @param [Google::Apis::AppengineV1beta4::DebugInstanceRequest] debug_instance_request_object
|
631
|
+
# @param [String] fields
|
632
|
+
# Selector specifying which fields to include in a partial response.
|
633
|
+
# @param [String] quota_user
|
634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
636
|
+
# @param [Google::Apis::RequestOptions] options
|
637
|
+
# Request-specific options
|
638
|
+
#
|
639
|
+
# @yield [result, err] Result & error if block supplied
|
640
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
641
|
+
# @yieldparam err [StandardError] error object if request failed
|
642
|
+
#
|
643
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
644
|
+
#
|
645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
648
|
+
def debug_instance(apps_id, modules_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
649
|
+
command = make_simple_command(:post, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
|
650
|
+
command.request_representation = Google::Apis::AppengineV1beta4::DebugInstanceRequest::Representation
|
651
|
+
command.request_object = debug_instance_request_object
|
652
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
653
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
654
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
655
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
656
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
657
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
execute_or_queue_command(command, &block)
|
661
|
+
end
|
662
|
+
|
663
|
+
# Stops a running instance.
|
664
|
+
# @param [String] apps_id
|
665
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
666
|
+
# default/versions/v1/instances/instance-1.
|
667
|
+
# @param [String] modules_id
|
668
|
+
# Part of `name`. See documentation of `appsId`.
|
669
|
+
# @param [String] versions_id
|
670
|
+
# Part of `name`. See documentation of `appsId`.
|
671
|
+
# @param [String] instances_id
|
672
|
+
# Part of `name`. See documentation of `appsId`.
|
673
|
+
# @param [String] fields
|
674
|
+
# Selector specifying which fields to include in a partial response.
|
675
|
+
# @param [String] quota_user
|
676
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
677
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
678
|
+
# @param [Google::Apis::RequestOptions] options
|
679
|
+
# Request-specific options
|
680
|
+
#
|
681
|
+
# @yield [result, err] Result & error if block supplied
|
682
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
683
|
+
# @yieldparam err [StandardError] error object if request failed
|
684
|
+
#
|
685
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
686
|
+
#
|
687
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
688
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
689
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
690
|
+
def delete_app_module_version_instance(apps_id, modules_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
691
|
+
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}', options)
|
692
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
693
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
694
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
695
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
696
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
697
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
698
|
+
command.query['fields'] = fields unless fields.nil?
|
699
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
700
|
+
execute_or_queue_command(command, &block)
|
701
|
+
end
|
702
|
+
|
703
|
+
# Gets instance information.
|
704
|
+
# @param [String] apps_id
|
705
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
706
|
+
# default/versions/v1/instances/instance-1.
|
707
|
+
# @param [String] modules_id
|
708
|
+
# Part of `name`. See documentation of `appsId`.
|
709
|
+
# @param [String] versions_id
|
710
|
+
# Part of `name`. See documentation of `appsId`.
|
711
|
+
# @param [String] instances_id
|
712
|
+
# Part of `name`. See documentation of `appsId`.
|
713
|
+
# @param [String] fields
|
714
|
+
# Selector specifying which fields to include in a partial response.
|
715
|
+
# @param [String] quota_user
|
716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
718
|
+
# @param [Google::Apis::RequestOptions] options
|
719
|
+
# Request-specific options
|
720
|
+
#
|
721
|
+
# @yield [result, err] Result & error if block supplied
|
722
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Instance] parsed result object
|
723
|
+
# @yieldparam err [StandardError] error object if request failed
|
724
|
+
#
|
725
|
+
# @return [Google::Apis::AppengineV1beta4::Instance]
|
726
|
+
#
|
727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
730
|
+
def get_app_module_version_instance(apps_id, modules_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
731
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}', options)
|
732
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Instance::Representation
|
733
|
+
command.response_class = Google::Apis::AppengineV1beta4::Instance
|
734
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
735
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
736
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
737
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
738
|
+
command.query['fields'] = fields unless fields.nil?
|
739
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
740
|
+
execute_or_queue_command(command, &block)
|
741
|
+
end
|
742
|
+
|
743
|
+
# Lists the instances of a version.Tip: To aggregate details about instances
|
744
|
+
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/
|
745
|
+
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
746
|
+
# @param [String] apps_id
|
747
|
+
# Part of `name`. Name of the resource requested. Example: apps/myapp/modules/
|
748
|
+
# default/versions/v1.
|
749
|
+
# @param [String] modules_id
|
750
|
+
# Part of `name`. See documentation of `appsId`.
|
751
|
+
# @param [String] versions_id
|
752
|
+
# Part of `name`. See documentation of `appsId`.
|
753
|
+
# @param [Fixnum] page_size
|
754
|
+
# Maximum results to return per page.
|
755
|
+
# @param [String] page_token
|
756
|
+
# Continuation token for fetching the next page of results.
|
757
|
+
# @param [String] fields
|
758
|
+
# Selector specifying which fields to include in a partial response.
|
759
|
+
# @param [String] quota_user
|
760
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
761
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
762
|
+
# @param [Google::Apis::RequestOptions] options
|
763
|
+
# Request-specific options
|
764
|
+
#
|
765
|
+
# @yield [result, err] Result & error if block supplied
|
766
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::ListInstancesResponse] parsed result object
|
767
|
+
# @yieldparam err [StandardError] error object if request failed
|
768
|
+
#
|
769
|
+
# @return [Google::Apis::AppengineV1beta4::ListInstancesResponse]
|
770
|
+
#
|
771
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
772
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
773
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
774
|
+
def list_app_module_version_instances(apps_id, modules_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
775
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances', options)
|
776
|
+
command.response_representation = Google::Apis::AppengineV1beta4::ListInstancesResponse::Representation
|
777
|
+
command.response_class = Google::Apis::AppengineV1beta4::ListInstancesResponse
|
778
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
779
|
+
command.params['modulesId'] = modules_id unless modules_id.nil?
|
780
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
781
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
782
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
783
|
+
command.query['fields'] = fields unless fields.nil?
|
784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
785
|
+
execute_or_queue_command(command, &block)
|
786
|
+
end
|
787
|
+
|
788
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
789
|
+
# to poll the operation result at intervals as recommended by the API service.
|
790
|
+
# @param [String] apps_id
|
791
|
+
# Part of `name`. The name of the operation resource.
|
792
|
+
# @param [String] operations_id
|
793
|
+
# Part of `name`. See documentation of `appsId`.
|
794
|
+
# @param [String] fields
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
796
|
+
# @param [String] quota_user
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
+
# @param [Google::Apis::RequestOptions] options
|
800
|
+
# Request-specific options
|
801
|
+
#
|
802
|
+
# @yield [result, err] Result & error if block supplied
|
803
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object
|
804
|
+
# @yieldparam err [StandardError] error object if request failed
|
805
|
+
#
|
806
|
+
# @return [Google::Apis::AppengineV1beta4::Operation]
|
807
|
+
#
|
808
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
+
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
|
812
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations/{operationsId}', options)
|
813
|
+
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
814
|
+
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
815
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
816
|
+
command.params['operationsId'] = operations_id unless operations_id.nil?
|
817
|
+
command.query['fields'] = fields unless fields.nil?
|
818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
819
|
+
execute_or_queue_command(command, &block)
|
820
|
+
end
|
821
|
+
|
822
|
+
# Lists operations that match the specified filter in the request. If the server
|
823
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
824
|
+
# allows API services to override the binding to use different resource name
|
825
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
826
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
827
|
+
# configuration. For backwards compatibility, the default name includes the
|
828
|
+
# operations collection id, however overriding users must ensure the name
|
829
|
+
# binding is the parent resource, without the operations collection id.
|
830
|
+
# @param [String] apps_id
|
831
|
+
# Part of `name`. The name of the operation's parent resource.
|
832
|
+
# @param [String] filter
|
833
|
+
# The standard list filter.
|
834
|
+
# @param [Fixnum] page_size
|
835
|
+
# The standard list page size.
|
836
|
+
# @param [String] page_token
|
837
|
+
# The standard list page token.
|
838
|
+
# @param [String] fields
|
839
|
+
# Selector specifying which fields to include in a partial response.
|
840
|
+
# @param [String] quota_user
|
841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
843
|
+
# @param [Google::Apis::RequestOptions] options
|
844
|
+
# Request-specific options
|
845
|
+
#
|
846
|
+
# @yield [result, err] Result & error if block supplied
|
847
|
+
# @yieldparam result [Google::Apis::AppengineV1beta4::ListOperationsResponse] parsed result object
|
848
|
+
# @yieldparam err [StandardError] error object if request failed
|
849
|
+
#
|
850
|
+
# @return [Google::Apis::AppengineV1beta4::ListOperationsResponse]
|
851
|
+
#
|
852
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
853
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
854
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
855
|
+
def list_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
856
|
+
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations', options)
|
857
|
+
command.response_representation = Google::Apis::AppengineV1beta4::ListOperationsResponse::Representation
|
858
|
+
command.response_class = Google::Apis::AppengineV1beta4::ListOperationsResponse
|
859
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
860
|
+
command.query['filter'] = filter unless filter.nil?
|
861
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
862
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
863
|
+
command.query['fields'] = fields unless fields.nil?
|
864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
865
|
+
execute_or_queue_command(command, &block)
|
866
|
+
end
|
867
|
+
|
868
|
+
protected
|
869
|
+
|
870
|
+
def apply_command_defaults(command)
|
871
|
+
command.query['key'] = key unless key.nil?
|
872
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
873
|
+
end
|
874
|
+
end
|
875
|
+
end
|
876
|
+
end
|
877
|
+
end
|