google-apis-appengine_v1beta5 0.1.0

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