google-api-client 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/api_names.yaml +55 -117
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
- data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
- data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -2
- data/generated/google/apis/bigquery_v2/representations.rb +6 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +599 -77
- data/generated/google/apis/compute_beta/representations.rb +240 -0
- data/generated/google/apis/compute_beta/service.rb +1999 -710
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +140 -58
- data/generated/google/apis/compute_v1/representations.rb +17 -0
- data/generated/google/apis/compute_v1/service.rb +462 -521
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +689 -1
- data/generated/google/apis/content_v2/representations.rb +316 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +8 -0
- data/generated/google/apis/fitness_v1/representations.rb +1 -0
- data/generated/google/apis/fitness_v1/service.rb +2 -2
- data/generated/google/apis/fitness_v1.rb +7 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +13 -2
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +8 -11
- data/generated/google/apis/gmail_v1/service.rb +5 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +340 -421
- data/generated/google/apis/monitoring_v3/representations.rb +0 -17
- data/generated/google/apis/monitoring_v3/service.rb +136 -168
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +36 -1
- data/generated/google/apis/storage_v1/representations.rb +16 -0
- data/generated/google/apis/storage_v1/service.rb +18 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -3
@@ -208,13 +208,31 @@ module Google
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
209
209
|
end
|
210
210
|
|
211
|
+
class Instance
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
211
217
|
class ListInstancesResponse
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
219
|
|
214
220
|
include Google::Apis::Core::JsonObjectSupport
|
215
221
|
end
|
216
222
|
|
217
|
-
class
|
223
|
+
class DebugInstanceRequest
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class ListLocationsResponse
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class Location
|
218
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
237
|
|
220
238
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -591,15 +609,6 @@ module Google
|
|
591
609
|
end
|
592
610
|
end
|
593
611
|
|
594
|
-
class ListInstancesResponse
|
595
|
-
# @private
|
596
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
597
|
-
collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
|
598
|
-
|
599
|
-
property :next_page_token, as: 'nextPageToken'
|
600
|
-
end
|
601
|
-
end
|
602
|
-
|
603
612
|
class Instance
|
604
613
|
# @private
|
605
614
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -621,6 +630,40 @@ module Google
|
|
621
630
|
end
|
622
631
|
end
|
623
632
|
|
633
|
+
class ListInstancesResponse
|
634
|
+
# @private
|
635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
636
|
+
collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
|
637
|
+
|
638
|
+
property :next_page_token, as: 'nextPageToken'
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
class DebugInstanceRequest
|
643
|
+
# @private
|
644
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
class ListLocationsResponse
|
649
|
+
# @private
|
650
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
651
|
+
collection :locations, as: 'locations', class: Google::Apis::AppengineV1beta5::Location, decorator: Google::Apis::AppengineV1beta5::Location::Representation
|
652
|
+
|
653
|
+
property :next_page_token, as: 'nextPageToken'
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
class Location
|
658
|
+
# @private
|
659
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
660
|
+
property :name, as: 'name'
|
661
|
+
property :location_id, as: 'locationId'
|
662
|
+
hash :labels, as: 'labels'
|
663
|
+
hash :metadata, as: 'metadata'
|
664
|
+
end
|
665
|
+
end
|
666
|
+
|
624
667
|
class OperationMetadata
|
625
668
|
# @private
|
626
669
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -658,6 +701,8 @@ module Google
|
|
658
701
|
class LocationMetadata
|
659
702
|
# @private
|
660
703
|
class Representation < Google::Apis::Core::JsonRepresentation
|
704
|
+
property :standard_environment_available, as: 'standardEnvironmentAvailable'
|
705
|
+
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
|
661
706
|
end
|
662
707
|
end
|
663
708
|
end
|
@@ -46,9 +46,43 @@ module Google
|
|
46
46
|
super('https://appengine.googleapis.com/', '')
|
47
47
|
end
|
48
48
|
|
49
|
+
# Creates an App Engine application for a Google Cloud Platform project. This
|
50
|
+
# requires a project that excludes an App Engine application. For details about
|
51
|
+
# creating a project without an application, see the [Google Cloud Resource
|
52
|
+
# Manager create project topic](https://cloud.google.com/resource-manager/docs/
|
53
|
+
# creating-project).
|
54
|
+
# @param [Google::Apis::AppengineV1beta5::Application] application_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::AppengineV1beta5::Operation]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1beta5/apps', options)
|
74
|
+
command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
|
75
|
+
command.request_object = application_object
|
76
|
+
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
|
77
|
+
command.response_class = Google::Apis::AppengineV1beta5::Operation
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
49
83
|
# Gets information about an application.
|
50
84
|
# @param [String] apps_id
|
51
|
-
# Part of `name`. Name of the application to get.
|
85
|
+
# Part of `name`. Name of the application to get. Example: `apps/myapp`.
|
52
86
|
# @param [Boolean] ensure_resources_exist
|
53
87
|
# Certain resources associated with an application are created on-demand.
|
54
88
|
# Controls whether these resources should be created when performing the `GET`
|
@@ -160,10 +194,10 @@ module Google
|
|
160
194
|
execute_or_queue_command(command, &block)
|
161
195
|
end
|
162
196
|
|
163
|
-
# Deletes
|
197
|
+
# Deletes the specified service and all enclosed versions.
|
164
198
|
# @param [String] apps_id
|
165
|
-
# Part of `name`. Name of the resource requested.
|
166
|
-
#
|
199
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
200
|
+
# default`.
|
167
201
|
# @param [String] services_id
|
168
202
|
# Part of `name`. See documentation of `appsId`.
|
169
203
|
# @param [String] fields
|
@@ -194,10 +228,10 @@ module Google
|
|
194
228
|
execute_or_queue_command(command, &block)
|
195
229
|
end
|
196
230
|
|
197
|
-
# Gets the current configuration of the service.
|
231
|
+
# Gets the current configuration of the specified service.
|
198
232
|
# @param [String] apps_id
|
199
|
-
# Part of `name`. Name of the resource requested.
|
200
|
-
#
|
233
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
234
|
+
# default`.
|
201
235
|
# @param [String] services_id
|
202
236
|
# Part of `name`. See documentation of `appsId`.
|
203
237
|
# @param [String] fields
|
@@ -230,7 +264,7 @@ module Google
|
|
230
264
|
|
231
265
|
# Lists all the services in the application.
|
232
266
|
# @param [String] apps_id
|
233
|
-
# Part of `name`. Name of the resource requested.
|
267
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp`.
|
234
268
|
# @param [Fixnum] page_size
|
235
269
|
# Maximum results to return per page.
|
236
270
|
# @param [String] page_token
|
@@ -266,16 +300,26 @@ module Google
|
|
266
300
|
|
267
301
|
# Updates the configuration of the specified service.
|
268
302
|
# @param [String] apps_id
|
269
|
-
# Part of `name`. Name of the resource to update.
|
270
|
-
#
|
303
|
+
# Part of `name`. Name of the resource to update. Example: `apps/myapp/services/
|
304
|
+
# default`.
|
271
305
|
# @param [String] services_id
|
272
306
|
# Part of `name`. See documentation of `appsId`.
|
273
307
|
# @param [Google::Apis::AppengineV1beta5::Service] service_object
|
274
308
|
# @param [String] mask
|
275
309
|
# Standard field mask for the set of fields to be updated.
|
276
310
|
# @param [Boolean] migrate_traffic
|
277
|
-
#
|
278
|
-
#
|
311
|
+
# Set to `true` to gradually shift traffic from one version to another single
|
312
|
+
# version. By default, traffic is shifted immediately. For gradual traffic
|
313
|
+
# migration, the target version must be located within instances that are
|
314
|
+
# configured for both [warmup requests](https://cloud.google.com/appengine/docs/
|
315
|
+
# admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype)
|
316
|
+
# and [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/
|
317
|
+
# reference/rest/v1beta5/apps.services.versions#automaticscaling). You must
|
318
|
+
# specify the [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/
|
319
|
+
# reference/rest/v1beta5/apps.services#shardby) field in the Service resource.
|
320
|
+
# Gradual traffic migration is not supported in the App Engine flexible
|
321
|
+
# environment. For examples, see [Migrating and Splitting Traffic](https://cloud.
|
322
|
+
# google.com/appengine/docs/admin-api/migrating-splitting-traffic).
|
279
323
|
# @param [String] fields
|
280
324
|
# Selector specifying which fields to include in a partial response.
|
281
325
|
# @param [String] quota_user
|
@@ -308,7 +352,7 @@ module Google
|
|
308
352
|
execute_or_queue_command(command, &block)
|
309
353
|
end
|
310
354
|
|
311
|
-
# Deploys new code and resource files to a version.
|
355
|
+
# Deploys new code and resource files to a new version.
|
312
356
|
# @param [String] apps_id
|
313
357
|
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
|
314
358
|
# services/default".
|
@@ -347,8 +391,8 @@ module Google
|
|
347
391
|
|
348
392
|
# Deletes an existing version.
|
349
393
|
# @param [String] apps_id
|
350
|
-
# Part of `name`. Name of the resource requested.
|
351
|
-
#
|
394
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
395
|
+
# default/versions/v1`.
|
352
396
|
# @param [String] services_id
|
353
397
|
# Part of `name`. See documentation of `appsId`.
|
354
398
|
# @param [String] versions_id
|
@@ -382,10 +426,11 @@ module Google
|
|
382
426
|
execute_or_queue_command(command, &block)
|
383
427
|
end
|
384
428
|
|
385
|
-
# Gets
|
429
|
+
# Gets the specified Version resource. By default, only a `BASIC_VIEW` will be
|
430
|
+
# returned. Specify the `FULL_VIEW` parameter to get the full resource.
|
386
431
|
# @param [String] apps_id
|
387
|
-
# Part of `name`. Name of the resource requested.
|
388
|
-
#
|
432
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
433
|
+
# default/versions/v1`.
|
389
434
|
# @param [String] services_id
|
390
435
|
# Part of `name`. See documentation of `appsId`.
|
391
436
|
# @param [String] versions_id
|
@@ -424,8 +469,8 @@ module Google
|
|
424
469
|
|
425
470
|
# Lists the versions of a service.
|
426
471
|
# @param [String] apps_id
|
427
|
-
# Part of `name`. Name of the resource requested.
|
428
|
-
#
|
472
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
473
|
+
# default`.
|
429
474
|
# @param [String] services_id
|
430
475
|
# Part of `name`. See documentation of `appsId`.
|
431
476
|
# @param [String] view
|
@@ -467,22 +512,23 @@ module Google
|
|
467
512
|
|
468
513
|
# Updates the specified Version resource. You can specify the following fields
|
469
514
|
# depending on the App Engine environment and type of scaling that the version
|
470
|
-
# resource uses: * [`serving_status`](/appengine/docs/
|
471
|
-
# v1beta5/apps.services.versions#Version.FIELDS.
|
472
|
-
# resources that use basic scaling, manual scaling,
|
473
|
-
# flexible environment. * [`instance_class`](
|
474
|
-
# rest/v1beta5/apps.services.
|
475
|
-
# Version resources that run in the
|
476
|
-
# automatic_scaling.min_idle_instances`](
|
477
|
-
# rest/v1beta5/apps.
|
478
|
-
# Version
|
479
|
-
# standard environment. * [`
|
480
|
-
#
|
515
|
+
# resource uses: * [`serving_status`](https://cloud.google.com/appengine/docs/
|
516
|
+
# admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
|
517
|
+
# serving_status): For Version resources that use basic scaling, manual scaling,
|
518
|
+
# or run in the App Engine flexible environment. * [`instance_class`](https://
|
519
|
+
# cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.
|
520
|
+
# versions#Version.FIELDS.instance_class): For Version resources that run in the
|
521
|
+
# App Engine standard environment. * [`automatic_scaling.min_idle_instances`](
|
522
|
+
# https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.
|
523
|
+
# services.versions#Version.FIELDS.automatic_scaling): For Version resources
|
524
|
+
# that use automatic scaling and run in the App Engine standard environment. * [`
|
525
|
+
# automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/
|
526
|
+
# admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
|
481
527
|
# automatic_scaling): For Version resources that use automatic scaling and run
|
482
528
|
# in the App Engine standard environment.
|
483
529
|
# @param [String] apps_id
|
484
|
-
# Part of `name`. Name of the resource to update.
|
485
|
-
#
|
530
|
+
# Part of `name`. Name of the resource to update. Example: `apps/myapp/services/
|
531
|
+
# default/versions/1`.
|
486
532
|
# @param [String] services_id
|
487
533
|
# Part of `name`. See documentation of `appsId`.
|
488
534
|
# @param [String] versions_id
|
@@ -522,10 +568,90 @@ module Google
|
|
522
568
|
execute_or_queue_command(command, &block)
|
523
569
|
end
|
524
570
|
|
525
|
-
#
|
571
|
+
# Stops a running instance.
|
526
572
|
# @param [String] apps_id
|
527
573
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
528
|
-
# services/default/versions/v1".
|
574
|
+
# services/default/versions/v1/instances/instance-1".
|
575
|
+
# @param [String] services_id
|
576
|
+
# Part of `name`. See documentation of `appsId`.
|
577
|
+
# @param [String] versions_id
|
578
|
+
# Part of `name`. See documentation of `appsId`.
|
579
|
+
# @param [String] instances_id
|
580
|
+
# Part of `name`. See documentation of `appsId`.
|
581
|
+
# @param [String] fields
|
582
|
+
# Selector specifying which fields to include in a partial response.
|
583
|
+
# @param [String] quota_user
|
584
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
585
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
586
|
+
# @param [Google::Apis::RequestOptions] options
|
587
|
+
# Request-specific options
|
588
|
+
#
|
589
|
+
# @yield [result, err] Result & error if block supplied
|
590
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
|
591
|
+
# @yieldparam err [StandardError] error object if request failed
|
592
|
+
#
|
593
|
+
# @return [Google::Apis::AppengineV1beta5::Operation]
|
594
|
+
#
|
595
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
596
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
597
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
598
|
+
def delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
599
|
+
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
600
|
+
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
|
601
|
+
command.response_class = Google::Apis::AppengineV1beta5::Operation
|
602
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
603
|
+
command.params['servicesId'] = services_id unless services_id.nil?
|
604
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
605
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
608
|
+
execute_or_queue_command(command, &block)
|
609
|
+
end
|
610
|
+
|
611
|
+
# Gets instance information.
|
612
|
+
# @param [String] apps_id
|
613
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
614
|
+
# default/versions/v1/instances/instance-1`.
|
615
|
+
# @param [String] services_id
|
616
|
+
# Part of `name`. See documentation of `appsId`.
|
617
|
+
# @param [String] versions_id
|
618
|
+
# Part of `name`. See documentation of `appsId`.
|
619
|
+
# @param [String] instances_id
|
620
|
+
# Part of `name`. See documentation of `appsId`.
|
621
|
+
# @param [String] fields
|
622
|
+
# Selector specifying which fields to include in a partial response.
|
623
|
+
# @param [String] quota_user
|
624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
627
|
+
# Request-specific options
|
628
|
+
#
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
630
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::Instance] parsed result object
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
632
|
+
#
|
633
|
+
# @return [Google::Apis::AppengineV1beta5::Instance]
|
634
|
+
#
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
638
|
+
def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
639
|
+
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
640
|
+
command.response_representation = Google::Apis::AppengineV1beta5::Instance::Representation
|
641
|
+
command.response_class = Google::Apis::AppengineV1beta5::Instance
|
642
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
643
|
+
command.params['servicesId'] = services_id unless services_id.nil?
|
644
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
645
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
646
|
+
command.query['fields'] = fields unless fields.nil?
|
647
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
648
|
+
execute_or_queue_command(command, &block)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Lists the instances of a version.
|
652
|
+
# @param [String] apps_id
|
653
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
654
|
+
# default/versions/v1`.
|
529
655
|
# @param [String] services_id
|
530
656
|
# Part of `name`. See documentation of `appsId`.
|
531
657
|
# @param [String] versions_id
|
@@ -564,6 +690,126 @@ module Google
|
|
564
690
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
565
691
|
execute_or_queue_command(command, &block)
|
566
692
|
end
|
693
|
+
|
694
|
+
# Enables debugging on a VM instance. This allows you to use the SSH command to
|
695
|
+
# connect to the virtual machine where the instance lives. While in "debug mode",
|
696
|
+
# the instance continues to serve live traffic. You should delete the instance
|
697
|
+
# when you are done debugging and then allow the system to take over and
|
698
|
+
# determine if another instance should be started. Only applicable for instances
|
699
|
+
# in App Engine flexible environment.
|
700
|
+
# @param [String] apps_id
|
701
|
+
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
|
702
|
+
# default/versions/v1/instances/instance-1`.
|
703
|
+
# @param [String] services_id
|
704
|
+
# Part of `name`. See documentation of `appsId`.
|
705
|
+
# @param [String] versions_id
|
706
|
+
# Part of `name`. See documentation of `appsId`.
|
707
|
+
# @param [String] instances_id
|
708
|
+
# Part of `name`. See documentation of `appsId`.
|
709
|
+
# @param [Google::Apis::AppengineV1beta5::DebugInstanceRequest] debug_instance_request_object
|
710
|
+
# @param [String] fields
|
711
|
+
# Selector specifying which fields to include in a partial response.
|
712
|
+
# @param [String] quota_user
|
713
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
714
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
715
|
+
# @param [Google::Apis::RequestOptions] options
|
716
|
+
# Request-specific options
|
717
|
+
#
|
718
|
+
# @yield [result, err] Result & error if block supplied
|
719
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
|
720
|
+
# @yieldparam err [StandardError] error object if request failed
|
721
|
+
#
|
722
|
+
# @return [Google::Apis::AppengineV1beta5::Operation]
|
723
|
+
#
|
724
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
725
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
726
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
727
|
+
def debug_instance(apps_id, services_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
728
|
+
command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
|
729
|
+
command.request_representation = Google::Apis::AppengineV1beta5::DebugInstanceRequest::Representation
|
730
|
+
command.request_object = debug_instance_request_object
|
731
|
+
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
|
732
|
+
command.response_class = Google::Apis::AppengineV1beta5::Operation
|
733
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
734
|
+
command.params['servicesId'] = services_id unless services_id.nil?
|
735
|
+
command.params['versionsId'] = versions_id unless versions_id.nil?
|
736
|
+
command.params['instancesId'] = instances_id unless instances_id.nil?
|
737
|
+
command.query['fields'] = fields unless fields.nil?
|
738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
739
|
+
execute_or_queue_command(command, &block)
|
740
|
+
end
|
741
|
+
|
742
|
+
# Lists information about the supported locations for this service.
|
743
|
+
# @param [String] apps_id
|
744
|
+
# Part of `name`. The resource that owns the locations collection, if applicable.
|
745
|
+
# @param [String] filter
|
746
|
+
# The standard list filter.
|
747
|
+
# @param [Fixnum] page_size
|
748
|
+
# The standard list page size.
|
749
|
+
# @param [String] page_token
|
750
|
+
# The standard list page token.
|
751
|
+
# @param [String] fields
|
752
|
+
# Selector specifying which fields to include in a partial response.
|
753
|
+
# @param [String] quota_user
|
754
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
755
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
756
|
+
# @param [Google::Apis::RequestOptions] options
|
757
|
+
# Request-specific options
|
758
|
+
#
|
759
|
+
# @yield [result, err] Result & error if block supplied
|
760
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::ListLocationsResponse] parsed result object
|
761
|
+
# @yieldparam err [StandardError] error object if request failed
|
762
|
+
#
|
763
|
+
# @return [Google::Apis::AppengineV1beta5::ListLocationsResponse]
|
764
|
+
#
|
765
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
766
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
767
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
768
|
+
def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
769
|
+
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations', options)
|
770
|
+
command.response_representation = Google::Apis::AppengineV1beta5::ListLocationsResponse::Representation
|
771
|
+
command.response_class = Google::Apis::AppengineV1beta5::ListLocationsResponse
|
772
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
773
|
+
command.query['filter'] = filter unless filter.nil?
|
774
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
775
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
776
|
+
command.query['fields'] = fields unless fields.nil?
|
777
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
778
|
+
execute_or_queue_command(command, &block)
|
779
|
+
end
|
780
|
+
|
781
|
+
# Get information about a location.
|
782
|
+
# @param [String] apps_id
|
783
|
+
# Part of `name`. Resource name for the location.
|
784
|
+
# @param [String] locations_id
|
785
|
+
# Part of `name`. See documentation of `appsId`.
|
786
|
+
# @param [String] fields
|
787
|
+
# Selector specifying which fields to include in a partial response.
|
788
|
+
# @param [String] quota_user
|
789
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
790
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
791
|
+
# @param [Google::Apis::RequestOptions] options
|
792
|
+
# Request-specific options
|
793
|
+
#
|
794
|
+
# @yield [result, err] Result & error if block supplied
|
795
|
+
# @yieldparam result [Google::Apis::AppengineV1beta5::Location] parsed result object
|
796
|
+
# @yieldparam err [StandardError] error object if request failed
|
797
|
+
#
|
798
|
+
# @return [Google::Apis::AppengineV1beta5::Location]
|
799
|
+
#
|
800
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
801
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
802
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
803
|
+
def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
|
804
|
+
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations/{locationsId}', options)
|
805
|
+
command.response_representation = Google::Apis::AppengineV1beta5::Location::Representation
|
806
|
+
command.response_class = Google::Apis::AppengineV1beta5::Location
|
807
|
+
command.params['appsId'] = apps_id unless apps_id.nil?
|
808
|
+
command.params['locationsId'] = locations_id unless locations_id.nil?
|
809
|
+
command.query['fields'] = fields unless fields.nil?
|
810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
811
|
+
execute_or_queue_command(command, &block)
|
812
|
+
end
|
567
813
|
|
568
814
|
protected
|
569
815
|
|