google-api-client 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
|
26
26
|
module AndroidenterpriseV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170518'
|
|
29
29
|
|
|
30
30
|
# Manage corporate Android devices
|
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
|
@@ -748,14 +748,14 @@ module Google
|
|
|
748
748
|
# @return [Fixnum]
|
|
749
749
|
attr_accessor :num_purchased
|
|
750
750
|
|
|
751
|
-
# The
|
|
752
|
-
#
|
|
751
|
+
# The permission approval status of the product. This field is only set if the
|
|
752
|
+
# product is approved. Possible states are:
|
|
753
753
|
# - "currentApproved", the current set of permissions is approved, but
|
|
754
754
|
# additional permissions will require the administrator to reapprove the product
|
|
755
|
-
# (
|
|
756
|
-
#
|
|
757
|
-
# - "needsReapproval",
|
|
758
|
-
#
|
|
755
|
+
# (If the product was approved without specifying the approved permissions
|
|
756
|
+
# setting, then this is the default behavior.),
|
|
757
|
+
# - "needsReapproval", the product has unapproved permissions. No additional
|
|
758
|
+
# product licenses can be assigned until the product is reapproved,
|
|
759
759
|
# - "allCurrentAndFutureApproved", the current permissions are approved and any
|
|
760
760
|
# future permission updates will be automatically approved without administrator
|
|
761
761
|
# review.
|
|
@@ -1273,6 +1273,11 @@ module Google
|
|
|
1273
1273
|
# @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
|
|
1274
1274
|
attr_accessor :new_permissions_event
|
|
1275
1275
|
|
|
1276
|
+
# Type of the notification.
|
|
1277
|
+
# Corresponds to the JSON property `notificationType`
|
|
1278
|
+
# @return [String]
|
|
1279
|
+
attr_accessor :notification_type
|
|
1280
|
+
|
|
1276
1281
|
# An event generated when a product's approval status is changed.
|
|
1277
1282
|
# Corresponds to the JSON property `productApprovalEvent`
|
|
1278
1283
|
# @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
|
|
@@ -1301,6 +1306,7 @@ module Google
|
|
|
1301
1306
|
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
|
1302
1307
|
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
|
|
1303
1308
|
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
|
|
1309
|
+
@notification_type = args[:notification_type] if args.key?(:notification_type)
|
|
1304
1310
|
@product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
|
|
1305
1311
|
@product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
|
|
1306
1312
|
@timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
|
|
@@ -1687,11 +1693,12 @@ module Google
|
|
|
1687
1693
|
# @return [Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo]
|
|
1688
1694
|
attr_accessor :approval_url_info
|
|
1689
1695
|
|
|
1690
|
-
#
|
|
1691
|
-
#
|
|
1692
|
-
#
|
|
1693
|
-
#
|
|
1694
|
-
# will be
|
|
1696
|
+
# Sets how new permission requests for the product are handled. "allPermissions"
|
|
1697
|
+
# automatically approves all current and future permissions for the product. "
|
|
1698
|
+
# currentPermissionsOnly" approves the current set of permissions for the
|
|
1699
|
+
# product, but any future permissions added through updates will require manual
|
|
1700
|
+
# reapproval. If not specified, only the current set of permissions will be
|
|
1701
|
+
# approved.
|
|
1695
1702
|
# Corresponds to the JSON property `approvedPermissions`
|
|
1696
1703
|
# @return [String]
|
|
1697
1704
|
attr_accessor :approved_permissions
|
|
@@ -713,6 +713,7 @@ module Google
|
|
|
713
713
|
|
|
714
714
|
property :new_permissions_event, as: 'newPermissionsEvent', class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent, decorator: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent::Representation
|
|
715
715
|
|
|
716
|
+
property :notification_type, as: 'notificationType'
|
|
716
717
|
property :product_approval_event, as: 'productApprovalEvent', class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent::Representation
|
|
717
718
|
|
|
718
719
|
property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/android-publisher
|
|
26
26
|
module AndroidpublisherV2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170504'
|
|
29
29
|
|
|
30
30
|
# View and manage your Google Play Developer account
|
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
|
27
27
|
module AppengineV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20170522'
|
|
30
30
|
|
|
31
31
|
# View and manage your applications deployed on Google App Engine
|
|
32
32
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
|
@@ -22,56 +22,24 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module AppengineV1
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
# files in the application directory are static files, and which URLs serve them.
|
|
28
|
-
class StaticFilesHandler
|
|
25
|
+
# Custom static error page to be served when an error occurs.
|
|
26
|
+
class ErrorHandler
|
|
29
27
|
include Google::Apis::Core::Hashable
|
|
30
28
|
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
# Corresponds to the JSON property `expiration`
|
|
34
|
-
# @return [String]
|
|
35
|
-
attr_accessor :expiration
|
|
36
|
-
|
|
37
|
-
# Whether files should also be uploaded as code data. By default, files declared
|
|
38
|
-
# in static file handlers are uploaded as static data and are only served to end
|
|
39
|
-
# users; they cannot be read by the application. If enabled, uploads are charged
|
|
40
|
-
# against both your code and static data storage resource quotas.
|
|
41
|
-
# Corresponds to the JSON property `applicationReadable`
|
|
42
|
-
# @return [Boolean]
|
|
43
|
-
attr_accessor :application_readable
|
|
44
|
-
alias_method :application_readable?, :application_readable
|
|
45
|
-
|
|
46
|
-
# HTTP headers to use for all responses from these URLs.
|
|
47
|
-
# Corresponds to the JSON property `httpHeaders`
|
|
48
|
-
# @return [Hash<String,String>]
|
|
49
|
-
attr_accessor :http_headers
|
|
50
|
-
|
|
51
|
-
# Regular expression that matches the file paths for all files that should be
|
|
52
|
-
# referenced by this handler.
|
|
53
|
-
# Corresponds to the JSON property `uploadPathRegex`
|
|
54
|
-
# @return [String]
|
|
55
|
-
attr_accessor :upload_path_regex
|
|
56
|
-
|
|
57
|
-
# Path to the static files matched by the URL pattern, from the application root
|
|
58
|
-
# directory. The path can refer to text matched in groupings in the URL pattern.
|
|
59
|
-
# Corresponds to the JSON property `path`
|
|
29
|
+
# Error condition this handler applies to.
|
|
30
|
+
# Corresponds to the JSON property `errorCode`
|
|
60
31
|
# @return [String]
|
|
61
|
-
attr_accessor :
|
|
32
|
+
attr_accessor :error_code
|
|
62
33
|
|
|
63
|
-
# MIME type
|
|
64
|
-
# specific MIME types, which are derived from each file's filename extension.
|
|
34
|
+
# MIME type of file. Defaults to text/html.
|
|
65
35
|
# Corresponds to the JSON property `mimeType`
|
|
66
36
|
# @return [String]
|
|
67
37
|
attr_accessor :mime_type
|
|
68
38
|
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
|
|
73
|
-
attr_accessor :require_matching_file
|
|
74
|
-
alias_method :require_matching_file?, :require_matching_file
|
|
39
|
+
# Static file content to be served for this error.
|
|
40
|
+
# Corresponds to the JSON property `staticFile`
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :static_file
|
|
75
43
|
|
|
76
44
|
def initialize(**args)
|
|
77
45
|
update!(**args)
|
|
@@ -79,70 +47,53 @@ module Google
|
|
|
79
47
|
|
|
80
48
|
# Update properties of this object
|
|
81
49
|
def update!(**args)
|
|
82
|
-
@
|
|
83
|
-
@application_readable = args[:application_readable] if args.key?(:application_readable)
|
|
84
|
-
@http_headers = args[:http_headers] if args.key?(:http_headers)
|
|
85
|
-
@upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
|
|
86
|
-
@path = args[:path] if args.key?(:path)
|
|
50
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
|
87
51
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
88
|
-
@
|
|
52
|
+
@static_file = args[:static_file] if args.key?(:static_file)
|
|
89
53
|
end
|
|
90
54
|
end
|
|
91
55
|
|
|
92
|
-
#
|
|
93
|
-
class
|
|
56
|
+
# Metadata for the given google.longrunning.Operation.
|
|
57
|
+
class OperationMetadataV1
|
|
94
58
|
include Google::Apis::Core::Hashable
|
|
95
59
|
|
|
96
|
-
#
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
# Target ops read per seconds.
|
|
102
|
-
# Corresponds to the JSON property `targetReadOpsPerSecond`
|
|
103
|
-
# @return [Fixnum]
|
|
104
|
-
attr_accessor :target_read_ops_per_second
|
|
105
|
-
|
|
106
|
-
# Target ops written per second.
|
|
107
|
-
# Corresponds to the JSON property `targetWriteOpsPerSecond`
|
|
108
|
-
# @return [Fixnum]
|
|
109
|
-
attr_accessor :target_write_ops_per_second
|
|
60
|
+
# Name of the resource that this operation is acting on. Example: apps/myapp/
|
|
61
|
+
# services/default.@OutputOnly
|
|
62
|
+
# Corresponds to the JSON property `target`
|
|
63
|
+
# @return [String]
|
|
64
|
+
attr_accessor :target
|
|
110
65
|
|
|
111
|
-
#
|
|
112
|
-
# Corresponds to the JSON property `
|
|
113
|
-
# @return [
|
|
114
|
-
attr_accessor :
|
|
66
|
+
# User who requested this operation.@OutputOnly
|
|
67
|
+
# Corresponds to the JSON property `user`
|
|
68
|
+
# @return [String]
|
|
69
|
+
attr_accessor :user
|
|
115
70
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
71
|
+
# Ephemeral message that may change every time the operation is polled. @
|
|
72
|
+
# OutputOnly
|
|
73
|
+
# Corresponds to the JSON property `ephemeralMessage`
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :ephemeral_message
|
|
119
76
|
|
|
120
|
-
#
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
@target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second)
|
|
126
|
-
end
|
|
127
|
-
end
|
|
77
|
+
# API method that initiated this operation. Example: google.appengine.v1.
|
|
78
|
+
# Versions.CreateVersion.@OutputOnly
|
|
79
|
+
# Corresponds to the JSON property `method`
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :method_prop
|
|
128
82
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
class BasicScaling
|
|
134
|
-
include Google::Apis::Core::Hashable
|
|
83
|
+
# Time that this operation completed.@OutputOnly
|
|
84
|
+
# Corresponds to the JSON property `endTime`
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :end_time
|
|
135
87
|
|
|
136
|
-
#
|
|
137
|
-
# Corresponds to the JSON property `
|
|
138
|
-
# @return [
|
|
139
|
-
attr_accessor :
|
|
88
|
+
# Durable messages that persist on every operation poll. @OutputOnly
|
|
89
|
+
# Corresponds to the JSON property `warning`
|
|
90
|
+
# @return [Array<String>]
|
|
91
|
+
attr_accessor :warning
|
|
140
92
|
|
|
141
|
-
#
|
|
142
|
-
#
|
|
143
|
-
# Corresponds to the JSON property `idleTimeout`
|
|
93
|
+
# Time that this operation was created.@OutputOnly
|
|
94
|
+
# Corresponds to the JSON property `insertTime`
|
|
144
95
|
# @return [String]
|
|
145
|
-
attr_accessor :
|
|
96
|
+
attr_accessor :insert_time
|
|
146
97
|
|
|
147
98
|
def initialize(**args)
|
|
148
99
|
update!(**args)
|
|
@@ -150,24 +101,54 @@ module Google
|
|
|
150
101
|
|
|
151
102
|
# Update properties of this object
|
|
152
103
|
def update!(**args)
|
|
153
|
-
@
|
|
154
|
-
@
|
|
104
|
+
@target = args[:target] if args.key?(:target)
|
|
105
|
+
@user = args[:user] if args.key?(:user)
|
|
106
|
+
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
|
107
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
108
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
109
|
+
@warning = args[:warning] if args.key?(:warning)
|
|
110
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
155
111
|
end
|
|
156
112
|
end
|
|
157
113
|
|
|
158
|
-
#
|
|
159
|
-
class
|
|
114
|
+
# Extra network settings. Only applicable for VM runtimes.
|
|
115
|
+
class Network
|
|
160
116
|
include Google::Apis::Core::Hashable
|
|
161
117
|
|
|
162
|
-
#
|
|
163
|
-
#
|
|
118
|
+
# List of ports, or port pairs, to forward from the virtual machine to the
|
|
119
|
+
# application container.
|
|
120
|
+
# Corresponds to the JSON property `forwardedPorts`
|
|
121
|
+
# @return [Array<String>]
|
|
122
|
+
attr_accessor :forwarded_ports
|
|
123
|
+
|
|
124
|
+
# Tag to apply to the VM instance during creation.
|
|
125
|
+
# Corresponds to the JSON property `instanceTag`
|
|
164
126
|
# @return [String]
|
|
165
|
-
attr_accessor :
|
|
127
|
+
attr_accessor :instance_tag
|
|
166
128
|
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
|
|
129
|
+
# Google Cloud Platform sub-network where the virtual machines are created.
|
|
130
|
+
# Specify the short name, not the resource path.If a subnetwork name is
|
|
131
|
+
# specified, a network name will also be required unless it is for the default
|
|
132
|
+
# network.
|
|
133
|
+
# If the network the VM instance is being created in is a Legacy network, then
|
|
134
|
+
# the IP address is allocated from the IPv4Range.
|
|
135
|
+
# If the network the VM instance is being created in is an auto Subnet Mode
|
|
136
|
+
# Network, then only network name should be specified (not the subnetwork_name)
|
|
137
|
+
# and the IP address is created from the IPCidrRange of the subnetwork that
|
|
138
|
+
# exists in that zone for that network.
|
|
139
|
+
# If the network the VM instance is being created in is a custom Subnet Mode
|
|
140
|
+
# Network, then the subnetwork_name must be specified and the IP address is
|
|
141
|
+
# created from the IPCidrRange of the subnetwork.If specified, the subnetwork
|
|
142
|
+
# must exist in the same region as the Flex app.
|
|
143
|
+
# Corresponds to the JSON property `subnetworkName`
|
|
144
|
+
# @return [String]
|
|
145
|
+
attr_accessor :subnetwork_name
|
|
146
|
+
|
|
147
|
+
# Google Cloud Platform network where the virtual machines are created. Specify
|
|
148
|
+
# the short name, not the resource path.Defaults to default.
|
|
149
|
+
# Corresponds to the JSON property `name`
|
|
150
|
+
# @return [String]
|
|
151
|
+
attr_accessor :name
|
|
171
152
|
|
|
172
153
|
def initialize(**args)
|
|
173
154
|
update!(**args)
|
|
@@ -175,131 +156,90 @@ module Google
|
|
|
175
156
|
|
|
176
157
|
# Update properties of this object
|
|
177
158
|
def update!(**args)
|
|
178
|
-
@
|
|
179
|
-
@
|
|
159
|
+
@forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
|
|
160
|
+
@instance_tag = args[:instance_tag] if args.key?(:instance_tag)
|
|
161
|
+
@subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
|
|
162
|
+
@name = args[:name] if args.key?(:name)
|
|
180
163
|
end
|
|
181
164
|
end
|
|
182
165
|
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
|
|
186
|
-
# Simple to use and understand for most users
|
|
187
|
-
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
188
|
-
# three pieces of data: error code, error message, and error details. The error
|
|
189
|
-
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
190
|
-
# error codes if needed. The error message should be a developer-facing English
|
|
191
|
-
# message that helps developers understand and resolve the error. If a localized
|
|
192
|
-
# user-facing error message is needed, put the localized message in the error
|
|
193
|
-
# details or localize it in the client. The optional error details may contain
|
|
194
|
-
# arbitrary information about the error. There is a predefined set of error
|
|
195
|
-
# detail types in the package google.rpc which can be used for common error
|
|
196
|
-
# conditions.Language mappingThe Status message is the logical representation of
|
|
197
|
-
# the error model, but it is not necessarily the actual wire format. When the
|
|
198
|
-
# Status message is exposed in different client libraries and different wire
|
|
199
|
-
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
200
|
-
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
201
|
-
# Other usesThe error model and the Status message can be used in a variety of
|
|
202
|
-
# environments, either with or without APIs, to provide a consistent developer
|
|
203
|
-
# experience across different environments.Example uses of this error model
|
|
204
|
-
# include:
|
|
205
|
-
# Partial errors. If a service needs to return partial errors to the client, it
|
|
206
|
-
# may embed the Status in the normal response to indicate the partial errors.
|
|
207
|
-
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
208
|
-
# Status message for error reporting purpose.
|
|
209
|
-
# Batch operations. If a client uses batch request and batch response, the
|
|
210
|
-
# Status message should be used directly inside batch response, one for each
|
|
211
|
-
# error sub-response.
|
|
212
|
-
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
213
|
-
# in its response, the status of those operations should be represented directly
|
|
214
|
-
# using the Status message.
|
|
215
|
-
# Logging. If some API errors are stored in logs, the message Status could be
|
|
216
|
-
# used directly after any stripping needed for security/privacy reasons.
|
|
217
|
-
class Status
|
|
166
|
+
# An Application resource contains the top-level configuration of an App Engine
|
|
167
|
+
# application.
|
|
168
|
+
class Application
|
|
218
169
|
include Google::Apis::Core::Hashable
|
|
219
170
|
|
|
220
|
-
#
|
|
221
|
-
#
|
|
222
|
-
#
|
|
223
|
-
|
|
171
|
+
# HTTP path dispatch rules for requests to the application that do not
|
|
172
|
+
# explicitly target a service or version. Rules are order-dependent. Up to 20
|
|
173
|
+
# dispatch rules can be supported.@OutputOnly
|
|
174
|
+
# Corresponds to the JSON property `dispatchRules`
|
|
175
|
+
# @return [Array<Google::Apis::AppengineV1::UrlDispatchRule>]
|
|
176
|
+
attr_accessor :dispatch_rules
|
|
224
177
|
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
# Corresponds to the JSON property `message`
|
|
178
|
+
# The Google Container Registry domain used for storing managed build docker
|
|
179
|
+
# images for this application.
|
|
180
|
+
# Corresponds to the JSON property `gcrDomain`
|
|
229
181
|
# @return [String]
|
|
230
|
-
attr_accessor :
|
|
231
|
-
|
|
232
|
-
# A list of messages that carry the error details. There will be a common set of
|
|
233
|
-
# message types for APIs to use.
|
|
234
|
-
# Corresponds to the JSON property `details`
|
|
235
|
-
# @return [Array<Hash<String,Object>>]
|
|
236
|
-
attr_accessor :details
|
|
182
|
+
attr_accessor :gcr_domain
|
|
237
183
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
def update!(**args)
|
|
244
|
-
@code = args[:code] if args.key?(:code)
|
|
245
|
-
@message = args[:message] if args.key?(:message)
|
|
246
|
-
@details = args[:details] if args.key?(:details)
|
|
247
|
-
end
|
|
248
|
-
end
|
|
184
|
+
# Full path to the Application resource in the API. Example: apps/myapp.@
|
|
185
|
+
# OutputOnly
|
|
186
|
+
# Corresponds to the JSON property `name`
|
|
187
|
+
# @return [String]
|
|
188
|
+
attr_accessor :name
|
|
249
189
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
190
|
+
# Cookie expiration policy for this application.
|
|
191
|
+
# Corresponds to the JSON property `defaultCookieExpiration`
|
|
192
|
+
# @return [String]
|
|
193
|
+
attr_accessor :default_cookie_expiration
|
|
253
194
|
|
|
254
|
-
#
|
|
255
|
-
#
|
|
256
|
-
#
|
|
257
|
-
# Corresponds to the JSON property `
|
|
195
|
+
# Identifier of the Application resource. This identifier is equivalent to the
|
|
196
|
+
# project ID of the Google Cloud Platform project where you want to deploy your
|
|
197
|
+
# application. Example: myapp.
|
|
198
|
+
# Corresponds to the JSON property `id`
|
|
258
199
|
# @return [String]
|
|
259
|
-
attr_accessor :
|
|
200
|
+
attr_accessor :id
|
|
260
201
|
|
|
261
|
-
#
|
|
262
|
-
#
|
|
202
|
+
# Location from which this application will be run. Application instances will
|
|
203
|
+
# run out of data centers in the chosen location, which is also where all of the
|
|
204
|
+
# application's end user content is stored.Defaults to us-central.Options are:us-
|
|
205
|
+
# central - Central USeurope-west - Western Europeus-east1 - Eastern US
|
|
206
|
+
# Corresponds to the JSON property `locationId`
|
|
263
207
|
# @return [String]
|
|
264
|
-
attr_accessor :
|
|
208
|
+
attr_accessor :location_id
|
|
265
209
|
|
|
266
|
-
#
|
|
267
|
-
# Corresponds to the JSON property `
|
|
210
|
+
# Serving status of this application.
|
|
211
|
+
# Corresponds to the JSON property `servingStatus`
|
|
268
212
|
# @return [String]
|
|
269
|
-
attr_accessor :
|
|
213
|
+
attr_accessor :serving_status
|
|
270
214
|
|
|
271
|
-
#
|
|
272
|
-
#
|
|
273
|
-
#
|
|
274
|
-
|
|
275
|
-
# @return [Boolean]
|
|
276
|
-
attr_accessor :enabled
|
|
277
|
-
alias_method :enabled?, :enabled
|
|
215
|
+
# Hostname used to reach this application, as resolved by App Engine.@OutputOnly
|
|
216
|
+
# Corresponds to the JSON property `defaultHostname`
|
|
217
|
+
# @return [String]
|
|
218
|
+
attr_accessor :default_hostname
|
|
278
219
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
220
|
+
# Identity-Aware Proxy
|
|
221
|
+
# Corresponds to the JSON property `iap`
|
|
222
|
+
# @return [Google::Apis::AppengineV1::IdentityAwareProxy]
|
|
223
|
+
attr_accessor :iap
|
|
282
224
|
|
|
283
|
-
#
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
|
289
|
-
end
|
|
290
|
-
end
|
|
225
|
+
# Google Apps authentication domain that controls which users can access this
|
|
226
|
+
# application.Defaults to open access for any Google Account.
|
|
227
|
+
# Corresponds to the JSON property `authDomain`
|
|
228
|
+
# @return [String]
|
|
229
|
+
attr_accessor :auth_domain
|
|
291
230
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
231
|
+
# Google Cloud Storage bucket that can be used for storing files associated with
|
|
232
|
+
# this application. This bucket is associated with the application and can be
|
|
233
|
+
# used by the gcloud deployment commands.@OutputOnly
|
|
234
|
+
# Corresponds to the JSON property `codeBucket`
|
|
235
|
+
# @return [String]
|
|
236
|
+
attr_accessor :code_bucket
|
|
296
237
|
|
|
297
|
-
#
|
|
298
|
-
#
|
|
299
|
-
#
|
|
300
|
-
#
|
|
301
|
-
|
|
302
|
-
attr_accessor :instances
|
|
238
|
+
# Google Cloud Storage bucket that can be used by this application to store
|
|
239
|
+
# content.@OutputOnly
|
|
240
|
+
# Corresponds to the JSON property `defaultBucket`
|
|
241
|
+
# @return [String]
|
|
242
|
+
attr_accessor :default_bucket
|
|
303
243
|
|
|
304
244
|
def initialize(**args)
|
|
305
245
|
update!(**args)
|
|
@@ -307,89 +247,182 @@ module Google
|
|
|
307
247
|
|
|
308
248
|
# Update properties of this object
|
|
309
249
|
def update!(**args)
|
|
310
|
-
@
|
|
250
|
+
@dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
|
|
251
|
+
@gcr_domain = args[:gcr_domain] if args.key?(:gcr_domain)
|
|
252
|
+
@name = args[:name] if args.key?(:name)
|
|
253
|
+
@default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration)
|
|
254
|
+
@id = args[:id] if args.key?(:id)
|
|
255
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
|
256
|
+
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
|
257
|
+
@default_hostname = args[:default_hostname] if args.key?(:default_hostname)
|
|
258
|
+
@iap = args[:iap] if args.key?(:iap)
|
|
259
|
+
@auth_domain = args[:auth_domain] if args.key?(:auth_domain)
|
|
260
|
+
@code_bucket = args[:code_bucket] if args.key?(:code_bucket)
|
|
261
|
+
@default_bucket = args[:default_bucket] if args.key?(:default_bucket)
|
|
311
262
|
end
|
|
312
263
|
end
|
|
313
264
|
|
|
314
|
-
#
|
|
315
|
-
|
|
265
|
+
# An Instance resource is the computing unit that App Engine uses to
|
|
266
|
+
# automatically scale an application.
|
|
267
|
+
class Instance
|
|
316
268
|
include Google::Apis::Core::Hashable
|
|
317
269
|
|
|
318
|
-
#
|
|
319
|
-
#
|
|
270
|
+
# Whether this instance is in debug mode. Only applicable for instances in App
|
|
271
|
+
# Engine flexible environment.@OutputOnly
|
|
272
|
+
# Corresponds to the JSON property `vmDebugEnabled`
|
|
320
273
|
# @return [Boolean]
|
|
321
|
-
attr_accessor :
|
|
322
|
-
alias_method :
|
|
274
|
+
attr_accessor :vm_debug_enabled
|
|
275
|
+
alias_method :vm_debug_enabled?, :vm_debug_enabled
|
|
323
276
|
|
|
324
|
-
#
|
|
325
|
-
# Corresponds to the JSON property `
|
|
326
|
-
# @return [
|
|
327
|
-
attr_accessor :
|
|
328
|
-
alias_method :standard_environment_available?, :standard_environment_available
|
|
277
|
+
# Number of requests since this instance was started.@OutputOnly
|
|
278
|
+
# Corresponds to the JSON property `requests`
|
|
279
|
+
# @return [Fixnum]
|
|
280
|
+
attr_accessor :requests
|
|
329
281
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
282
|
+
# App Engine release this instance is running on.@OutputOnly
|
|
283
|
+
# Corresponds to the JSON property `appEngineRelease`
|
|
284
|
+
# @return [String]
|
|
285
|
+
attr_accessor :app_engine_release
|
|
333
286
|
|
|
334
|
-
#
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
end
|
|
287
|
+
# Name of the virtual machine where this instance lives. Only applicable for
|
|
288
|
+
# instances in App Engine flexible environment.@OutputOnly
|
|
289
|
+
# Corresponds to the JSON property `vmName`
|
|
290
|
+
# @return [String]
|
|
291
|
+
attr_accessor :vm_name
|
|
340
292
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
# Each service has a collection of versions that define a specific set of code
|
|
346
|
-
# used to implement the functionality of that service.
|
|
347
|
-
class Service
|
|
348
|
-
include Google::Apis::Core::Hashable
|
|
293
|
+
# Average queries per second (QPS) over the last minute.@OutputOnly
|
|
294
|
+
# Corresponds to the JSON property `qps`
|
|
295
|
+
# @return [Float]
|
|
296
|
+
attr_accessor :qps
|
|
349
297
|
|
|
350
|
-
#
|
|
351
|
-
#
|
|
298
|
+
# Virtual machine ID of this instance. Only applicable for instances in App
|
|
299
|
+
# Engine flexible environment.@OutputOnly
|
|
300
|
+
# Corresponds to the JSON property `vmId`
|
|
301
|
+
# @return [String]
|
|
302
|
+
attr_accessor :vm_id
|
|
303
|
+
|
|
304
|
+
# Zone where the virtual machine is located. Only applicable for instances in
|
|
305
|
+
# App Engine flexible environment.@OutputOnly
|
|
306
|
+
# Corresponds to the JSON property `vmZoneName`
|
|
307
|
+
# @return [String]
|
|
308
|
+
attr_accessor :vm_zone_name
|
|
309
|
+
|
|
310
|
+
# Full path to the Instance resource in the API. Example: apps/myapp/services/
|
|
311
|
+
# default/versions/v1/instances/instance-1.@OutputOnly
|
|
352
312
|
# Corresponds to the JSON property `name`
|
|
353
313
|
# @return [String]
|
|
354
314
|
attr_accessor :name
|
|
355
315
|
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
|
|
360
|
-
attr_accessor :split
|
|
316
|
+
# Average latency (ms) over the last minute.@OutputOnly
|
|
317
|
+
# Corresponds to the JSON property `averageLatency`
|
|
318
|
+
# @return [Fixnum]
|
|
319
|
+
attr_accessor :average_latency
|
|
361
320
|
|
|
362
|
-
#
|
|
321
|
+
# The IP address of this instance. Only applicable for instances in App Engine
|
|
322
|
+
# flexible environment.@OutputOnly
|
|
323
|
+
# Corresponds to the JSON property `vmIp`
|
|
324
|
+
# @return [String]
|
|
325
|
+
attr_accessor :vm_ip
|
|
326
|
+
|
|
327
|
+
# Total memory in use (bytes).@OutputOnly
|
|
328
|
+
# Corresponds to the JSON property `memoryUsage`
|
|
329
|
+
# @return [Fixnum]
|
|
330
|
+
attr_accessor :memory_usage
|
|
331
|
+
|
|
332
|
+
# Relative name of the instance within the version. Example: instance-1.@
|
|
363
333
|
# OutputOnly
|
|
364
334
|
# Corresponds to the JSON property `id`
|
|
365
335
|
# @return [String]
|
|
366
336
|
attr_accessor :id
|
|
367
337
|
|
|
338
|
+
# Availability of the instance.@OutputOnly
|
|
339
|
+
# Corresponds to the JSON property `availability`
|
|
340
|
+
# @return [String]
|
|
341
|
+
attr_accessor :availability
|
|
342
|
+
|
|
343
|
+
# Number of errors since this instance was started.@OutputOnly
|
|
344
|
+
# Corresponds to the JSON property `errors`
|
|
345
|
+
# @return [Fixnum]
|
|
346
|
+
attr_accessor :errors
|
|
347
|
+
|
|
348
|
+
# Status of the virtual machine where this instance lives. Only applicable for
|
|
349
|
+
# instances in App Engine flexible environment.@OutputOnly
|
|
350
|
+
# Corresponds to the JSON property `vmStatus`
|
|
351
|
+
# @return [String]
|
|
352
|
+
attr_accessor :vm_status
|
|
353
|
+
|
|
354
|
+
# Time that this instance was started.@OutputOnly
|
|
355
|
+
# Corresponds to the JSON property `startTime`
|
|
356
|
+
# @return [String]
|
|
357
|
+
attr_accessor :start_time
|
|
358
|
+
|
|
368
359
|
def initialize(**args)
|
|
369
360
|
update!(**args)
|
|
370
361
|
end
|
|
371
362
|
|
|
372
363
|
# Update properties of this object
|
|
373
364
|
def update!(**args)
|
|
365
|
+
@vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
|
|
366
|
+
@requests = args[:requests] if args.key?(:requests)
|
|
367
|
+
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
|
368
|
+
@vm_name = args[:vm_name] if args.key?(:vm_name)
|
|
369
|
+
@qps = args[:qps] if args.key?(:qps)
|
|
370
|
+
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
|
371
|
+
@vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
|
|
374
372
|
@name = args[:name] if args.key?(:name)
|
|
375
|
-
@
|
|
373
|
+
@average_latency = args[:average_latency] if args.key?(:average_latency)
|
|
374
|
+
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
|
|
375
|
+
@memory_usage = args[:memory_usage] if args.key?(:memory_usage)
|
|
376
376
|
@id = args[:id] if args.key?(:id)
|
|
377
|
+
@availability = args[:availability] if args.key?(:availability)
|
|
378
|
+
@errors = args[:errors] if args.key?(:errors)
|
|
379
|
+
@vm_status = args[:vm_status] if args.key?(:vm_status)
|
|
380
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
377
381
|
end
|
|
378
382
|
end
|
|
379
383
|
|
|
380
|
-
#
|
|
381
|
-
|
|
384
|
+
# Health checking configuration for VM instances. Unhealthy instances are killed
|
|
385
|
+
# and replaced with new instances.
|
|
386
|
+
class LivenessCheck
|
|
382
387
|
include Google::Apis::Core::Hashable
|
|
383
388
|
|
|
384
|
-
#
|
|
385
|
-
# Corresponds to the JSON property `
|
|
389
|
+
# Time before the check is considered failed.
|
|
390
|
+
# Corresponds to the JSON property `timeout`
|
|
386
391
|
# @return [String]
|
|
387
|
-
attr_accessor :
|
|
388
|
-
|
|
389
|
-
#
|
|
390
|
-
#
|
|
391
|
-
#
|
|
392
|
-
|
|
392
|
+
attr_accessor :timeout
|
|
393
|
+
|
|
394
|
+
# Number of consecutive failed checks required before considering the VM
|
|
395
|
+
# unhealthy.
|
|
396
|
+
# Corresponds to the JSON property `failureThreshold`
|
|
397
|
+
# @return [Fixnum]
|
|
398
|
+
attr_accessor :failure_threshold
|
|
399
|
+
|
|
400
|
+
# The initial delay before starting to execute the checks.
|
|
401
|
+
# Corresponds to the JSON property `initialDelay`
|
|
402
|
+
# @return [String]
|
|
403
|
+
attr_accessor :initial_delay
|
|
404
|
+
|
|
405
|
+
# The request path.
|
|
406
|
+
# Corresponds to the JSON property `path`
|
|
407
|
+
# @return [String]
|
|
408
|
+
attr_accessor :path
|
|
409
|
+
|
|
410
|
+
# Host header to send when performing a HTTP Liveness check. Example: "myapp.
|
|
411
|
+
# appspot.com"
|
|
412
|
+
# Corresponds to the JSON property `host`
|
|
413
|
+
# @return [String]
|
|
414
|
+
attr_accessor :host
|
|
415
|
+
|
|
416
|
+
# Number of consecutive successful checks required before considering the VM
|
|
417
|
+
# healthy.
|
|
418
|
+
# Corresponds to the JSON property `successThreshold`
|
|
419
|
+
# @return [Fixnum]
|
|
420
|
+
attr_accessor :success_threshold
|
|
421
|
+
|
|
422
|
+
# Interval between health checks.
|
|
423
|
+
# Corresponds to the JSON property `checkInterval`
|
|
424
|
+
# @return [String]
|
|
425
|
+
attr_accessor :check_interval
|
|
393
426
|
|
|
394
427
|
def initialize(**args)
|
|
395
428
|
update!(**args)
|
|
@@ -397,47 +430,39 @@ module Google
|
|
|
397
430
|
|
|
398
431
|
# Update properties of this object
|
|
399
432
|
def update!(**args)
|
|
400
|
-
@
|
|
401
|
-
@
|
|
433
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
|
434
|
+
@failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
|
|
435
|
+
@initial_delay = args[:initial_delay] if args.key?(:initial_delay)
|
|
436
|
+
@path = args[:path] if args.key?(:path)
|
|
437
|
+
@host = args[:host] if args.key?(:host)
|
|
438
|
+
@success_threshold = args[:success_threshold] if args.key?(:success_threshold)
|
|
439
|
+
@check_interval = args[:check_interval] if args.key?(:check_interval)
|
|
402
440
|
end
|
|
403
441
|
end
|
|
404
442
|
|
|
405
|
-
#
|
|
406
|
-
class
|
|
443
|
+
# Target scaling by network usage. Only applicable for VM runtimes.
|
|
444
|
+
class NetworkUtilization
|
|
407
445
|
include Google::Apis::Core::Hashable
|
|
408
446
|
|
|
409
|
-
#
|
|
410
|
-
#
|
|
411
|
-
#
|
|
412
|
-
|
|
413
|
-
attr_accessor :operation_type
|
|
414
|
-
|
|
415
|
-
# Timestamp that this operation was created.@OutputOnly
|
|
416
|
-
# Corresponds to the JSON property `insertTime`
|
|
417
|
-
# @return [String]
|
|
418
|
-
attr_accessor :insert_time
|
|
419
|
-
|
|
420
|
-
# User who requested this operation.@OutputOnly
|
|
421
|
-
# Corresponds to the JSON property `user`
|
|
422
|
-
# @return [String]
|
|
423
|
-
attr_accessor :user
|
|
447
|
+
# Target packets sent per second.
|
|
448
|
+
# Corresponds to the JSON property `targetSentPacketsPerSecond`
|
|
449
|
+
# @return [Fixnum]
|
|
450
|
+
attr_accessor :target_sent_packets_per_second
|
|
424
451
|
|
|
425
|
-
#
|
|
426
|
-
#
|
|
427
|
-
#
|
|
428
|
-
|
|
429
|
-
attr_accessor :target
|
|
452
|
+
# Target bytes received per second.
|
|
453
|
+
# Corresponds to the JSON property `targetReceivedBytesPerSecond`
|
|
454
|
+
# @return [Fixnum]
|
|
455
|
+
attr_accessor :target_received_bytes_per_second
|
|
430
456
|
|
|
431
|
-
#
|
|
432
|
-
#
|
|
433
|
-
#
|
|
434
|
-
|
|
435
|
-
attr_accessor :method_prop
|
|
457
|
+
# Target packets received per second.
|
|
458
|
+
# Corresponds to the JSON property `targetReceivedPacketsPerSecond`
|
|
459
|
+
# @return [Fixnum]
|
|
460
|
+
attr_accessor :target_received_packets_per_second
|
|
436
461
|
|
|
437
|
-
#
|
|
438
|
-
# Corresponds to the JSON property `
|
|
439
|
-
# @return [
|
|
440
|
-
attr_accessor :
|
|
462
|
+
# Target bytes sent per second.
|
|
463
|
+
# Corresponds to the JSON property `targetSentBytesPerSecond`
|
|
464
|
+
# @return [Fixnum]
|
|
465
|
+
attr_accessor :target_sent_bytes_per_second
|
|
441
466
|
|
|
442
467
|
def initialize(**args)
|
|
443
468
|
update!(**args)
|
|
@@ -445,33 +470,39 @@ module Google
|
|
|
445
470
|
|
|
446
471
|
# Update properties of this object
|
|
447
472
|
def update!(**args)
|
|
448
|
-
@
|
|
449
|
-
@
|
|
450
|
-
@
|
|
451
|
-
@
|
|
452
|
-
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
453
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
|
473
|
+
@target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
|
|
474
|
+
@target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second)
|
|
475
|
+
@target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second)
|
|
476
|
+
@target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second)
|
|
454
477
|
end
|
|
455
478
|
end
|
|
456
479
|
|
|
457
|
-
#
|
|
458
|
-
class
|
|
480
|
+
# A resource that represents Google Cloud Platform location.
|
|
481
|
+
class Location
|
|
459
482
|
include Google::Apis::Core::Hashable
|
|
460
483
|
|
|
461
|
-
#
|
|
462
|
-
# Corresponds to the JSON property `
|
|
484
|
+
# The canonical id for this location. For example: "us-east1".
|
|
485
|
+
# Corresponds to the JSON property `locationId`
|
|
463
486
|
# @return [String]
|
|
464
|
-
attr_accessor :
|
|
487
|
+
attr_accessor :location_id
|
|
465
488
|
|
|
466
|
-
#
|
|
467
|
-
#
|
|
468
|
-
#
|
|
469
|
-
|
|
489
|
+
# Service-specific metadata. For example the available capacity at the given
|
|
490
|
+
# location.
|
|
491
|
+
# Corresponds to the JSON property `metadata`
|
|
492
|
+
# @return [Hash<String,Object>]
|
|
493
|
+
attr_accessor :metadata
|
|
470
494
|
|
|
471
|
-
#
|
|
472
|
-
#
|
|
495
|
+
# Cross-service attributes for the location. For example
|
|
496
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
|
497
|
+
# Corresponds to the JSON property `labels`
|
|
498
|
+
# @return [Hash<String,String>]
|
|
499
|
+
attr_accessor :labels
|
|
500
|
+
|
|
501
|
+
# Resource name for the location, which may vary between implementations. For
|
|
502
|
+
# example: "projects/example-project/locations/us-east1"
|
|
503
|
+
# Corresponds to the JSON property `name`
|
|
473
504
|
# @return [String]
|
|
474
|
-
attr_accessor :
|
|
505
|
+
attr_accessor :name
|
|
475
506
|
|
|
476
507
|
def initialize(**args)
|
|
477
508
|
update!(**args)
|
|
@@ -479,53 +510,57 @@ module Google
|
|
|
479
510
|
|
|
480
511
|
# Update properties of this object
|
|
481
512
|
def update!(**args)
|
|
482
|
-
@
|
|
483
|
-
@
|
|
484
|
-
@
|
|
513
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
|
514
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
515
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
516
|
+
@name = args[:name] if args.key?(:name)
|
|
485
517
|
end
|
|
486
518
|
end
|
|
487
519
|
|
|
488
|
-
#
|
|
489
|
-
|
|
520
|
+
# Health checking configuration for VM instances. Unhealthy instances are killed
|
|
521
|
+
# and replaced with new instances. Only applicable for instances in App Engine
|
|
522
|
+
# flexible environment.
|
|
523
|
+
class HealthCheck
|
|
490
524
|
include Google::Apis::Core::Hashable
|
|
491
525
|
|
|
492
|
-
#
|
|
493
|
-
#
|
|
494
|
-
# Corresponds to the JSON property `method`
|
|
526
|
+
# Interval between health checks.
|
|
527
|
+
# Corresponds to the JSON property `checkInterval`
|
|
495
528
|
# @return [String]
|
|
496
|
-
attr_accessor :
|
|
529
|
+
attr_accessor :check_interval
|
|
497
530
|
|
|
498
|
-
# Time
|
|
499
|
-
# Corresponds to the JSON property `
|
|
531
|
+
# Time before the health check is considered failed.
|
|
532
|
+
# Corresponds to the JSON property `timeout`
|
|
500
533
|
# @return [String]
|
|
501
|
-
attr_accessor :
|
|
534
|
+
attr_accessor :timeout
|
|
502
535
|
|
|
503
|
-
#
|
|
504
|
-
# Corresponds to the JSON property `
|
|
505
|
-
# @return [
|
|
506
|
-
attr_accessor :
|
|
536
|
+
# Number of consecutive failed health checks required before removing traffic.
|
|
537
|
+
# Corresponds to the JSON property `unhealthyThreshold`
|
|
538
|
+
# @return [Fixnum]
|
|
539
|
+
attr_accessor :unhealthy_threshold
|
|
507
540
|
|
|
508
|
-
#
|
|
509
|
-
# Corresponds to the JSON property `
|
|
510
|
-
# @return [
|
|
511
|
-
attr_accessor :
|
|
541
|
+
# Whether to explicitly disable health checks for this instance.
|
|
542
|
+
# Corresponds to the JSON property `disableHealthCheck`
|
|
543
|
+
# @return [Boolean]
|
|
544
|
+
attr_accessor :disable_health_check
|
|
545
|
+
alias_method :disable_health_check?, :disable_health_check
|
|
512
546
|
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
# Corresponds to the JSON property `
|
|
547
|
+
# Host header to send when performing an HTTP health check. Example: "myapp.
|
|
548
|
+
# appspot.com"
|
|
549
|
+
# Corresponds to the JSON property `host`
|
|
516
550
|
# @return [String]
|
|
517
|
-
attr_accessor :
|
|
551
|
+
attr_accessor :host
|
|
518
552
|
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
#
|
|
522
|
-
|
|
553
|
+
# Number of consecutive failed health checks required before an instance is
|
|
554
|
+
# restarted.
|
|
555
|
+
# Corresponds to the JSON property `restartThreshold`
|
|
556
|
+
# @return [Fixnum]
|
|
557
|
+
attr_accessor :restart_threshold
|
|
523
558
|
|
|
524
|
-
#
|
|
525
|
-
#
|
|
526
|
-
# Corresponds to the JSON property `
|
|
527
|
-
# @return [
|
|
528
|
-
attr_accessor :
|
|
559
|
+
# Number of consecutive successful health checks required before receiving
|
|
560
|
+
# traffic.
|
|
561
|
+
# Corresponds to the JSON property `healthyThreshold`
|
|
562
|
+
# @return [Fixnum]
|
|
563
|
+
attr_accessor :healthy_threshold
|
|
529
564
|
|
|
530
565
|
def initialize(**args)
|
|
531
566
|
update!(**args)
|
|
@@ -533,54 +568,51 @@ module Google
|
|
|
533
568
|
|
|
534
569
|
# Update properties of this object
|
|
535
570
|
def update!(**args)
|
|
536
|
-
@
|
|
537
|
-
@
|
|
538
|
-
@
|
|
539
|
-
@
|
|
540
|
-
@
|
|
541
|
-
@
|
|
542
|
-
@
|
|
571
|
+
@check_interval = args[:check_interval] if args.key?(:check_interval)
|
|
572
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
|
573
|
+
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
|
|
574
|
+
@disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
|
|
575
|
+
@host = args[:host] if args.key?(:host)
|
|
576
|
+
@restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
|
|
577
|
+
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
|
|
543
578
|
end
|
|
544
579
|
end
|
|
545
580
|
|
|
546
|
-
#
|
|
547
|
-
|
|
581
|
+
# Readiness checking configuration for VM instances. Unhealthy instances are
|
|
582
|
+
# removed from traffic rotation.
|
|
583
|
+
class ReadinessCheck
|
|
548
584
|
include Google::Apis::Core::Hashable
|
|
549
585
|
|
|
550
|
-
#
|
|
551
|
-
#
|
|
552
|
-
# Corresponds to the JSON property `forwardedPorts`
|
|
553
|
-
# @return [Array<String>]
|
|
554
|
-
attr_accessor :forwarded_ports
|
|
555
|
-
|
|
556
|
-
# Tag to apply to the VM instance during creation.
|
|
557
|
-
# Corresponds to the JSON property `instanceTag`
|
|
586
|
+
# The request path.
|
|
587
|
+
# Corresponds to the JSON property `path`
|
|
558
588
|
# @return [String]
|
|
559
|
-
attr_accessor :
|
|
589
|
+
attr_accessor :path
|
|
560
590
|
|
|
561
|
-
#
|
|
562
|
-
#
|
|
563
|
-
#
|
|
564
|
-
# network.
|
|
565
|
-
# If the network the VM instance is being created in is a Legacy network, then
|
|
566
|
-
# the IP address is allocated from the IPv4Range.
|
|
567
|
-
# If the network the VM instance is being created in is an auto Subnet Mode
|
|
568
|
-
# Network, then only network name should be specified (not the subnetwork_name)
|
|
569
|
-
# and the IP address is created from the IPCidrRange of the subnetwork that
|
|
570
|
-
# exists in that zone for that network.
|
|
571
|
-
# If the network the VM instance is being created in is a custom Subnet Mode
|
|
572
|
-
# Network, then the subnetwork_name must be specified and the IP address is
|
|
573
|
-
# created from the IPCidrRange of the subnetwork.If specified, the subnetwork
|
|
574
|
-
# must exist in the same region as the Flex app.
|
|
575
|
-
# Corresponds to the JSON property `subnetworkName`
|
|
591
|
+
# Host header to send when performing a HTTP Readiness check. Example: "myapp.
|
|
592
|
+
# appspot.com"
|
|
593
|
+
# Corresponds to the JSON property `host`
|
|
576
594
|
# @return [String]
|
|
577
|
-
attr_accessor :
|
|
595
|
+
attr_accessor :host
|
|
578
596
|
|
|
579
|
-
#
|
|
580
|
-
#
|
|
581
|
-
#
|
|
597
|
+
# Number of consecutive successful checks required before receiving traffic.
|
|
598
|
+
# Corresponds to the JSON property `successThreshold`
|
|
599
|
+
# @return [Fixnum]
|
|
600
|
+
attr_accessor :success_threshold
|
|
601
|
+
|
|
602
|
+
# Interval between health checks.
|
|
603
|
+
# Corresponds to the JSON property `checkInterval`
|
|
582
604
|
# @return [String]
|
|
583
|
-
attr_accessor :
|
|
605
|
+
attr_accessor :check_interval
|
|
606
|
+
|
|
607
|
+
# Time before the check is considered failed.
|
|
608
|
+
# Corresponds to the JSON property `timeout`
|
|
609
|
+
# @return [String]
|
|
610
|
+
attr_accessor :timeout
|
|
611
|
+
|
|
612
|
+
# Number of consecutive failed checks required before removing traffic.
|
|
613
|
+
# Corresponds to the JSON property `failureThreshold`
|
|
614
|
+
# @return [Fixnum]
|
|
615
|
+
attr_accessor :failure_threshold
|
|
584
616
|
|
|
585
617
|
def initialize(**args)
|
|
586
618
|
update!(**args)
|
|
@@ -588,90 +620,68 @@ module Google
|
|
|
588
620
|
|
|
589
621
|
# Update properties of this object
|
|
590
622
|
def update!(**args)
|
|
591
|
-
@
|
|
592
|
-
@
|
|
593
|
-
@
|
|
594
|
-
@
|
|
623
|
+
@path = args[:path] if args.key?(:path)
|
|
624
|
+
@host = args[:host] if args.key?(:host)
|
|
625
|
+
@success_threshold = args[:success_threshold] if args.key?(:success_threshold)
|
|
626
|
+
@check_interval = args[:check_interval] if args.key?(:check_interval)
|
|
627
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
|
628
|
+
@failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
|
|
595
629
|
end
|
|
596
630
|
end
|
|
597
631
|
|
|
598
|
-
#
|
|
599
|
-
|
|
600
|
-
class Application
|
|
632
|
+
# Request message for Instances.DebugInstance.
|
|
633
|
+
class DebugInstanceRequest
|
|
601
634
|
include Google::Apis::Core::Hashable
|
|
602
635
|
|
|
603
|
-
#
|
|
604
|
-
#
|
|
605
|
-
#
|
|
606
|
-
#
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
# Full path to the Application resource in the API. Example: apps/myapp.@
|
|
610
|
-
# OutputOnly
|
|
611
|
-
# Corresponds to the JSON property `name`
|
|
636
|
+
# Public SSH key to add to the instance. Examples:
|
|
637
|
+
# [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
|
|
638
|
+
# [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":"
|
|
639
|
+
# [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https://
|
|
640
|
+
# cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
|
|
641
|
+
# Corresponds to the JSON property `sshKey`
|
|
612
642
|
# @return [String]
|
|
613
|
-
attr_accessor :
|
|
643
|
+
attr_accessor :ssh_key
|
|
614
644
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
# Corresponds to the JSON property `id`
|
|
619
|
-
# @return [String]
|
|
620
|
-
attr_accessor :id
|
|
645
|
+
def initialize(**args)
|
|
646
|
+
update!(**args)
|
|
647
|
+
end
|
|
621
648
|
|
|
622
|
-
#
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
649
|
+
# Update properties of this object
|
|
650
|
+
def update!(**args)
|
|
651
|
+
@ssh_key = args[:ssh_key] if args.key?(:ssh_key)
|
|
652
|
+
end
|
|
653
|
+
end
|
|
626
654
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
# central - Central USeurope-west - Western Europeus-east1 - Eastern US
|
|
631
|
-
# Corresponds to the JSON property `locationId`
|
|
632
|
-
# @return [String]
|
|
633
|
-
attr_accessor :location_id
|
|
655
|
+
# Metadata for the given google.longrunning.Operation.
|
|
656
|
+
class OperationMetadataV1Beta5
|
|
657
|
+
include Google::Apis::Core::Hashable
|
|
634
658
|
|
|
635
|
-
#
|
|
636
|
-
#
|
|
659
|
+
# API method name that initiated this operation. Example: google.appengine.
|
|
660
|
+
# v1beta5.Version.CreateVersion.@OutputOnly
|
|
661
|
+
# Corresponds to the JSON property `method`
|
|
637
662
|
# @return [String]
|
|
638
|
-
attr_accessor :
|
|
663
|
+
attr_accessor :method_prop
|
|
639
664
|
|
|
640
|
-
#
|
|
641
|
-
# Corresponds to the JSON property `
|
|
665
|
+
# Timestamp that this operation was created.@OutputOnly
|
|
666
|
+
# Corresponds to the JSON property `insertTime`
|
|
642
667
|
# @return [String]
|
|
643
|
-
attr_accessor :
|
|
644
|
-
|
|
645
|
-
# Identity-Aware Proxy
|
|
646
|
-
# Corresponds to the JSON property `iap`
|
|
647
|
-
# @return [Google::Apis::AppengineV1::IdentityAwareProxy]
|
|
648
|
-
attr_accessor :iap
|
|
668
|
+
attr_accessor :insert_time
|
|
649
669
|
|
|
650
|
-
#
|
|
651
|
-
#
|
|
652
|
-
# Corresponds to the JSON property `authDomain`
|
|
670
|
+
# Timestamp that this operation completed.@OutputOnly
|
|
671
|
+
# Corresponds to the JSON property `endTime`
|
|
653
672
|
# @return [String]
|
|
654
|
-
attr_accessor :
|
|
673
|
+
attr_accessor :end_time
|
|
655
674
|
|
|
656
|
-
#
|
|
657
|
-
#
|
|
658
|
-
# used by the gcloud deployment commands.@OutputOnly
|
|
659
|
-
# Corresponds to the JSON property `codeBucket`
|
|
675
|
+
# User who requested this operation.@OutputOnly
|
|
676
|
+
# Corresponds to the JSON property `user`
|
|
660
677
|
# @return [String]
|
|
661
|
-
attr_accessor :
|
|
678
|
+
attr_accessor :user
|
|
662
679
|
|
|
663
|
-
#
|
|
664
|
-
#
|
|
665
|
-
# Corresponds to the JSON property `
|
|
680
|
+
# Name of the resource that this operation is acting on. Example: apps/myapp/
|
|
681
|
+
# services/default.@OutputOnly
|
|
682
|
+
# Corresponds to the JSON property `target`
|
|
666
683
|
# @return [String]
|
|
667
|
-
attr_accessor :
|
|
668
|
-
|
|
669
|
-
# HTTP path dispatch rules for requests to the application that do not
|
|
670
|
-
# explicitly target a service or version. Rules are order-dependent. Up to 20
|
|
671
|
-
# dispatch rules can be supported.@OutputOnly
|
|
672
|
-
# Corresponds to the JSON property `dispatchRules`
|
|
673
|
-
# @return [Array<Google::Apis::AppengineV1::UrlDispatchRule>]
|
|
674
|
-
attr_accessor :dispatch_rules
|
|
684
|
+
attr_accessor :target
|
|
675
685
|
|
|
676
686
|
def initialize(**args)
|
|
677
687
|
update!(**args)
|
|
@@ -679,182 +689,211 @@ module Google
|
|
|
679
689
|
|
|
680
690
|
# Update properties of this object
|
|
681
691
|
def update!(**args)
|
|
682
|
-
@
|
|
683
|
-
@
|
|
684
|
-
@
|
|
685
|
-
@
|
|
686
|
-
@
|
|
687
|
-
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
|
688
|
-
@default_hostname = args[:default_hostname] if args.key?(:default_hostname)
|
|
689
|
-
@iap = args[:iap] if args.key?(:iap)
|
|
690
|
-
@auth_domain = args[:auth_domain] if args.key?(:auth_domain)
|
|
691
|
-
@code_bucket = args[:code_bucket] if args.key?(:code_bucket)
|
|
692
|
-
@default_bucket = args[:default_bucket] if args.key?(:default_bucket)
|
|
693
|
-
@dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
|
|
692
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
693
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
694
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
695
|
+
@user = args[:user] if args.key?(:user)
|
|
696
|
+
@target = args[:target] if args.key?(:target)
|
|
694
697
|
end
|
|
695
698
|
end
|
|
696
699
|
|
|
697
|
-
#
|
|
698
|
-
#
|
|
699
|
-
class
|
|
700
|
+
# A Version resource is a specific set of source code and configuration files
|
|
701
|
+
# that are deployed into a service.
|
|
702
|
+
class Version
|
|
700
703
|
include Google::Apis::Core::Hashable
|
|
701
704
|
|
|
702
|
-
#
|
|
703
|
-
#
|
|
704
|
-
#
|
|
705
|
+
# Instance class that is used to run this version. Valid values are:
|
|
706
|
+
# AutomaticScaling: F1, F2, F4, F4_1G
|
|
707
|
+
# ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
|
|
708
|
+
# AutomaticScaling and B1 for ManualScaling or BasicScaling.
|
|
709
|
+
# Corresponds to the JSON property `instanceClass`
|
|
705
710
|
# @return [String]
|
|
706
|
-
attr_accessor :
|
|
711
|
+
attr_accessor :instance_class
|
|
707
712
|
|
|
708
|
-
#
|
|
709
|
-
#
|
|
710
|
-
#
|
|
713
|
+
# Current serving status of this version. Only the versions with a SERVING
|
|
714
|
+
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
|
715
|
+
# invalid value. Defaults to SERVING.
|
|
716
|
+
# Corresponds to the JSON property `servingStatus`
|
|
711
717
|
# @return [String]
|
|
712
|
-
attr_accessor :
|
|
718
|
+
attr_accessor :serving_status
|
|
713
719
|
|
|
714
|
-
#
|
|
715
|
-
# Corresponds to the JSON property `
|
|
716
|
-
# @return [
|
|
717
|
-
attr_accessor :
|
|
720
|
+
# Code and application artifacts used to deploy a version to App Engine.
|
|
721
|
+
# Corresponds to the JSON property `deployment`
|
|
722
|
+
# @return [Google::Apis::AppengineV1::Deployment]
|
|
723
|
+
attr_accessor :deployment
|
|
718
724
|
|
|
719
|
-
#
|
|
720
|
-
#
|
|
721
|
-
# Corresponds to the JSON property `vmZoneName`
|
|
725
|
+
# Time that this version was created.@OutputOnly
|
|
726
|
+
# Corresponds to the JSON property `createTime`
|
|
722
727
|
# @return [String]
|
|
723
|
-
attr_accessor :
|
|
728
|
+
attr_accessor :create_time
|
|
724
729
|
|
|
725
|
-
#
|
|
726
|
-
#
|
|
727
|
-
#
|
|
730
|
+
# Machine resources for a version.
|
|
731
|
+
# Corresponds to the JSON property `resources`
|
|
732
|
+
# @return [Google::Apis::AppengineV1::Resources]
|
|
733
|
+
attr_accessor :resources
|
|
734
|
+
|
|
735
|
+
# Before an application can receive email or XMPP messages, the application must
|
|
736
|
+
# be configured to enable the service.
|
|
737
|
+
# Corresponds to the JSON property `inboundServices`
|
|
738
|
+
# @return [Array<String>]
|
|
739
|
+
attr_accessor :inbound_services
|
|
740
|
+
|
|
741
|
+
# Custom static error pages. Limited to 10KB per page.Only returned in GET
|
|
742
|
+
# requests if view=FULL is set.
|
|
743
|
+
# Corresponds to the JSON property `errorHandlers`
|
|
744
|
+
# @return [Array<Google::Apis::AppengineV1::ErrorHandler>]
|
|
745
|
+
attr_accessor :error_handlers
|
|
746
|
+
|
|
747
|
+
# Duration that static files should be cached by web proxies and browsers. Only
|
|
748
|
+
# applicable if the corresponding StaticFilesHandler (https://cloud.google.com/
|
|
749
|
+
# appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
|
|
750
|
+
# staticfileshandler) does not specify its own expiration time.Only returned in
|
|
751
|
+
# GET requests if view=FULL is set.
|
|
752
|
+
# Corresponds to the JSON property `defaultExpiration`
|
|
728
753
|
# @return [String]
|
|
729
|
-
attr_accessor :
|
|
754
|
+
attr_accessor :default_expiration
|
|
730
755
|
|
|
731
|
-
#
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
|
|
756
|
+
# Configuration for third-party Python runtime libraries that are required by
|
|
757
|
+
# the application.Only returned in GET requests if view=FULL is set.
|
|
758
|
+
# Corresponds to the JSON property `libraries`
|
|
759
|
+
# @return [Array<Google::Apis::AppengineV1::Library>]
|
|
760
|
+
attr_accessor :libraries
|
|
735
761
|
|
|
736
|
-
#
|
|
737
|
-
#
|
|
738
|
-
# Corresponds to the JSON property `
|
|
762
|
+
# Files that match this pattern will not be built into this version. Only
|
|
763
|
+
# applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
|
|
764
|
+
# Corresponds to the JSON property `nobuildFilesRegex`
|
|
739
765
|
# @return [String]
|
|
740
|
-
attr_accessor :
|
|
766
|
+
attr_accessor :nobuild_files_regex
|
|
741
767
|
|
|
742
|
-
#
|
|
743
|
-
#
|
|
768
|
+
# A service with basic scaling will create an instance when the application
|
|
769
|
+
# receives a request. The instance will be turned down when the app becomes idle.
|
|
770
|
+
# Basic scaling is ideal for work that is intermittent or driven by user
|
|
771
|
+
# activity.
|
|
772
|
+
# Corresponds to the JSON property `basicScaling`
|
|
773
|
+
# @return [Google::Apis::AppengineV1::BasicScaling]
|
|
774
|
+
attr_accessor :basic_scaling
|
|
775
|
+
|
|
776
|
+
# Desired runtime. Example: python27.
|
|
777
|
+
# Corresponds to the JSON property `runtime`
|
|
778
|
+
# @return [String]
|
|
779
|
+
attr_accessor :runtime
|
|
780
|
+
|
|
781
|
+
# Email address of the user who created this version.@OutputOnly
|
|
782
|
+
# Corresponds to the JSON property `createdBy`
|
|
783
|
+
# @return [String]
|
|
784
|
+
attr_accessor :created_by
|
|
785
|
+
|
|
786
|
+
# Relative name of the version within the service. Example: v1. Version names
|
|
787
|
+
# can contain only lowercase letters, numbers, or hyphens. Reserved names: "
|
|
788
|
+
# default", "latest", and any name with the prefix "ah-".
|
|
744
789
|
# Corresponds to the JSON property `id`
|
|
745
790
|
# @return [String]
|
|
746
791
|
attr_accessor :id
|
|
747
792
|
|
|
748
|
-
#
|
|
749
|
-
#
|
|
750
|
-
#
|
|
751
|
-
|
|
793
|
+
# Environment variables available to the application.Only returned in GET
|
|
794
|
+
# requests if view=FULL is set.
|
|
795
|
+
# Corresponds to the JSON property `envVariables`
|
|
796
|
+
# @return [Hash<String,String>]
|
|
797
|
+
attr_accessor :env_variables
|
|
752
798
|
|
|
753
|
-
#
|
|
754
|
-
#
|
|
755
|
-
# Corresponds to the JSON property `
|
|
756
|
-
# @return [
|
|
757
|
-
attr_accessor :
|
|
799
|
+
# Health checking configuration for VM instances. Unhealthy instances are killed
|
|
800
|
+
# and replaced with new instances.
|
|
801
|
+
# Corresponds to the JSON property `livenessCheck`
|
|
802
|
+
# @return [Google::Apis::AppengineV1::LivenessCheck]
|
|
803
|
+
attr_accessor :liveness_check
|
|
758
804
|
|
|
759
|
-
#
|
|
760
|
-
# Corresponds to the JSON property `
|
|
761
|
-
# @return [
|
|
762
|
-
attr_accessor :
|
|
805
|
+
# Extra network settings. Only applicable for VM runtimes.
|
|
806
|
+
# Corresponds to the JSON property `network`
|
|
807
|
+
# @return [Google::Apis::AppengineV1::Network]
|
|
808
|
+
attr_accessor :network
|
|
763
809
|
|
|
764
|
-
#
|
|
765
|
-
#
|
|
766
|
-
#
|
|
767
|
-
|
|
810
|
+
# Metadata settings that are supplied to this version to enable beta runtime
|
|
811
|
+
# features.
|
|
812
|
+
# Corresponds to the JSON property `betaSettings`
|
|
813
|
+
# @return [Hash<String,String>]
|
|
814
|
+
attr_accessor :beta_settings
|
|
768
815
|
|
|
769
|
-
#
|
|
770
|
-
# Corresponds to the JSON property `
|
|
816
|
+
# App Engine execution environment for this version.Defaults to standard.
|
|
817
|
+
# Corresponds to the JSON property `env`
|
|
771
818
|
# @return [String]
|
|
772
|
-
attr_accessor :
|
|
819
|
+
attr_accessor :env
|
|
773
820
|
|
|
774
|
-
#
|
|
775
|
-
#
|
|
776
|
-
#
|
|
777
|
-
#
|
|
778
|
-
|
|
779
|
-
|
|
821
|
+
# An ordered list of URL-matching patterns that should be applied to incoming
|
|
822
|
+
# requests. The first matching URL handles the request and other request
|
|
823
|
+
# handlers are not attempted.Only returned in GET requests if view=FULL is set.
|
|
824
|
+
# Corresponds to the JSON property `handlers`
|
|
825
|
+
# @return [Array<Google::Apis::AppengineV1::UrlMap>]
|
|
826
|
+
attr_accessor :handlers
|
|
780
827
|
|
|
781
|
-
#
|
|
782
|
-
#
|
|
783
|
-
#
|
|
784
|
-
|
|
828
|
+
# Automatic scaling is based on request rate, response latencies, and other
|
|
829
|
+
# application metrics.
|
|
830
|
+
# Corresponds to the JSON property `automaticScaling`
|
|
831
|
+
# @return [Google::Apis::AppengineV1::AutomaticScaling]
|
|
832
|
+
attr_accessor :automatic_scaling
|
|
785
833
|
|
|
786
|
-
#
|
|
787
|
-
#
|
|
788
|
-
#
|
|
789
|
-
|
|
834
|
+
# Total size in bytes of all the files that are included in this version and
|
|
835
|
+
# curerntly hosted on the App Engine disk.@OutputOnly
|
|
836
|
+
# Corresponds to the JSON property `diskUsageBytes`
|
|
837
|
+
# @return [Fixnum]
|
|
838
|
+
attr_accessor :disk_usage_bytes
|
|
790
839
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
840
|
+
# Health checking configuration for VM instances. Unhealthy instances are killed
|
|
841
|
+
# and replaced with new instances. Only applicable for instances in App Engine
|
|
842
|
+
# flexible environment.
|
|
843
|
+
# Corresponds to the JSON property `healthCheck`
|
|
844
|
+
# @return [Google::Apis::AppengineV1::HealthCheck]
|
|
845
|
+
attr_accessor :health_check
|
|
794
846
|
|
|
795
|
-
#
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
@vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
|
|
801
|
-
@name = args[:name] if args.key?(:name)
|
|
802
|
-
@average_latency = args[:average_latency] if args.key?(:average_latency)
|
|
803
|
-
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
|
|
804
|
-
@id = args[:id] if args.key?(:id)
|
|
805
|
-
@memory_usage = args[:memory_usage] if args.key?(:memory_usage)
|
|
806
|
-
@vm_status = args[:vm_status] if args.key?(:vm_status)
|
|
807
|
-
@availability = args[:availability] if args.key?(:availability)
|
|
808
|
-
@errors = args[:errors] if args.key?(:errors)
|
|
809
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
810
|
-
@vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
|
|
811
|
-
@requests = args[:requests] if args.key?(:requests)
|
|
812
|
-
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
|
813
|
-
end
|
|
814
|
-
end
|
|
847
|
+
# Whether multiple requests can be dispatched to this version at once.
|
|
848
|
+
# Corresponds to the JSON property `threadsafe`
|
|
849
|
+
# @return [Boolean]
|
|
850
|
+
attr_accessor :threadsafe
|
|
851
|
+
alias_method :threadsafe?, :threadsafe
|
|
815
852
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
853
|
+
# Readiness checking configuration for VM instances. Unhealthy instances are
|
|
854
|
+
# removed from traffic rotation.
|
|
855
|
+
# Corresponds to the JSON property `readinessCheck`
|
|
856
|
+
# @return [Google::Apis::AppengineV1::ReadinessCheck]
|
|
857
|
+
attr_accessor :readiness_check
|
|
820
858
|
|
|
821
|
-
#
|
|
822
|
-
#
|
|
823
|
-
#
|
|
824
|
-
|
|
859
|
+
# A service with manual scaling runs continuously, allowing you to perform
|
|
860
|
+
# complex initialization and rely on the state of its memory over time.
|
|
861
|
+
# Corresponds to the JSON property `manualScaling`
|
|
862
|
+
# @return [Google::Apis::AppengineV1::ManualScaling]
|
|
863
|
+
attr_accessor :manual_scaling
|
|
825
864
|
|
|
826
|
-
#
|
|
827
|
-
#
|
|
865
|
+
# Full path to the Version resource in the API. Example: apps/myapp/services/
|
|
866
|
+
# default/versions/v1.@OutputOnly
|
|
867
|
+
# Corresponds to the JSON property `name`
|
|
828
868
|
# @return [String]
|
|
829
|
-
attr_accessor :
|
|
869
|
+
attr_accessor :name
|
|
830
870
|
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
# Corresponds to the JSON property `
|
|
834
|
-
# @return [
|
|
835
|
-
attr_accessor :
|
|
871
|
+
# Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
|
|
872
|
+
# endpoints/) configuration for API handlers.
|
|
873
|
+
# Corresponds to the JSON property `apiConfig`
|
|
874
|
+
# @return [Google::Apis::AppengineV1::ApiConfigHandler]
|
|
875
|
+
attr_accessor :api_config
|
|
836
876
|
|
|
837
|
-
#
|
|
838
|
-
#
|
|
839
|
-
#
|
|
840
|
-
#
|
|
841
|
-
|
|
877
|
+
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
|
878
|
+
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
|
879
|
+
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
|
880
|
+
# "service" resource in the Service Management API (https://cloud.google.com/
|
|
881
|
+
# service-management/overview).
|
|
882
|
+
# Corresponds to the JSON property `endpointsApiService`
|
|
883
|
+
# @return [Google::Apis::AppengineV1::EndpointsApiService]
|
|
884
|
+
attr_accessor :endpoints_api_service
|
|
842
885
|
|
|
843
|
-
#
|
|
844
|
-
#
|
|
886
|
+
# Serving URL for this version. Example: "https://myversion-dot-myservice-dot-
|
|
887
|
+
# myapp.appspot.com"@OutputOnly
|
|
888
|
+
# Corresponds to the JSON property `versionUrl`
|
|
845
889
|
# @return [String]
|
|
846
|
-
attr_accessor :
|
|
847
|
-
|
|
848
|
-
# Number of consecutive failed checks required before considering the VM
|
|
849
|
-
# unhealthy.
|
|
850
|
-
# Corresponds to the JSON property `failureThreshold`
|
|
851
|
-
# @return [Fixnum]
|
|
852
|
-
attr_accessor :failure_threshold
|
|
890
|
+
attr_accessor :version_url
|
|
853
891
|
|
|
854
|
-
#
|
|
855
|
-
# Corresponds to the JSON property `
|
|
856
|
-
# @return [
|
|
857
|
-
attr_accessor :
|
|
892
|
+
# Whether to deploy this version in a container on a virtual machine.
|
|
893
|
+
# Corresponds to the JSON property `vm`
|
|
894
|
+
# @return [Boolean]
|
|
895
|
+
attr_accessor :vm
|
|
896
|
+
alias_method :vm?, :vm
|
|
858
897
|
|
|
859
898
|
def initialize(**args)
|
|
860
899
|
update!(**args)
|
|
@@ -862,79 +901,73 @@ module Google
|
|
|
862
901
|
|
|
863
902
|
# Update properties of this object
|
|
864
903
|
def update!(**args)
|
|
865
|
-
@
|
|
866
|
-
@
|
|
867
|
-
@
|
|
868
|
-
@
|
|
869
|
-
@
|
|
870
|
-
@
|
|
871
|
-
@
|
|
904
|
+
@instance_class = args[:instance_class] if args.key?(:instance_class)
|
|
905
|
+
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
|
906
|
+
@deployment = args[:deployment] if args.key?(:deployment)
|
|
907
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
908
|
+
@resources = args[:resources] if args.key?(:resources)
|
|
909
|
+
@inbound_services = args[:inbound_services] if args.key?(:inbound_services)
|
|
910
|
+
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)
|
|
911
|
+
@default_expiration = args[:default_expiration] if args.key?(:default_expiration)
|
|
912
|
+
@libraries = args[:libraries] if args.key?(:libraries)
|
|
913
|
+
@nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
|
|
914
|
+
@basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
|
|
915
|
+
@runtime = args[:runtime] if args.key?(:runtime)
|
|
916
|
+
@created_by = args[:created_by] if args.key?(:created_by)
|
|
917
|
+
@id = args[:id] if args.key?(:id)
|
|
918
|
+
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
|
919
|
+
@liveness_check = args[:liveness_check] if args.key?(:liveness_check)
|
|
920
|
+
@network = args[:network] if args.key?(:network)
|
|
921
|
+
@beta_settings = args[:beta_settings] if args.key?(:beta_settings)
|
|
922
|
+
@env = args[:env] if args.key?(:env)
|
|
923
|
+
@handlers = args[:handlers] if args.key?(:handlers)
|
|
924
|
+
@automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
|
|
925
|
+
@disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
|
|
926
|
+
@health_check = args[:health_check] if args.key?(:health_check)
|
|
927
|
+
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
|
928
|
+
@readiness_check = args[:readiness_check] if args.key?(:readiness_check)
|
|
929
|
+
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
|
930
|
+
@name = args[:name] if args.key?(:name)
|
|
931
|
+
@api_config = args[:api_config] if args.key?(:api_config)
|
|
932
|
+
@endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
|
|
933
|
+
@version_url = args[:version_url] if args.key?(:version_url)
|
|
934
|
+
@vm = args[:vm] if args.key?(:vm)
|
|
872
935
|
end
|
|
873
936
|
end
|
|
874
937
|
|
|
875
|
-
#
|
|
876
|
-
class
|
|
938
|
+
# Request message for 'Applications.RepairApplication'.
|
|
939
|
+
class RepairApplicationRequest
|
|
877
940
|
include Google::Apis::Core::Hashable
|
|
878
941
|
|
|
879
|
-
# Resource name for the location, which may vary between implementations. For
|
|
880
|
-
# example: "projects/example-project/locations/us-east1"
|
|
881
|
-
# Corresponds to the JSON property `name`
|
|
882
|
-
# @return [String]
|
|
883
|
-
attr_accessor :name
|
|
884
|
-
|
|
885
|
-
# The canonical id for this location. For example: "us-east1".
|
|
886
|
-
# Corresponds to the JSON property `locationId`
|
|
887
|
-
# @return [String]
|
|
888
|
-
attr_accessor :location_id
|
|
889
|
-
|
|
890
|
-
# Service-specific metadata. For example the available capacity at the given
|
|
891
|
-
# location.
|
|
892
|
-
# Corresponds to the JSON property `metadata`
|
|
893
|
-
# @return [Hash<String,Object>]
|
|
894
|
-
attr_accessor :metadata
|
|
895
|
-
|
|
896
|
-
# Cross-service attributes for the location. For example
|
|
897
|
-
# `"cloud.googleapis.com/region": "us-east1"`
|
|
898
|
-
# Corresponds to the JSON property `labels`
|
|
899
|
-
# @return [Hash<String,String>]
|
|
900
|
-
attr_accessor :labels
|
|
901
|
-
|
|
902
942
|
def initialize(**args)
|
|
903
943
|
update!(**args)
|
|
904
944
|
end
|
|
905
945
|
|
|
906
946
|
# Update properties of this object
|
|
907
947
|
def update!(**args)
|
|
908
|
-
@name = args[:name] if args.key?(:name)
|
|
909
|
-
@location_id = args[:location_id] if args.key?(:location_id)
|
|
910
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
|
911
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
912
948
|
end
|
|
913
949
|
end
|
|
914
950
|
|
|
915
|
-
#
|
|
916
|
-
|
|
951
|
+
# Single source file that is part of the version to be deployed. Each source
|
|
952
|
+
# file that is deployed must be specified separately.
|
|
953
|
+
class FileInfo
|
|
917
954
|
include Google::Apis::Core::Hashable
|
|
918
955
|
|
|
919
|
-
#
|
|
920
|
-
# Corresponds to the JSON property `
|
|
921
|
-
# @return [
|
|
922
|
-
attr_accessor :
|
|
923
|
-
|
|
924
|
-
# Target packets sent per second.
|
|
925
|
-
# Corresponds to the JSON property `targetSentPacketsPerSecond`
|
|
926
|
-
# @return [Fixnum]
|
|
927
|
-
attr_accessor :target_sent_packets_per_second
|
|
956
|
+
# The MIME type of the file.Defaults to the value from Google Cloud Storage.
|
|
957
|
+
# Corresponds to the JSON property `mimeType`
|
|
958
|
+
# @return [String]
|
|
959
|
+
attr_accessor :mime_type
|
|
928
960
|
|
|
929
|
-
#
|
|
930
|
-
#
|
|
931
|
-
#
|
|
932
|
-
|
|
961
|
+
# URL source to use to fetch this file. Must be a URL to a resource in Google
|
|
962
|
+
# Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
|
|
963
|
+
# Corresponds to the JSON property `sourceUrl`
|
|
964
|
+
# @return [String]
|
|
965
|
+
attr_accessor :source_url
|
|
933
966
|
|
|
934
|
-
#
|
|
935
|
-
# Corresponds to the JSON property `
|
|
936
|
-
# @return [
|
|
937
|
-
attr_accessor :
|
|
967
|
+
# The SHA1 hash of the file, in hex.
|
|
968
|
+
# Corresponds to the JSON property `sha1Sum`
|
|
969
|
+
# @return [String]
|
|
970
|
+
attr_accessor :sha1_sum
|
|
938
971
|
|
|
939
972
|
def initialize(**args)
|
|
940
973
|
update!(**args)
|
|
@@ -942,57 +975,20 @@ module Google
|
|
|
942
975
|
|
|
943
976
|
# Update properties of this object
|
|
944
977
|
def update!(**args)
|
|
945
|
-
@
|
|
946
|
-
@
|
|
947
|
-
@
|
|
948
|
-
@target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second)
|
|
978
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
979
|
+
@source_url = args[:source_url] if args.key?(:source_url)
|
|
980
|
+
@sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
|
|
949
981
|
end
|
|
950
982
|
end
|
|
951
983
|
|
|
952
|
-
#
|
|
953
|
-
|
|
954
|
-
# flexible environment.
|
|
955
|
-
class HealthCheck
|
|
984
|
+
# Executes a script to handle the request that matches the URL pattern.
|
|
985
|
+
class ScriptHandler
|
|
956
986
|
include Google::Apis::Core::Hashable
|
|
957
987
|
|
|
958
|
-
#
|
|
959
|
-
# Corresponds to the JSON property `
|
|
960
|
-
# @return [Fixnum]
|
|
961
|
-
attr_accessor :unhealthy_threshold
|
|
962
|
-
|
|
963
|
-
# Whether to explicitly disable health checks for this instance.
|
|
964
|
-
# Corresponds to the JSON property `disableHealthCheck`
|
|
965
|
-
# @return [Boolean]
|
|
966
|
-
attr_accessor :disable_health_check
|
|
967
|
-
alias_method :disable_health_check?, :disable_health_check
|
|
968
|
-
|
|
969
|
-
# Host header to send when performing an HTTP health check. Example: "myapp.
|
|
970
|
-
# appspot.com"
|
|
971
|
-
# Corresponds to the JSON property `host`
|
|
972
|
-
# @return [String]
|
|
973
|
-
attr_accessor :host
|
|
974
|
-
|
|
975
|
-
# Number of consecutive failed health checks required before an instance is
|
|
976
|
-
# restarted.
|
|
977
|
-
# Corresponds to the JSON property `restartThreshold`
|
|
978
|
-
# @return [Fixnum]
|
|
979
|
-
attr_accessor :restart_threshold
|
|
980
|
-
|
|
981
|
-
# Number of consecutive successful health checks required before receiving
|
|
982
|
-
# traffic.
|
|
983
|
-
# Corresponds to the JSON property `healthyThreshold`
|
|
984
|
-
# @return [Fixnum]
|
|
985
|
-
attr_accessor :healthy_threshold
|
|
986
|
-
|
|
987
|
-
# Interval between health checks.
|
|
988
|
-
# Corresponds to the JSON property `checkInterval`
|
|
989
|
-
# @return [String]
|
|
990
|
-
attr_accessor :check_interval
|
|
991
|
-
|
|
992
|
-
# Time before the health check is considered failed.
|
|
993
|
-
# Corresponds to the JSON property `timeout`
|
|
988
|
+
# Path to the script from the application root directory.
|
|
989
|
+
# Corresponds to the JSON property `scriptPath`
|
|
994
990
|
# @return [String]
|
|
995
|
-
attr_accessor :
|
|
991
|
+
attr_accessor :script_path
|
|
996
992
|
|
|
997
993
|
def initialize(**args)
|
|
998
994
|
update!(**args)
|
|
@@ -1000,51 +996,40 @@ module Google
|
|
|
1000
996
|
|
|
1001
997
|
# Update properties of this object
|
|
1002
998
|
def update!(**args)
|
|
1003
|
-
@
|
|
1004
|
-
@disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
|
|
1005
|
-
@host = args[:host] if args.key?(:host)
|
|
1006
|
-
@restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
|
|
1007
|
-
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
|
|
1008
|
-
@check_interval = args[:check_interval] if args.key?(:check_interval)
|
|
1009
|
-
@timeout = args[:timeout] if args.key?(:timeout)
|
|
999
|
+
@script_path = args[:script_path] if args.key?(:script_path)
|
|
1010
1000
|
end
|
|
1011
1001
|
end
|
|
1012
1002
|
|
|
1013
|
-
#
|
|
1014
|
-
|
|
1015
|
-
class ReadinessCheck
|
|
1003
|
+
# Metadata for the given google.longrunning.Operation.
|
|
1004
|
+
class OperationMetadataExperimental
|
|
1016
1005
|
include Google::Apis::Core::Hashable
|
|
1017
1006
|
|
|
1018
|
-
#
|
|
1019
|
-
#
|
|
1007
|
+
# API method that initiated this operation. Example: google.appengine.
|
|
1008
|
+
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
|
|
1009
|
+
# Corresponds to the JSON property `method`
|
|
1020
1010
|
# @return [String]
|
|
1021
|
-
attr_accessor :
|
|
1011
|
+
attr_accessor :method_prop
|
|
1022
1012
|
|
|
1023
|
-
# Time
|
|
1024
|
-
# Corresponds to the JSON property `
|
|
1013
|
+
# Time that this operation was created.@OutputOnly
|
|
1014
|
+
# Corresponds to the JSON property `insertTime`
|
|
1025
1015
|
# @return [String]
|
|
1026
|
-
attr_accessor :
|
|
1027
|
-
|
|
1028
|
-
# Number of consecutive failed checks required before removing traffic.
|
|
1029
|
-
# Corresponds to the JSON property `failureThreshold`
|
|
1030
|
-
# @return [Fixnum]
|
|
1031
|
-
attr_accessor :failure_threshold
|
|
1016
|
+
attr_accessor :insert_time
|
|
1032
1017
|
|
|
1033
|
-
#
|
|
1034
|
-
# Corresponds to the JSON property `
|
|
1018
|
+
# Time that this operation completed.@OutputOnly
|
|
1019
|
+
# Corresponds to the JSON property `endTime`
|
|
1035
1020
|
# @return [String]
|
|
1036
|
-
attr_accessor :
|
|
1021
|
+
attr_accessor :end_time
|
|
1037
1022
|
|
|
1038
|
-
#
|
|
1039
|
-
#
|
|
1040
|
-
# Corresponds to the JSON property `host`
|
|
1023
|
+
# User who requested this operation.@OutputOnly
|
|
1024
|
+
# Corresponds to the JSON property `user`
|
|
1041
1025
|
# @return [String]
|
|
1042
|
-
attr_accessor :
|
|
1026
|
+
attr_accessor :user
|
|
1043
1027
|
|
|
1044
|
-
#
|
|
1045
|
-
#
|
|
1046
|
-
#
|
|
1047
|
-
|
|
1028
|
+
# Name of the resource that this operation is acting on. Example: apps/myapp/
|
|
1029
|
+
# customDomains/example.com.@OutputOnly
|
|
1030
|
+
# Corresponds to the JSON property `target`
|
|
1031
|
+
# @return [String]
|
|
1032
|
+
attr_accessor :target
|
|
1048
1033
|
|
|
1049
1034
|
def initialize(**args)
|
|
1050
1035
|
update!(**args)
|
|
@@ -1052,27 +1037,36 @@ module Google
|
|
|
1052
1037
|
|
|
1053
1038
|
# Update properties of this object
|
|
1054
1039
|
def update!(**args)
|
|
1055
|
-
@
|
|
1056
|
-
@
|
|
1057
|
-
@
|
|
1058
|
-
@
|
|
1059
|
-
@
|
|
1060
|
-
@success_threshold = args[:success_threshold] if args.key?(:success_threshold)
|
|
1040
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
1041
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
1042
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1043
|
+
@user = args[:user] if args.key?(:user)
|
|
1044
|
+
@target = args[:target] if args.key?(:target)
|
|
1061
1045
|
end
|
|
1062
1046
|
end
|
|
1063
1047
|
|
|
1064
|
-
#
|
|
1065
|
-
|
|
1048
|
+
# Traffic routing configuration for versions within a single service. Traffic
|
|
1049
|
+
# splits define how traffic directed to the service is assigned to versions.
|
|
1050
|
+
class TrafficSplit
|
|
1066
1051
|
include Google::Apis::Core::Hashable
|
|
1067
1052
|
|
|
1068
|
-
#
|
|
1069
|
-
#
|
|
1070
|
-
#
|
|
1071
|
-
#
|
|
1072
|
-
# cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
|
|
1073
|
-
# Corresponds to the JSON property `sshKey`
|
|
1053
|
+
# Mechanism used to determine which version a request is sent to. The traffic
|
|
1054
|
+
# selection algorithm will be stable for either type until allocations are
|
|
1055
|
+
# changed.
|
|
1056
|
+
# Corresponds to the JSON property `shardBy`
|
|
1074
1057
|
# @return [String]
|
|
1075
|
-
attr_accessor :
|
|
1058
|
+
attr_accessor :shard_by
|
|
1059
|
+
|
|
1060
|
+
# Mapping from version IDs within the service to fractional (0.000, 1]
|
|
1061
|
+
# allocations of traffic for that version. Each version can be specified only
|
|
1062
|
+
# once, but some versions in the service may not have any traffic allocation.
|
|
1063
|
+
# Services that have traffic allocated cannot be deleted until either the
|
|
1064
|
+
# service is deleted or their traffic allocation is removed. Allocations must
|
|
1065
|
+
# sum to 1. Up to two decimal place precision is supported for IP-based splits
|
|
1066
|
+
# and up to three decimal places is supported for cookie-based splits.
|
|
1067
|
+
# Corresponds to the JSON property `allocations`
|
|
1068
|
+
# @return [Hash<String,Float>]
|
|
1069
|
+
attr_accessor :allocations
|
|
1076
1070
|
|
|
1077
1071
|
def initialize(**args)
|
|
1078
1072
|
update!(**args)
|
|
@@ -1080,40 +1074,52 @@ module Google
|
|
|
1080
1074
|
|
|
1081
1075
|
# Update properties of this object
|
|
1082
1076
|
def update!(**args)
|
|
1083
|
-
@
|
|
1077
|
+
@shard_by = args[:shard_by] if args.key?(:shard_by)
|
|
1078
|
+
@allocations = args[:allocations] if args.key?(:allocations)
|
|
1084
1079
|
end
|
|
1085
1080
|
end
|
|
1086
1081
|
|
|
1087
1082
|
# Metadata for the given google.longrunning.Operation.
|
|
1088
|
-
class
|
|
1083
|
+
class OperationMetadataV1Beta
|
|
1089
1084
|
include Google::Apis::Core::Hashable
|
|
1090
1085
|
|
|
1091
|
-
#
|
|
1092
|
-
#
|
|
1093
|
-
# Corresponds to the JSON property `
|
|
1086
|
+
# Name of the resource that this operation is acting on. Example: apps/myapp/
|
|
1087
|
+
# services/default.@OutputOnly
|
|
1088
|
+
# Corresponds to the JSON property `target`
|
|
1094
1089
|
# @return [String]
|
|
1095
|
-
attr_accessor :
|
|
1090
|
+
attr_accessor :target
|
|
1096
1091
|
|
|
1097
|
-
#
|
|
1098
|
-
# Corresponds to the JSON property `
|
|
1092
|
+
# User who requested this operation.@OutputOnly
|
|
1093
|
+
# Corresponds to the JSON property `user`
|
|
1099
1094
|
# @return [String]
|
|
1100
|
-
attr_accessor :
|
|
1095
|
+
attr_accessor :user
|
|
1101
1096
|
|
|
1102
|
-
#
|
|
1097
|
+
# Ephemeral message that may change every time the operation is polled. @
|
|
1098
|
+
# OutputOnly
|
|
1099
|
+
# Corresponds to the JSON property `ephemeralMessage`
|
|
1100
|
+
# @return [String]
|
|
1101
|
+
attr_accessor :ephemeral_message
|
|
1102
|
+
|
|
1103
|
+
# API method that initiated this operation. Example: google.appengine.v1beta.
|
|
1104
|
+
# Versions.CreateVersion.@OutputOnly
|
|
1105
|
+
# Corresponds to the JSON property `method`
|
|
1106
|
+
# @return [String]
|
|
1107
|
+
attr_accessor :method_prop
|
|
1108
|
+
|
|
1109
|
+
# Time that this operation completed.@OutputOnly
|
|
1103
1110
|
# Corresponds to the JSON property `endTime`
|
|
1104
1111
|
# @return [String]
|
|
1105
1112
|
attr_accessor :end_time
|
|
1106
1113
|
|
|
1107
|
-
#
|
|
1108
|
-
# Corresponds to the JSON property `
|
|
1109
|
-
# @return [String]
|
|
1110
|
-
attr_accessor :
|
|
1114
|
+
# Durable messages that persist on every operation poll. @OutputOnly
|
|
1115
|
+
# Corresponds to the JSON property `warning`
|
|
1116
|
+
# @return [Array<String>]
|
|
1117
|
+
attr_accessor :warning
|
|
1111
1118
|
|
|
1112
|
-
#
|
|
1113
|
-
#
|
|
1114
|
-
# Corresponds to the JSON property `target`
|
|
1119
|
+
# Time that this operation was created.@OutputOnly
|
|
1120
|
+
# Corresponds to the JSON property `insertTime`
|
|
1115
1121
|
# @return [String]
|
|
1116
|
-
attr_accessor :
|
|
1122
|
+
attr_accessor :insert_time
|
|
1117
1123
|
|
|
1118
1124
|
def initialize(**args)
|
|
1119
1125
|
update!(**args)
|
|
@@ -1121,211 +1127,191 @@ module Google
|
|
|
1121
1127
|
|
|
1122
1128
|
# Update properties of this object
|
|
1123
1129
|
def update!(**args)
|
|
1130
|
+
@target = args[:target] if args.key?(:target)
|
|
1131
|
+
@user = args[:user] if args.key?(:user)
|
|
1132
|
+
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
|
1124
1133
|
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
1125
|
-
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
1126
1134
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1127
|
-
@
|
|
1128
|
-
@
|
|
1135
|
+
@warning = args[:warning] if args.key?(:warning)
|
|
1136
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
1129
1137
|
end
|
|
1130
1138
|
end
|
|
1131
1139
|
|
|
1132
|
-
#
|
|
1133
|
-
|
|
1134
|
-
class Version
|
|
1140
|
+
# Response message for Services.ListServices.
|
|
1141
|
+
class ListServicesResponse
|
|
1135
1142
|
include Google::Apis::Core::Hashable
|
|
1136
1143
|
|
|
1137
|
-
#
|
|
1138
|
-
#
|
|
1139
|
-
#
|
|
1140
|
-
|
|
1141
|
-
attr_accessor :automatic_scaling
|
|
1142
|
-
|
|
1143
|
-
# Total size in bytes of all the files that are included in this version and
|
|
1144
|
-
# curerntly hosted on the App Engine disk.@OutputOnly
|
|
1145
|
-
# Corresponds to the JSON property `diskUsageBytes`
|
|
1146
|
-
# @return [Fixnum]
|
|
1147
|
-
attr_accessor :disk_usage_bytes
|
|
1144
|
+
# The services belonging to the requested application.
|
|
1145
|
+
# Corresponds to the JSON property `services`
|
|
1146
|
+
# @return [Array<Google::Apis::AppengineV1::Service>]
|
|
1147
|
+
attr_accessor :services
|
|
1148
1148
|
|
|
1149
|
-
#
|
|
1150
|
-
#
|
|
1151
|
-
#
|
|
1152
|
-
|
|
1153
|
-
# @return [Google::Apis::AppengineV1::HealthCheck]
|
|
1154
|
-
attr_accessor :health_check
|
|
1149
|
+
# Continuation token for fetching the next page of results.
|
|
1150
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1151
|
+
# @return [String]
|
|
1152
|
+
attr_accessor :next_page_token
|
|
1155
1153
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
attr_accessor :threadsafe
|
|
1160
|
-
alias_method :threadsafe?, :threadsafe
|
|
1154
|
+
def initialize(**args)
|
|
1155
|
+
update!(**args)
|
|
1156
|
+
end
|
|
1161
1157
|
|
|
1162
|
-
#
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1158
|
+
# Update properties of this object
|
|
1159
|
+
def update!(**args)
|
|
1160
|
+
@services = args[:services] if args.key?(:services)
|
|
1161
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1162
|
+
end
|
|
1163
|
+
end
|
|
1167
1164
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
# @return [Google::Apis::AppengineV1::ManualScaling]
|
|
1172
|
-
attr_accessor :manual_scaling
|
|
1165
|
+
# Machine resources for a version.
|
|
1166
|
+
class Resources
|
|
1167
|
+
include Google::Apis::Core::Hashable
|
|
1173
1168
|
|
|
1174
|
-
#
|
|
1175
|
-
#
|
|
1176
|
-
#
|
|
1177
|
-
|
|
1178
|
-
attr_accessor :name
|
|
1169
|
+
# Number of CPU cores needed.
|
|
1170
|
+
# Corresponds to the JSON property `cpu`
|
|
1171
|
+
# @return [Float]
|
|
1172
|
+
attr_accessor :cpu
|
|
1179
1173
|
|
|
1180
|
-
#
|
|
1181
|
-
#
|
|
1182
|
-
#
|
|
1183
|
-
|
|
1184
|
-
attr_accessor :api_config
|
|
1174
|
+
# Memory (GB) needed.
|
|
1175
|
+
# Corresponds to the JSON property `memoryGb`
|
|
1176
|
+
# @return [Float]
|
|
1177
|
+
attr_accessor :memory_gb
|
|
1185
1178
|
|
|
1186
|
-
#
|
|
1187
|
-
#
|
|
1188
|
-
#
|
|
1189
|
-
|
|
1190
|
-
# service-management/overview).
|
|
1191
|
-
# Corresponds to the JSON property `endpointsApiService`
|
|
1192
|
-
# @return [Google::Apis::AppengineV1::EndpointsApiService]
|
|
1193
|
-
attr_accessor :endpoints_api_service
|
|
1179
|
+
# User specified volumes.
|
|
1180
|
+
# Corresponds to the JSON property `volumes`
|
|
1181
|
+
# @return [Array<Google::Apis::AppengineV1::Volume>]
|
|
1182
|
+
attr_accessor :volumes
|
|
1194
1183
|
|
|
1195
|
-
#
|
|
1196
|
-
#
|
|
1197
|
-
#
|
|
1198
|
-
|
|
1199
|
-
attr_accessor :version_url
|
|
1184
|
+
# Disk size (GB) needed.
|
|
1185
|
+
# Corresponds to the JSON property `diskGb`
|
|
1186
|
+
# @return [Float]
|
|
1187
|
+
attr_accessor :disk_gb
|
|
1200
1188
|
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
attr_accessor :vm
|
|
1205
|
-
alias_method :vm?, :vm
|
|
1189
|
+
def initialize(**args)
|
|
1190
|
+
update!(**args)
|
|
1191
|
+
end
|
|
1206
1192
|
|
|
1207
|
-
#
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1193
|
+
# Update properties of this object
|
|
1194
|
+
def update!(**args)
|
|
1195
|
+
@cpu = args[:cpu] if args.key?(:cpu)
|
|
1196
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
|
1197
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
|
1198
|
+
@disk_gb = args[:disk_gb] if args.key?(:disk_gb)
|
|
1199
|
+
end
|
|
1200
|
+
end
|
|
1214
1201
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
# Corresponds to the JSON property `servingStatus`
|
|
1219
|
-
# @return [String]
|
|
1220
|
-
attr_accessor :serving_status
|
|
1202
|
+
# Code and application artifacts used to deploy a version to App Engine.
|
|
1203
|
+
class Deployment
|
|
1204
|
+
include Google::Apis::Core::Hashable
|
|
1221
1205
|
|
|
1222
|
-
#
|
|
1223
|
-
# Corresponds to the JSON property `
|
|
1224
|
-
# @return [Google::Apis::AppengineV1::
|
|
1225
|
-
attr_accessor :
|
|
1206
|
+
# The zip file information for a zip deployment.
|
|
1207
|
+
# Corresponds to the JSON property `zip`
|
|
1208
|
+
# @return [Google::Apis::AppengineV1::ZipInfo]
|
|
1209
|
+
attr_accessor :zip
|
|
1226
1210
|
|
|
1227
|
-
#
|
|
1228
|
-
#
|
|
1229
|
-
#
|
|
1230
|
-
|
|
1211
|
+
# Docker image that is used to create a container and start a VM instance for
|
|
1212
|
+
# the version that you deploy. Only applicable for instances running in the App
|
|
1213
|
+
# Engine flexible environment.
|
|
1214
|
+
# Corresponds to the JSON property `container`
|
|
1215
|
+
# @return [Google::Apis::AppengineV1::ContainerInfo]
|
|
1216
|
+
attr_accessor :container
|
|
1231
1217
|
|
|
1232
|
-
#
|
|
1233
|
-
# be
|
|
1234
|
-
#
|
|
1235
|
-
#
|
|
1236
|
-
|
|
1218
|
+
# Manifest of the files stored in Google Cloud Storage that are included as part
|
|
1219
|
+
# of this version. All files must be readable using the credentials supplied
|
|
1220
|
+
# with this call.
|
|
1221
|
+
# Corresponds to the JSON property `files`
|
|
1222
|
+
# @return [Hash<String,Google::Apis::AppengineV1::FileInfo>]
|
|
1223
|
+
attr_accessor :files
|
|
1237
1224
|
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
attr_accessor :resources
|
|
1225
|
+
def initialize(**args)
|
|
1226
|
+
update!(**args)
|
|
1227
|
+
end
|
|
1242
1228
|
|
|
1243
|
-
#
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1229
|
+
# Update properties of this object
|
|
1230
|
+
def update!(**args)
|
|
1231
|
+
@zip = args[:zip] if args.key?(:zip)
|
|
1232
|
+
@container = args[:container] if args.key?(:container)
|
|
1233
|
+
@files = args[:files] if args.key?(:files)
|
|
1234
|
+
end
|
|
1235
|
+
end
|
|
1248
1236
|
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
#
|
|
1254
|
-
# Corresponds to the JSON property `
|
|
1237
|
+
# Volumes mounted within the app container. Only applicable for VM runtimes.
|
|
1238
|
+
class Volume
|
|
1239
|
+
include Google::Apis::Core::Hashable
|
|
1240
|
+
|
|
1241
|
+
# Underlying volume type, e.g. 'tmpfs'.
|
|
1242
|
+
# Corresponds to the JSON property `volumeType`
|
|
1255
1243
|
# @return [String]
|
|
1256
|
-
attr_accessor :
|
|
1244
|
+
attr_accessor :volume_type
|
|
1257
1245
|
|
|
1258
|
-
#
|
|
1259
|
-
#
|
|
1260
|
-
#
|
|
1261
|
-
|
|
1262
|
-
attr_accessor :libraries
|
|
1246
|
+
# Volume size in gigabytes.
|
|
1247
|
+
# Corresponds to the JSON property `sizeGb`
|
|
1248
|
+
# @return [Float]
|
|
1249
|
+
attr_accessor :size_gb
|
|
1263
1250
|
|
|
1264
|
-
#
|
|
1265
|
-
#
|
|
1266
|
-
# Corresponds to the JSON property `nobuildFilesRegex`
|
|
1251
|
+
# Unique name for the volume.
|
|
1252
|
+
# Corresponds to the JSON property `name`
|
|
1267
1253
|
# @return [String]
|
|
1268
|
-
attr_accessor :
|
|
1254
|
+
attr_accessor :name
|
|
1269
1255
|
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
# activity.
|
|
1274
|
-
# Corresponds to the JSON property `basicScaling`
|
|
1275
|
-
# @return [Google::Apis::AppengineV1::BasicScaling]
|
|
1276
|
-
attr_accessor :basic_scaling
|
|
1256
|
+
def initialize(**args)
|
|
1257
|
+
update!(**args)
|
|
1258
|
+
end
|
|
1277
1259
|
|
|
1278
|
-
#
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1260
|
+
# Update properties of this object
|
|
1261
|
+
def update!(**args)
|
|
1262
|
+
@volume_type = args[:volume_type] if args.key?(:volume_type)
|
|
1263
|
+
@size_gb = args[:size_gb] if args.key?(:size_gb)
|
|
1264
|
+
@name = args[:name] if args.key?(:name)
|
|
1265
|
+
end
|
|
1266
|
+
end
|
|
1282
1267
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
# Corresponds to the JSON property `id`
|
|
1287
|
-
# @return [String]
|
|
1288
|
-
attr_accessor :id
|
|
1268
|
+
# Response message for Instances.ListInstances.
|
|
1269
|
+
class ListInstancesResponse
|
|
1270
|
+
include Google::Apis::Core::Hashable
|
|
1289
1271
|
|
|
1290
|
-
#
|
|
1291
|
-
# Corresponds to the JSON property `
|
|
1272
|
+
# Continuation token for fetching the next page of results.
|
|
1273
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1292
1274
|
# @return [String]
|
|
1293
|
-
attr_accessor :
|
|
1275
|
+
attr_accessor :next_page_token
|
|
1294
1276
|
|
|
1295
|
-
#
|
|
1296
|
-
#
|
|
1297
|
-
#
|
|
1298
|
-
|
|
1299
|
-
attr_accessor :env_variables
|
|
1277
|
+
# The instances belonging to the requested version.
|
|
1278
|
+
# Corresponds to the JSON property `instances`
|
|
1279
|
+
# @return [Array<Google::Apis::AppengineV1::Instance>]
|
|
1280
|
+
attr_accessor :instances
|
|
1300
1281
|
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
# @return [Google::Apis::AppengineV1::LivenessCheck]
|
|
1305
|
-
attr_accessor :liveness_check
|
|
1282
|
+
def initialize(**args)
|
|
1283
|
+
update!(**args)
|
|
1284
|
+
end
|
|
1306
1285
|
|
|
1307
|
-
#
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1286
|
+
# Update properties of this object
|
|
1287
|
+
def update!(**args)
|
|
1288
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1289
|
+
@instances = args[:instances] if args.key?(:instances)
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1311
1292
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
# @return [Hash<String,String>]
|
|
1316
|
-
attr_accessor :beta_settings
|
|
1293
|
+
# Rules to match an HTTP request and dispatch that request to a service.
|
|
1294
|
+
class UrlDispatchRule
|
|
1295
|
+
include Google::Apis::Core::Hashable
|
|
1317
1296
|
|
|
1318
|
-
#
|
|
1319
|
-
#
|
|
1297
|
+
# Pathname within the host. Must start with a "/". A single "*" can be included
|
|
1298
|
+
# at the end of the path.The sum of the lengths of the domain and path may not
|
|
1299
|
+
# exceed 100 characters.
|
|
1300
|
+
# Corresponds to the JSON property `path`
|
|
1320
1301
|
# @return [String]
|
|
1321
|
-
attr_accessor :
|
|
1302
|
+
attr_accessor :path
|
|
1322
1303
|
|
|
1323
|
-
#
|
|
1324
|
-
#
|
|
1325
|
-
#
|
|
1326
|
-
#
|
|
1327
|
-
|
|
1328
|
-
|
|
1304
|
+
# Domain name to match against. The wildcard "*" is supported if specified
|
|
1305
|
+
# before a period: "*.".Defaults to matching all domains: "*".
|
|
1306
|
+
# Corresponds to the JSON property `domain`
|
|
1307
|
+
# @return [String]
|
|
1308
|
+
attr_accessor :domain
|
|
1309
|
+
|
|
1310
|
+
# Resource ID of a service in this application that should serve the matched
|
|
1311
|
+
# request. The service must already exist. Example: default.
|
|
1312
|
+
# Corresponds to the JSON property `service`
|
|
1313
|
+
# @return [String]
|
|
1314
|
+
attr_accessor :service
|
|
1329
1315
|
|
|
1330
1316
|
def initialize(**args)
|
|
1331
1317
|
update!(**args)
|
|
@@ -1333,55 +1319,39 @@ module Google
|
|
|
1333
1319
|
|
|
1334
1320
|
# Update properties of this object
|
|
1335
1321
|
def update!(**args)
|
|
1336
|
-
@
|
|
1337
|
-
@
|
|
1338
|
-
@
|
|
1339
|
-
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
|
1340
|
-
@readiness_check = args[:readiness_check] if args.key?(:readiness_check)
|
|
1341
|
-
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
|
1342
|
-
@name = args[:name] if args.key?(:name)
|
|
1343
|
-
@api_config = args[:api_config] if args.key?(:api_config)
|
|
1344
|
-
@endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
|
|
1345
|
-
@version_url = args[:version_url] if args.key?(:version_url)
|
|
1346
|
-
@vm = args[:vm] if args.key?(:vm)
|
|
1347
|
-
@instance_class = args[:instance_class] if args.key?(:instance_class)
|
|
1348
|
-
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
|
1349
|
-
@deployment = args[:deployment] if args.key?(:deployment)
|
|
1350
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1351
|
-
@inbound_services = args[:inbound_services] if args.key?(:inbound_services)
|
|
1352
|
-
@resources = args[:resources] if args.key?(:resources)
|
|
1353
|
-
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)
|
|
1354
|
-
@default_expiration = args[:default_expiration] if args.key?(:default_expiration)
|
|
1355
|
-
@libraries = args[:libraries] if args.key?(:libraries)
|
|
1356
|
-
@nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
|
|
1357
|
-
@basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
|
|
1358
|
-
@runtime = args[:runtime] if args.key?(:runtime)
|
|
1359
|
-
@id = args[:id] if args.key?(:id)
|
|
1360
|
-
@created_by = args[:created_by] if args.key?(:created_by)
|
|
1361
|
-
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
|
1362
|
-
@liveness_check = args[:liveness_check] if args.key?(:liveness_check)
|
|
1363
|
-
@network = args[:network] if args.key?(:network)
|
|
1364
|
-
@beta_settings = args[:beta_settings] if args.key?(:beta_settings)
|
|
1365
|
-
@env = args[:env] if args.key?(:env)
|
|
1366
|
-
@handlers = args[:handlers] if args.key?(:handlers)
|
|
1322
|
+
@path = args[:path] if args.key?(:path)
|
|
1323
|
+
@domain = args[:domain] if args.key?(:domain)
|
|
1324
|
+
@service = args[:service] if args.key?(:service)
|
|
1367
1325
|
end
|
|
1368
1326
|
end
|
|
1369
1327
|
|
|
1370
|
-
#
|
|
1371
|
-
class
|
|
1328
|
+
# Response message for Versions.ListVersions.
|
|
1329
|
+
class ListVersionsResponse
|
|
1372
1330
|
include Google::Apis::Core::Hashable
|
|
1373
1331
|
|
|
1332
|
+
# The versions belonging to the requested service.
|
|
1333
|
+
# Corresponds to the JSON property `versions`
|
|
1334
|
+
# @return [Array<Google::Apis::AppengineV1::Version>]
|
|
1335
|
+
attr_accessor :versions
|
|
1336
|
+
|
|
1337
|
+
# Continuation token for fetching the next page of results.
|
|
1338
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1339
|
+
# @return [String]
|
|
1340
|
+
attr_accessor :next_page_token
|
|
1341
|
+
|
|
1374
1342
|
def initialize(**args)
|
|
1375
1343
|
update!(**args)
|
|
1376
1344
|
end
|
|
1377
1345
|
|
|
1378
1346
|
# Update properties of this object
|
|
1379
1347
|
def update!(**args)
|
|
1348
|
+
@versions = args[:versions] if args.key?(:versions)
|
|
1349
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1380
1350
|
end
|
|
1381
1351
|
end
|
|
1382
1352
|
|
|
1383
|
-
#
|
|
1384
|
-
class
|
|
1353
|
+
# Uses Google Cloud Endpoints to handle requests.
|
|
1354
|
+
class ApiEndpointHandler
|
|
1385
1355
|
include Google::Apis::Core::Hashable
|
|
1386
1356
|
|
|
1387
1357
|
# Path to the script from the application root directory.
|
|
@@ -1399,26 +1369,22 @@ module Google
|
|
|
1399
1369
|
end
|
|
1400
1370
|
end
|
|
1401
1371
|
|
|
1402
|
-
#
|
|
1403
|
-
|
|
1404
|
-
class FileInfo
|
|
1372
|
+
# The zip file information for a zip deployment.
|
|
1373
|
+
class ZipInfo
|
|
1405
1374
|
include Google::Apis::Core::Hashable
|
|
1406
1375
|
|
|
1407
|
-
#
|
|
1408
|
-
# Corresponds to the JSON property `mimeType`
|
|
1409
|
-
# @return [String]
|
|
1410
|
-
attr_accessor :mime_type
|
|
1411
|
-
|
|
1412
|
-
# URL source to use to fetch this file. Must be a URL to a resource in Google
|
|
1376
|
+
# URL of the zip file to deploy from. Must be a URL to a resource in Google
|
|
1413
1377
|
# Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
|
|
1414
1378
|
# Corresponds to the JSON property `sourceUrl`
|
|
1415
1379
|
# @return [String]
|
|
1416
1380
|
attr_accessor :source_url
|
|
1417
1381
|
|
|
1418
|
-
#
|
|
1419
|
-
#
|
|
1420
|
-
#
|
|
1421
|
-
|
|
1382
|
+
# An estimate of the number of files in a zip for a zip deployment. If set, must
|
|
1383
|
+
# be greater than or equal to the actual number of files. Used for optimizing
|
|
1384
|
+
# performance; if not provided, deployment may be slow.
|
|
1385
|
+
# Corresponds to the JSON property `filesCount`
|
|
1386
|
+
# @return [Fixnum]
|
|
1387
|
+
attr_accessor :files_count
|
|
1422
1388
|
|
|
1423
1389
|
def initialize(**args)
|
|
1424
1390
|
update!(**args)
|
|
@@ -1426,42 +1392,81 @@ module Google
|
|
|
1426
1392
|
|
|
1427
1393
|
# Update properties of this object
|
|
1428
1394
|
def update!(**args)
|
|
1429
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
1430
1395
|
@source_url = args[:source_url] if args.key?(:source_url)
|
|
1431
|
-
@
|
|
1396
|
+
@files_count = args[:files_count] if args.key?(:files_count)
|
|
1432
1397
|
end
|
|
1433
1398
|
end
|
|
1434
1399
|
|
|
1435
|
-
#
|
|
1436
|
-
|
|
1400
|
+
# Automatic scaling is based on request rate, response latencies, and other
|
|
1401
|
+
# application metrics.
|
|
1402
|
+
class AutomaticScaling
|
|
1437
1403
|
include Google::Apis::Core::Hashable
|
|
1438
1404
|
|
|
1439
|
-
#
|
|
1440
|
-
# Corresponds to the JSON property `
|
|
1441
|
-
# @return [
|
|
1442
|
-
attr_accessor :
|
|
1405
|
+
# Target scaling by disk usage. Only applicable for VM runtimes.
|
|
1406
|
+
# Corresponds to the JSON property `diskUtilization`
|
|
1407
|
+
# @return [Google::Apis::AppengineV1::DiskUtilization]
|
|
1408
|
+
attr_accessor :disk_utilization
|
|
1443
1409
|
|
|
1444
|
-
#
|
|
1445
|
-
#
|
|
1446
|
-
# Corresponds to the JSON property `
|
|
1410
|
+
# Minimum amount of time a request should wait in the pending queue before
|
|
1411
|
+
# starting a new instance to handle it.
|
|
1412
|
+
# Corresponds to the JSON property `minPendingLatency`
|
|
1447
1413
|
# @return [String]
|
|
1448
|
-
attr_accessor :
|
|
1414
|
+
attr_accessor :min_pending_latency
|
|
1449
1415
|
|
|
1450
|
-
#
|
|
1451
|
-
#
|
|
1452
|
-
#
|
|
1453
|
-
|
|
1454
|
-
|
|
1416
|
+
# Target scaling by request utilization. Only applicable for VM runtimes.
|
|
1417
|
+
# Corresponds to the JSON property `requestUtilization`
|
|
1418
|
+
# @return [Google::Apis::AppengineV1::RequestUtilization]
|
|
1419
|
+
attr_accessor :request_utilization
|
|
1420
|
+
|
|
1421
|
+
# Maximum number of idle instances that should be maintained for this version.
|
|
1422
|
+
# Corresponds to the JSON property `maxIdleInstances`
|
|
1423
|
+
# @return [Fixnum]
|
|
1424
|
+
attr_accessor :max_idle_instances
|
|
1425
|
+
|
|
1426
|
+
# Minimum number of idle instances that should be maintained for this version.
|
|
1427
|
+
# Only applicable for the default version of a service.
|
|
1428
|
+
# Corresponds to the JSON property `minIdleInstances`
|
|
1429
|
+
# @return [Fixnum]
|
|
1430
|
+
attr_accessor :min_idle_instances
|
|
1431
|
+
|
|
1432
|
+
# Maximum number of instances that should be started to handle requests.
|
|
1433
|
+
# Corresponds to the JSON property `maxTotalInstances`
|
|
1434
|
+
# @return [Fixnum]
|
|
1435
|
+
attr_accessor :max_total_instances
|
|
1436
|
+
|
|
1437
|
+
# Minimum number of instances that should be maintained for this version.
|
|
1438
|
+
# Corresponds to the JSON property `minTotalInstances`
|
|
1439
|
+
# @return [Fixnum]
|
|
1440
|
+
attr_accessor :min_total_instances
|
|
1441
|
+
|
|
1442
|
+
# Target scaling by network usage. Only applicable for VM runtimes.
|
|
1443
|
+
# Corresponds to the JSON property `networkUtilization`
|
|
1444
|
+
# @return [Google::Apis::AppengineV1::NetworkUtilization]
|
|
1445
|
+
attr_accessor :network_utilization
|
|
1446
|
+
|
|
1447
|
+
# Number of concurrent requests an automatic scaling instance can accept before
|
|
1448
|
+
# the scheduler spawns a new instance.Defaults to a runtime-specific value.
|
|
1449
|
+
# Corresponds to the JSON property `maxConcurrentRequests`
|
|
1450
|
+
# @return [Fixnum]
|
|
1451
|
+
attr_accessor :max_concurrent_requests
|
|
1455
1452
|
|
|
1456
|
-
#
|
|
1457
|
-
#
|
|
1453
|
+
# Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
|
|
1454
|
+
# autoscaler/) should wait between changes to the number of virtual machines.
|
|
1455
|
+
# Only applicable for VM runtimes.
|
|
1456
|
+
# Corresponds to the JSON property `coolDownPeriod`
|
|
1458
1457
|
# @return [String]
|
|
1459
|
-
attr_accessor :
|
|
1458
|
+
attr_accessor :cool_down_period
|
|
1460
1459
|
|
|
1461
|
-
#
|
|
1462
|
-
#
|
|
1460
|
+
# Maximum amount of time that a request should wait in the pending queue before
|
|
1461
|
+
# starting a new instance to handle it.
|
|
1462
|
+
# Corresponds to the JSON property `maxPendingLatency`
|
|
1463
1463
|
# @return [String]
|
|
1464
|
-
attr_accessor :
|
|
1464
|
+
attr_accessor :max_pending_latency
|
|
1465
|
+
|
|
1466
|
+
# Target scaling by CPU usage.
|
|
1467
|
+
# Corresponds to the JSON property `cpuUtilization`
|
|
1468
|
+
# @return [Google::Apis::AppengineV1::CpuUtilization]
|
|
1469
|
+
attr_accessor :cpu_utilization
|
|
1465
1470
|
|
|
1466
1471
|
def initialize(**args)
|
|
1467
1472
|
update!(**args)
|
|
@@ -1469,36 +1474,34 @@ module Google
|
|
|
1469
1474
|
|
|
1470
1475
|
# Update properties of this object
|
|
1471
1476
|
def update!(**args)
|
|
1472
|
-
@
|
|
1473
|
-
@
|
|
1474
|
-
@
|
|
1475
|
-
@
|
|
1476
|
-
@
|
|
1477
|
+
@disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
|
|
1478
|
+
@min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
|
|
1479
|
+
@request_utilization = args[:request_utilization] if args.key?(:request_utilization)
|
|
1480
|
+
@max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
|
|
1481
|
+
@min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
|
|
1482
|
+
@max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
|
|
1483
|
+
@min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
|
|
1484
|
+
@network_utilization = args[:network_utilization] if args.key?(:network_utilization)
|
|
1485
|
+
@max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
|
|
1486
|
+
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
|
|
1487
|
+
@max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
|
|
1488
|
+
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
|
|
1477
1489
|
end
|
|
1478
1490
|
end
|
|
1479
1491
|
|
|
1480
|
-
#
|
|
1481
|
-
|
|
1482
|
-
class TrafficSplit
|
|
1492
|
+
# Third-party Python runtime library that is required by the application.
|
|
1493
|
+
class Library
|
|
1483
1494
|
include Google::Apis::Core::Hashable
|
|
1484
1495
|
|
|
1485
|
-
#
|
|
1486
|
-
#
|
|
1487
|
-
# changed.
|
|
1488
|
-
# Corresponds to the JSON property `shardBy`
|
|
1496
|
+
# Version of the library to select, or "latest".
|
|
1497
|
+
# Corresponds to the JSON property `version`
|
|
1489
1498
|
# @return [String]
|
|
1490
|
-
attr_accessor :
|
|
1499
|
+
attr_accessor :version
|
|
1491
1500
|
|
|
1492
|
-
#
|
|
1493
|
-
#
|
|
1494
|
-
#
|
|
1495
|
-
|
|
1496
|
-
# service is deleted or their traffic allocation is removed. Allocations must
|
|
1497
|
-
# sum to 1. Up to two decimal place precision is supported for IP-based splits
|
|
1498
|
-
# and up to three decimal places is supported for cookie-based splits.
|
|
1499
|
-
# Corresponds to the JSON property `allocations`
|
|
1500
|
-
# @return [Hash<String,Float>]
|
|
1501
|
-
attr_accessor :allocations
|
|
1501
|
+
# Name of the library. Example: "django".
|
|
1502
|
+
# Corresponds to the JSON property `name`
|
|
1503
|
+
# @return [String]
|
|
1504
|
+
attr_accessor :name
|
|
1502
1505
|
|
|
1503
1506
|
def initialize(**args)
|
|
1504
1507
|
update!(**args)
|
|
@@ -1506,52 +1509,48 @@ module Google
|
|
|
1506
1509
|
|
|
1507
1510
|
# Update properties of this object
|
|
1508
1511
|
def update!(**args)
|
|
1509
|
-
@
|
|
1510
|
-
@
|
|
1512
|
+
@version = args[:version] if args.key?(:version)
|
|
1513
|
+
@name = args[:name] if args.key?(:name)
|
|
1511
1514
|
end
|
|
1512
1515
|
end
|
|
1513
1516
|
|
|
1514
|
-
#
|
|
1515
|
-
class
|
|
1517
|
+
# The response message for Locations.ListLocations.
|
|
1518
|
+
class ListLocationsResponse
|
|
1516
1519
|
include Google::Apis::Core::Hashable
|
|
1517
1520
|
|
|
1518
|
-
#
|
|
1519
|
-
#
|
|
1520
|
-
#
|
|
1521
|
-
|
|
1522
|
-
attr_accessor :ephemeral_message
|
|
1523
|
-
|
|
1524
|
-
# API method that initiated this operation. Example: google.appengine.v1beta.
|
|
1525
|
-
# Versions.CreateVersion.@OutputOnly
|
|
1526
|
-
# Corresponds to the JSON property `method`
|
|
1527
|
-
# @return [String]
|
|
1528
|
-
attr_accessor :method_prop
|
|
1521
|
+
# A list of locations that matches the specified filter in the request.
|
|
1522
|
+
# Corresponds to the JSON property `locations`
|
|
1523
|
+
# @return [Array<Google::Apis::AppengineV1::Location>]
|
|
1524
|
+
attr_accessor :locations
|
|
1529
1525
|
|
|
1530
|
-
#
|
|
1531
|
-
# Corresponds to the JSON property `
|
|
1526
|
+
# The standard List next-page token.
|
|
1527
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1532
1528
|
# @return [String]
|
|
1533
|
-
attr_accessor :
|
|
1529
|
+
attr_accessor :next_page_token
|
|
1534
1530
|
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
attr_accessor :warning
|
|
1531
|
+
def initialize(**args)
|
|
1532
|
+
update!(**args)
|
|
1533
|
+
end
|
|
1539
1534
|
|
|
1540
|
-
#
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1535
|
+
# Update properties of this object
|
|
1536
|
+
def update!(**args)
|
|
1537
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
1538
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1539
|
+
end
|
|
1540
|
+
end
|
|
1544
1541
|
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1542
|
+
# Docker image that is used to create a container and start a VM instance for
|
|
1543
|
+
# the version that you deploy. Only applicable for instances running in the App
|
|
1544
|
+
# Engine flexible environment.
|
|
1545
|
+
class ContainerInfo
|
|
1546
|
+
include Google::Apis::Core::Hashable
|
|
1549
1547
|
|
|
1550
|
-
#
|
|
1551
|
-
#
|
|
1552
|
-
#
|
|
1548
|
+
# URI to the hosted container image in Google Container Registry. The URI must
|
|
1549
|
+
# be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/
|
|
1550
|
+
# image:tag" or "gcr.io/my-project/image@digest"
|
|
1551
|
+
# Corresponds to the JSON property `image`
|
|
1553
1552
|
# @return [String]
|
|
1554
|
-
attr_accessor :
|
|
1553
|
+
attr_accessor :image
|
|
1555
1554
|
|
|
1556
1555
|
def initialize(**args)
|
|
1557
1556
|
update!(**args)
|
|
@@ -1559,29 +1558,23 @@ module Google
|
|
|
1559
1558
|
|
|
1560
1559
|
# Update properties of this object
|
|
1561
1560
|
def update!(**args)
|
|
1562
|
-
@
|
|
1563
|
-
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
1564
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1565
|
-
@warning = args[:warning] if args.key?(:warning)
|
|
1566
|
-
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
1567
|
-
@user = args[:user] if args.key?(:user)
|
|
1568
|
-
@target = args[:target] if args.key?(:target)
|
|
1561
|
+
@image = args[:image] if args.key?(:image)
|
|
1569
1562
|
end
|
|
1570
1563
|
end
|
|
1571
1564
|
|
|
1572
|
-
#
|
|
1573
|
-
class
|
|
1565
|
+
# Target scaling by request utilization. Only applicable for VM runtimes.
|
|
1566
|
+
class RequestUtilization
|
|
1574
1567
|
include Google::Apis::Core::Hashable
|
|
1575
1568
|
|
|
1576
|
-
#
|
|
1577
|
-
# Corresponds to the JSON property `
|
|
1578
|
-
# @return [
|
|
1579
|
-
attr_accessor :
|
|
1569
|
+
# Target requests per second.
|
|
1570
|
+
# Corresponds to the JSON property `targetRequestCountPerSecond`
|
|
1571
|
+
# @return [Fixnum]
|
|
1572
|
+
attr_accessor :target_request_count_per_second
|
|
1580
1573
|
|
|
1581
|
-
#
|
|
1582
|
-
# Corresponds to the JSON property `
|
|
1583
|
-
# @return [
|
|
1584
|
-
attr_accessor :
|
|
1574
|
+
# Target number of concurrent requests.
|
|
1575
|
+
# Corresponds to the JSON property `targetConcurrentRequests`
|
|
1576
|
+
# @return [Fixnum]
|
|
1577
|
+
attr_accessor :target_concurrent_requests
|
|
1585
1578
|
|
|
1586
1579
|
def initialize(**args)
|
|
1587
1580
|
update!(**args)
|
|
@@ -1589,33 +1582,30 @@ module Google
|
|
|
1589
1582
|
|
|
1590
1583
|
# Update properties of this object
|
|
1591
1584
|
def update!(**args)
|
|
1592
|
-
@
|
|
1593
|
-
@
|
|
1585
|
+
@target_request_count_per_second = args[:target_request_count_per_second] if args.key?(:target_request_count_per_second)
|
|
1586
|
+
@target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
|
|
1594
1587
|
end
|
|
1595
1588
|
end
|
|
1596
1589
|
|
|
1597
|
-
#
|
|
1598
|
-
|
|
1590
|
+
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
|
1591
|
+
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
|
1592
|
+
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
|
1593
|
+
# "service" resource in the Service Management API (https://cloud.google.com/
|
|
1594
|
+
# service-management/overview).
|
|
1595
|
+
class EndpointsApiService
|
|
1599
1596
|
include Google::Apis::Core::Hashable
|
|
1600
1597
|
|
|
1601
|
-
#
|
|
1602
|
-
#
|
|
1603
|
-
#
|
|
1604
|
-
#
|
|
1605
|
-
|
|
1606
|
-
attr_accessor :files
|
|
1607
|
-
|
|
1608
|
-
# The zip file information for a zip deployment.
|
|
1609
|
-
# Corresponds to the JSON property `zip`
|
|
1610
|
-
# @return [Google::Apis::AppengineV1::ZipInfo]
|
|
1611
|
-
attr_accessor :zip
|
|
1598
|
+
# Endpoints service name which is the name of the "service" resource in the
|
|
1599
|
+
# Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
|
|
1600
|
+
# Corresponds to the JSON property `name`
|
|
1601
|
+
# @return [String]
|
|
1602
|
+
attr_accessor :name
|
|
1612
1603
|
|
|
1613
|
-
#
|
|
1614
|
-
#
|
|
1615
|
-
#
|
|
1616
|
-
#
|
|
1617
|
-
|
|
1618
|
-
attr_accessor :container
|
|
1604
|
+
# Endpoints service configuration id as specified by the Service Management API.
|
|
1605
|
+
# For example "2016-09-19r1"
|
|
1606
|
+
# Corresponds to the JSON property `configId`
|
|
1607
|
+
# @return [String]
|
|
1608
|
+
attr_accessor :config_id
|
|
1619
1609
|
|
|
1620
1610
|
def initialize(**args)
|
|
1621
1611
|
update!(**args)
|
|
@@ -1623,35 +1613,63 @@ module Google
|
|
|
1623
1613
|
|
|
1624
1614
|
# Update properties of this object
|
|
1625
1615
|
def update!(**args)
|
|
1626
|
-
@
|
|
1627
|
-
@
|
|
1628
|
-
@container = args[:container] if args.key?(:container)
|
|
1616
|
+
@name = args[:name] if args.key?(:name)
|
|
1617
|
+
@config_id = args[:config_id] if args.key?(:config_id)
|
|
1629
1618
|
end
|
|
1630
1619
|
end
|
|
1631
1620
|
|
|
1632
|
-
#
|
|
1633
|
-
|
|
1621
|
+
# URL pattern and description of how the URL should be handled. App Engine can
|
|
1622
|
+
# handle URLs by executing application code or by serving static files uploaded
|
|
1623
|
+
# with the version, such as images, CSS, or JavaScript.
|
|
1624
|
+
class UrlMap
|
|
1634
1625
|
include Google::Apis::Core::Hashable
|
|
1635
1626
|
|
|
1636
|
-
#
|
|
1637
|
-
# Corresponds to the JSON property `
|
|
1638
|
-
# @return [
|
|
1639
|
-
attr_accessor :
|
|
1627
|
+
# Level of login required to access this resource.
|
|
1628
|
+
# Corresponds to the JSON property `login`
|
|
1629
|
+
# @return [String]
|
|
1630
|
+
attr_accessor :login
|
|
1640
1631
|
|
|
1641
|
-
#
|
|
1642
|
-
# Corresponds to the JSON property `
|
|
1643
|
-
# @return [
|
|
1644
|
-
attr_accessor :
|
|
1632
|
+
# Uses Google Cloud Endpoints to handle requests.
|
|
1633
|
+
# Corresponds to the JSON property `apiEndpoint`
|
|
1634
|
+
# @return [Google::Apis::AppengineV1::ApiEndpointHandler]
|
|
1635
|
+
attr_accessor :api_endpoint
|
|
1645
1636
|
|
|
1646
|
-
#
|
|
1647
|
-
#
|
|
1648
|
-
#
|
|
1649
|
-
|
|
1637
|
+
# Files served directly to the user for a given URL, such as images, CSS
|
|
1638
|
+
# stylesheets, or JavaScript source files. Static file handlers describe which
|
|
1639
|
+
# files in the application directory are static files, and which URLs serve them.
|
|
1640
|
+
# Corresponds to the JSON property `staticFiles`
|
|
1641
|
+
# @return [Google::Apis::AppengineV1::StaticFilesHandler]
|
|
1642
|
+
attr_accessor :static_files
|
|
1643
|
+
|
|
1644
|
+
# 30x code to use when performing redirects for the secure field. Defaults to
|
|
1645
|
+
# 302.
|
|
1646
|
+
# Corresponds to the JSON property `redirectHttpResponseCode`
|
|
1647
|
+
# @return [String]
|
|
1648
|
+
attr_accessor :redirect_http_response_code
|
|
1649
|
+
|
|
1650
|
+
# Security (HTTPS) enforcement for this URL.
|
|
1651
|
+
# Corresponds to the JSON property `securityLevel`
|
|
1652
|
+
# @return [String]
|
|
1653
|
+
attr_accessor :security_level
|
|
1654
|
+
|
|
1655
|
+
# Action to take when users access resources that require authentication.
|
|
1656
|
+
# Defaults to redirect.
|
|
1657
|
+
# Corresponds to the JSON property `authFailAction`
|
|
1658
|
+
# @return [String]
|
|
1659
|
+
attr_accessor :auth_fail_action
|
|
1660
|
+
|
|
1661
|
+
# Executes a script to handle the request that matches the URL pattern.
|
|
1662
|
+
# Corresponds to the JSON property `script`
|
|
1663
|
+
# @return [Google::Apis::AppengineV1::ScriptHandler]
|
|
1664
|
+
attr_accessor :script
|
|
1650
1665
|
|
|
1651
|
-
#
|
|
1652
|
-
#
|
|
1653
|
-
#
|
|
1654
|
-
|
|
1666
|
+
# URL prefix. Uses regular expression syntax, which means regexp special
|
|
1667
|
+
# characters must be escaped, but should not contain groupings. All URLs that
|
|
1668
|
+
# begin with this prefix are handled by this handler, using the portion of the
|
|
1669
|
+
# URL after the prefix as part of the file path.
|
|
1670
|
+
# Corresponds to the JSON property `urlRegex`
|
|
1671
|
+
# @return [String]
|
|
1672
|
+
attr_accessor :url_regex
|
|
1655
1673
|
|
|
1656
1674
|
def initialize(**args)
|
|
1657
1675
|
update!(**args)
|
|
@@ -1659,31 +1677,47 @@ module Google
|
|
|
1659
1677
|
|
|
1660
1678
|
# Update properties of this object
|
|
1661
1679
|
def update!(**args)
|
|
1662
|
-
@
|
|
1663
|
-
@
|
|
1664
|
-
@
|
|
1665
|
-
@
|
|
1680
|
+
@login = args[:login] if args.key?(:login)
|
|
1681
|
+
@api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
|
|
1682
|
+
@static_files = args[:static_files] if args.key?(:static_files)
|
|
1683
|
+
@redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
|
|
1684
|
+
@security_level = args[:security_level] if args.key?(:security_level)
|
|
1685
|
+
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
|
|
1686
|
+
@script = args[:script] if args.key?(:script)
|
|
1687
|
+
@url_regex = args[:url_regex] if args.key?(:url_regex)
|
|
1666
1688
|
end
|
|
1667
1689
|
end
|
|
1668
1690
|
|
|
1669
|
-
#
|
|
1670
|
-
|
|
1691
|
+
# Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
|
|
1692
|
+
# endpoints/) configuration for API handlers.
|
|
1693
|
+
class ApiConfigHandler
|
|
1671
1694
|
include Google::Apis::Core::Hashable
|
|
1672
1695
|
|
|
1673
|
-
#
|
|
1674
|
-
# Corresponds to the JSON property `
|
|
1696
|
+
# Level of login required to access this resource. Defaults to optional.
|
|
1697
|
+
# Corresponds to the JSON property `login`
|
|
1675
1698
|
# @return [String]
|
|
1676
|
-
attr_accessor :
|
|
1699
|
+
attr_accessor :login
|
|
1677
1700
|
|
|
1678
|
-
#
|
|
1679
|
-
# Corresponds to the JSON property `
|
|
1680
|
-
# @return [
|
|
1681
|
-
attr_accessor :
|
|
1701
|
+
# URL to serve the endpoint at.
|
|
1702
|
+
# Corresponds to the JSON property `url`
|
|
1703
|
+
# @return [String]
|
|
1704
|
+
attr_accessor :url
|
|
1682
1705
|
|
|
1683
|
-
#
|
|
1684
|
-
# Corresponds to the JSON property `
|
|
1706
|
+
# Security (HTTPS) enforcement for this URL.
|
|
1707
|
+
# Corresponds to the JSON property `securityLevel`
|
|
1685
1708
|
# @return [String]
|
|
1686
|
-
attr_accessor :
|
|
1709
|
+
attr_accessor :security_level
|
|
1710
|
+
|
|
1711
|
+
# Action to take when users access resources that require authentication.
|
|
1712
|
+
# Defaults to redirect.
|
|
1713
|
+
# Corresponds to the JSON property `authFailAction`
|
|
1714
|
+
# @return [String]
|
|
1715
|
+
attr_accessor :auth_fail_action
|
|
1716
|
+
|
|
1717
|
+
# Path to the script from the application root directory.
|
|
1718
|
+
# Corresponds to the JSON property `script`
|
|
1719
|
+
# @return [String]
|
|
1720
|
+
attr_accessor :script
|
|
1687
1721
|
|
|
1688
1722
|
def initialize(**args)
|
|
1689
1723
|
update!(**args)
|
|
@@ -1691,25 +1725,89 @@ module Google
|
|
|
1691
1725
|
|
|
1692
1726
|
# Update properties of this object
|
|
1693
1727
|
def update!(**args)
|
|
1694
|
-
@
|
|
1695
|
-
@
|
|
1696
|
-
@
|
|
1728
|
+
@login = args[:login] if args.key?(:login)
|
|
1729
|
+
@url = args[:url] if args.key?(:url)
|
|
1730
|
+
@security_level = args[:security_level] if args.key?(:security_level)
|
|
1731
|
+
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
|
|
1732
|
+
@script = args[:script] if args.key?(:script)
|
|
1697
1733
|
end
|
|
1698
1734
|
end
|
|
1699
1735
|
|
|
1700
|
-
#
|
|
1701
|
-
|
|
1736
|
+
# This resource represents a long-running operation that is the result of a
|
|
1737
|
+
# network API call.
|
|
1738
|
+
class Operation
|
|
1702
1739
|
include Google::Apis::Core::Hashable
|
|
1703
1740
|
|
|
1704
|
-
#
|
|
1705
|
-
#
|
|
1741
|
+
# If the value is false, it means the operation is still in progress. If true,
|
|
1742
|
+
# the operation is completed, and either error or response is available.
|
|
1743
|
+
# Corresponds to the JSON property `done`
|
|
1744
|
+
# @return [Boolean]
|
|
1745
|
+
attr_accessor :done
|
|
1746
|
+
alias_method :done?, :done
|
|
1747
|
+
|
|
1748
|
+
# The normal response of the operation in case of success. If the original
|
|
1749
|
+
# method returns no data on success, such as Delete, the response is google.
|
|
1750
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
|
1751
|
+
# response should be the resource. For other methods, the response should have
|
|
1752
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
|
1753
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
|
1754
|
+
# TakeSnapshotResponse.
|
|
1755
|
+
# Corresponds to the JSON property `response`
|
|
1756
|
+
# @return [Hash<String,Object>]
|
|
1757
|
+
attr_accessor :response
|
|
1758
|
+
|
|
1759
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1760
|
+
# originally returns it. If you use the default HTTP mapping, the name should
|
|
1761
|
+
# have the format of operations/some/unique/name.
|
|
1762
|
+
# Corresponds to the JSON property `name`
|
|
1706
1763
|
# @return [String]
|
|
1707
|
-
attr_accessor :
|
|
1764
|
+
attr_accessor :name
|
|
1708
1765
|
|
|
1709
|
-
# The
|
|
1710
|
-
#
|
|
1711
|
-
#
|
|
1712
|
-
|
|
1766
|
+
# The Status type defines a logical error model that is suitable for different
|
|
1767
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1768
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
1769
|
+
# Simple to use and understand for most users
|
|
1770
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1771
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
1772
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1773
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
1774
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
1775
|
+
# user-facing error message is needed, put the localized message in the error
|
|
1776
|
+
# details or localize it in the client. The optional error details may contain
|
|
1777
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
1778
|
+
# detail types in the package google.rpc that can be used for common error
|
|
1779
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
1780
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
1781
|
+
# Status message is exposed in different client libraries and different wire
|
|
1782
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1783
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1784
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
1785
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
1786
|
+
# experience across different environments.Example uses of this error model
|
|
1787
|
+
# include:
|
|
1788
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1789
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
1790
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1791
|
+
# Status message for error reporting.
|
|
1792
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
1793
|
+
# Status message should be used directly inside batch response, one for each
|
|
1794
|
+
# error sub-response.
|
|
1795
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1796
|
+
# in its response, the status of those operations should be represented directly
|
|
1797
|
+
# using the Status message.
|
|
1798
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1799
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
1800
|
+
# Corresponds to the JSON property `error`
|
|
1801
|
+
# @return [Google::Apis::AppengineV1::Status]
|
|
1802
|
+
attr_accessor :error
|
|
1803
|
+
|
|
1804
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1805
|
+
# progress information and common metadata such as create time. Some services
|
|
1806
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1807
|
+
# operation should document the metadata type, if any.
|
|
1808
|
+
# Corresponds to the JSON property `metadata`
|
|
1809
|
+
# @return [Hash<String,Object>]
|
|
1810
|
+
attr_accessor :metadata
|
|
1713
1811
|
|
|
1714
1812
|
def initialize(**args)
|
|
1715
1813
|
update!(**args)
|
|
@@ -1717,33 +1815,64 @@ module Google
|
|
|
1717
1815
|
|
|
1718
1816
|
# Update properties of this object
|
|
1719
1817
|
def update!(**args)
|
|
1720
|
-
@
|
|
1721
|
-
@
|
|
1818
|
+
@done = args[:done] if args.key?(:done)
|
|
1819
|
+
@response = args[:response] if args.key?(:response)
|
|
1820
|
+
@name = args[:name] if args.key?(:name)
|
|
1821
|
+
@error = args[:error] if args.key?(:error)
|
|
1822
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1722
1823
|
end
|
|
1723
1824
|
end
|
|
1724
1825
|
|
|
1725
|
-
#
|
|
1726
|
-
|
|
1826
|
+
# Files served directly to the user for a given URL, such as images, CSS
|
|
1827
|
+
# stylesheets, or JavaScript source files. Static file handlers describe which
|
|
1828
|
+
# files in the application directory are static files, and which URLs serve them.
|
|
1829
|
+
class StaticFilesHandler
|
|
1727
1830
|
include Google::Apis::Core::Hashable
|
|
1728
1831
|
|
|
1729
|
-
#
|
|
1730
|
-
#
|
|
1731
|
-
#
|
|
1832
|
+
# Time a static file served by this handler should be cached by web proxies and
|
|
1833
|
+
# browsers.
|
|
1834
|
+
# Corresponds to the JSON property `expiration`
|
|
1835
|
+
# @return [String]
|
|
1836
|
+
attr_accessor :expiration
|
|
1837
|
+
|
|
1838
|
+
# Whether files should also be uploaded as code data. By default, files declared
|
|
1839
|
+
# in static file handlers are uploaded as static data and are only served to end
|
|
1840
|
+
# users; they cannot be read by the application. If enabled, uploads are charged
|
|
1841
|
+
# against both your code and static data storage resource quotas.
|
|
1842
|
+
# Corresponds to the JSON property `applicationReadable`
|
|
1843
|
+
# @return [Boolean]
|
|
1844
|
+
attr_accessor :application_readable
|
|
1845
|
+
alias_method :application_readable?, :application_readable
|
|
1846
|
+
|
|
1847
|
+
# HTTP headers to use for all responses from these URLs.
|
|
1848
|
+
# Corresponds to the JSON property `httpHeaders`
|
|
1849
|
+
# @return [Hash<String,String>]
|
|
1850
|
+
attr_accessor :http_headers
|
|
1851
|
+
|
|
1852
|
+
# Regular expression that matches the file paths for all files that should be
|
|
1853
|
+
# referenced by this handler.
|
|
1854
|
+
# Corresponds to the JSON property `uploadPathRegex`
|
|
1855
|
+
# @return [String]
|
|
1856
|
+
attr_accessor :upload_path_regex
|
|
1857
|
+
|
|
1858
|
+
# Path to the static files matched by the URL pattern, from the application root
|
|
1859
|
+
# directory. The path can refer to text matched in groupings in the URL pattern.
|
|
1732
1860
|
# Corresponds to the JSON property `path`
|
|
1733
1861
|
# @return [String]
|
|
1734
1862
|
attr_accessor :path
|
|
1735
1863
|
|
|
1736
|
-
#
|
|
1737
|
-
#
|
|
1738
|
-
# Corresponds to the JSON property `
|
|
1864
|
+
# MIME type used to serve all files served by this handler.Defaults to file-
|
|
1865
|
+
# specific MIME types, which are derived from each file's filename extension.
|
|
1866
|
+
# Corresponds to the JSON property `mimeType`
|
|
1739
1867
|
# @return [String]
|
|
1740
|
-
attr_accessor :
|
|
1868
|
+
attr_accessor :mime_type
|
|
1741
1869
|
|
|
1742
|
-
#
|
|
1743
|
-
#
|
|
1744
|
-
# Corresponds to the JSON property `
|
|
1745
|
-
# @return [
|
|
1746
|
-
attr_accessor :
|
|
1870
|
+
# Whether this handler should match the request if the file referenced by the
|
|
1871
|
+
# handler does not exist.
|
|
1872
|
+
# Corresponds to the JSON property `requireMatchingFile`
|
|
1873
|
+
# @return [Boolean]
|
|
1874
|
+
attr_accessor :require_matching_file
|
|
1875
|
+
alias_method :require_matching_file?, :require_matching_file
|
|
1747
1876
|
|
|
1748
1877
|
def initialize(**args)
|
|
1749
1878
|
update!(**args)
|
|
@@ -1751,45 +1880,33 @@ module Google
|
|
|
1751
1880
|
|
|
1752
1881
|
# Update properties of this object
|
|
1753
1882
|
def update!(**args)
|
|
1883
|
+
@expiration = args[:expiration] if args.key?(:expiration)
|
|
1884
|
+
@application_readable = args[:application_readable] if args.key?(:application_readable)
|
|
1885
|
+
@http_headers = args[:http_headers] if args.key?(:http_headers)
|
|
1886
|
+
@upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
|
|
1754
1887
|
@path = args[:path] if args.key?(:path)
|
|
1755
|
-
@
|
|
1756
|
-
@
|
|
1888
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
1889
|
+
@require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
|
|
1757
1890
|
end
|
|
1758
1891
|
end
|
|
1759
1892
|
|
|
1760
|
-
#
|
|
1761
|
-
|
|
1893
|
+
# A service with basic scaling will create an instance when the application
|
|
1894
|
+
# receives a request. The instance will be turned down when the app becomes idle.
|
|
1895
|
+
# Basic scaling is ideal for work that is intermittent or driven by user
|
|
1896
|
+
# activity.
|
|
1897
|
+
class BasicScaling
|
|
1762
1898
|
include Google::Apis::Core::Hashable
|
|
1763
1899
|
|
|
1764
|
-
#
|
|
1765
|
-
# Corresponds to the JSON property `
|
|
1766
|
-
# @return [
|
|
1767
|
-
attr_accessor :
|
|
1768
|
-
|
|
1769
|
-
# Continuation token for fetching the next page of results.
|
|
1770
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1771
|
-
# @return [String]
|
|
1772
|
-
attr_accessor :next_page_token
|
|
1773
|
-
|
|
1774
|
-
def initialize(**args)
|
|
1775
|
-
update!(**args)
|
|
1776
|
-
end
|
|
1777
|
-
|
|
1778
|
-
# Update properties of this object
|
|
1779
|
-
def update!(**args)
|
|
1780
|
-
@versions = args[:versions] if args.key?(:versions)
|
|
1781
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1782
|
-
end
|
|
1783
|
-
end
|
|
1784
|
-
|
|
1785
|
-
# Uses Google Cloud Endpoints to handle requests.
|
|
1786
|
-
class ApiEndpointHandler
|
|
1787
|
-
include Google::Apis::Core::Hashable
|
|
1900
|
+
# Maximum number of instances to create for this version.
|
|
1901
|
+
# Corresponds to the JSON property `maxInstances`
|
|
1902
|
+
# @return [Fixnum]
|
|
1903
|
+
attr_accessor :max_instances
|
|
1788
1904
|
|
|
1789
|
-
#
|
|
1790
|
-
#
|
|
1905
|
+
# Duration of time after the last request that an instance must wait before the
|
|
1906
|
+
# instance is shut down.
|
|
1907
|
+
# Corresponds to the JSON property `idleTimeout`
|
|
1791
1908
|
# @return [String]
|
|
1792
|
-
attr_accessor :
|
|
1909
|
+
attr_accessor :idle_timeout
|
|
1793
1910
|
|
|
1794
1911
|
def initialize(**args)
|
|
1795
1912
|
update!(**args)
|
|
@@ -1797,80 +1914,34 @@ module Google
|
|
|
1797
1914
|
|
|
1798
1915
|
# Update properties of this object
|
|
1799
1916
|
def update!(**args)
|
|
1800
|
-
@
|
|
1917
|
+
@max_instances = args[:max_instances] if args.key?(:max_instances)
|
|
1918
|
+
@idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
|
|
1801
1919
|
end
|
|
1802
1920
|
end
|
|
1803
1921
|
|
|
1804
|
-
#
|
|
1805
|
-
|
|
1806
|
-
class AutomaticScaling
|
|
1922
|
+
# Target scaling by disk usage. Only applicable for VM runtimes.
|
|
1923
|
+
class DiskUtilization
|
|
1807
1924
|
include Google::Apis::Core::Hashable
|
|
1808
1925
|
|
|
1809
|
-
#
|
|
1810
|
-
#
|
|
1811
|
-
# Corresponds to the JSON property `minPendingLatency`
|
|
1812
|
-
# @return [String]
|
|
1813
|
-
attr_accessor :min_pending_latency
|
|
1814
|
-
|
|
1815
|
-
# Target scaling by request utilization. Only applicable for VM runtimes.
|
|
1816
|
-
# Corresponds to the JSON property `requestUtilization`
|
|
1817
|
-
# @return [Google::Apis::AppengineV1::RequestUtilization]
|
|
1818
|
-
attr_accessor :request_utilization
|
|
1819
|
-
|
|
1820
|
-
# Maximum number of idle instances that should be maintained for this version.
|
|
1821
|
-
# Corresponds to the JSON property `maxIdleInstances`
|
|
1822
|
-
# @return [Fixnum]
|
|
1823
|
-
attr_accessor :max_idle_instances
|
|
1824
|
-
|
|
1825
|
-
# Minimum number of idle instances that should be maintained for this version.
|
|
1826
|
-
# Only applicable for the default version of a service.
|
|
1827
|
-
# Corresponds to the JSON property `minIdleInstances`
|
|
1926
|
+
# Target bytes written per second.
|
|
1927
|
+
# Corresponds to the JSON property `targetWriteBytesPerSecond`
|
|
1828
1928
|
# @return [Fixnum]
|
|
1829
|
-
attr_accessor :
|
|
1929
|
+
attr_accessor :target_write_bytes_per_second
|
|
1830
1930
|
|
|
1831
|
-
#
|
|
1832
|
-
# Corresponds to the JSON property `
|
|
1931
|
+
# Target bytes read per second.
|
|
1932
|
+
# Corresponds to the JSON property `targetReadBytesPerSecond`
|
|
1833
1933
|
# @return [Fixnum]
|
|
1834
|
-
attr_accessor :
|
|
1934
|
+
attr_accessor :target_read_bytes_per_second
|
|
1835
1935
|
|
|
1836
|
-
#
|
|
1837
|
-
# Corresponds to the JSON property `
|
|
1936
|
+
# Target ops read per seconds.
|
|
1937
|
+
# Corresponds to the JSON property `targetReadOpsPerSecond`
|
|
1838
1938
|
# @return [Fixnum]
|
|
1839
|
-
attr_accessor :
|
|
1840
|
-
|
|
1841
|
-
# Target scaling by network usage. Only applicable for VM runtimes.
|
|
1842
|
-
# Corresponds to the JSON property `networkUtilization`
|
|
1843
|
-
# @return [Google::Apis::AppengineV1::NetworkUtilization]
|
|
1844
|
-
attr_accessor :network_utilization
|
|
1939
|
+
attr_accessor :target_read_ops_per_second
|
|
1845
1940
|
|
|
1846
|
-
#
|
|
1847
|
-
#
|
|
1848
|
-
# Corresponds to the JSON property `maxConcurrentRequests`
|
|
1941
|
+
# Target ops written per second.
|
|
1942
|
+
# Corresponds to the JSON property `targetWriteOpsPerSecond`
|
|
1849
1943
|
# @return [Fixnum]
|
|
1850
|
-
attr_accessor :
|
|
1851
|
-
|
|
1852
|
-
# Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
|
|
1853
|
-
# autoscaler/) should wait between changes to the number of virtual machines.
|
|
1854
|
-
# Only applicable for VM runtimes.
|
|
1855
|
-
# Corresponds to the JSON property `coolDownPeriod`
|
|
1856
|
-
# @return [String]
|
|
1857
|
-
attr_accessor :cool_down_period
|
|
1858
|
-
|
|
1859
|
-
# Maximum amount of time that a request should wait in the pending queue before
|
|
1860
|
-
# starting a new instance to handle it.
|
|
1861
|
-
# Corresponds to the JSON property `maxPendingLatency`
|
|
1862
|
-
# @return [String]
|
|
1863
|
-
attr_accessor :max_pending_latency
|
|
1864
|
-
|
|
1865
|
-
# Target scaling by CPU usage.
|
|
1866
|
-
# Corresponds to the JSON property `cpuUtilization`
|
|
1867
|
-
# @return [Google::Apis::AppengineV1::CpuUtilization]
|
|
1868
|
-
attr_accessor :cpu_utilization
|
|
1869
|
-
|
|
1870
|
-
# Target scaling by disk usage. Only applicable for VM runtimes.
|
|
1871
|
-
# Corresponds to the JSON property `diskUtilization`
|
|
1872
|
-
# @return [Google::Apis::AppengineV1::DiskUtilization]
|
|
1873
|
-
attr_accessor :disk_utilization
|
|
1944
|
+
attr_accessor :target_write_ops_per_second
|
|
1874
1945
|
|
|
1875
1946
|
def initialize(**args)
|
|
1876
1947
|
update!(**args)
|
|
@@ -1878,37 +1949,26 @@ module Google
|
|
|
1878
1949
|
|
|
1879
1950
|
# Update properties of this object
|
|
1880
1951
|
def update!(**args)
|
|
1881
|
-
@
|
|
1882
|
-
@
|
|
1883
|
-
@
|
|
1884
|
-
@
|
|
1885
|
-
@max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
|
|
1886
|
-
@min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
|
|
1887
|
-
@network_utilization = args[:network_utilization] if args.key?(:network_utilization)
|
|
1888
|
-
@max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
|
|
1889
|
-
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
|
|
1890
|
-
@max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
|
|
1891
|
-
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
|
|
1892
|
-
@disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
|
|
1952
|
+
@target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second)
|
|
1953
|
+
@target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second)
|
|
1954
|
+
@target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second)
|
|
1955
|
+
@target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second)
|
|
1893
1956
|
end
|
|
1894
1957
|
end
|
|
1895
1958
|
|
|
1896
|
-
#
|
|
1897
|
-
class
|
|
1959
|
+
# Target scaling by CPU usage.
|
|
1960
|
+
class CpuUtilization
|
|
1898
1961
|
include Google::Apis::Core::Hashable
|
|
1899
1962
|
|
|
1900
|
-
#
|
|
1901
|
-
#
|
|
1902
|
-
# Corresponds to the JSON property `sourceUrl`
|
|
1963
|
+
# Period of time over which CPU utilization is calculated.
|
|
1964
|
+
# Corresponds to the JSON property `aggregationWindowLength`
|
|
1903
1965
|
# @return [String]
|
|
1904
|
-
attr_accessor :
|
|
1966
|
+
attr_accessor :aggregation_window_length
|
|
1905
1967
|
|
|
1906
|
-
#
|
|
1907
|
-
#
|
|
1908
|
-
#
|
|
1909
|
-
|
|
1910
|
-
# @return [Fixnum]
|
|
1911
|
-
attr_accessor :files_count
|
|
1968
|
+
# Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
|
|
1969
|
+
# Corresponds to the JSON property `targetUtilization`
|
|
1970
|
+
# @return [Float]
|
|
1971
|
+
attr_accessor :target_utilization
|
|
1912
1972
|
|
|
1913
1973
|
def initialize(**args)
|
|
1914
1974
|
update!(**args)
|
|
@@ -1916,24 +1976,65 @@ module Google
|
|
|
1916
1976
|
|
|
1917
1977
|
# Update properties of this object
|
|
1918
1978
|
def update!(**args)
|
|
1919
|
-
@
|
|
1920
|
-
@
|
|
1979
|
+
@aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
|
|
1980
|
+
@target_utilization = args[:target_utilization] if args.key?(:target_utilization)
|
|
1921
1981
|
end
|
|
1922
1982
|
end
|
|
1923
1983
|
|
|
1924
|
-
#
|
|
1925
|
-
|
|
1984
|
+
# The Status type defines a logical error model that is suitable for different
|
|
1985
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1986
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
1987
|
+
# Simple to use and understand for most users
|
|
1988
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1989
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
1990
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1991
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
1992
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
1993
|
+
# user-facing error message is needed, put the localized message in the error
|
|
1994
|
+
# details or localize it in the client. The optional error details may contain
|
|
1995
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
1996
|
+
# detail types in the package google.rpc that can be used for common error
|
|
1997
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
1998
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
1999
|
+
# Status message is exposed in different client libraries and different wire
|
|
2000
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
2001
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
2002
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
2003
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
2004
|
+
# experience across different environments.Example uses of this error model
|
|
2005
|
+
# include:
|
|
2006
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
2007
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
2008
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
2009
|
+
# Status message for error reporting.
|
|
2010
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
2011
|
+
# Status message should be used directly inside batch response, one for each
|
|
2012
|
+
# error sub-response.
|
|
2013
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
2014
|
+
# in its response, the status of those operations should be represented directly
|
|
2015
|
+
# using the Status message.
|
|
2016
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
2017
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
2018
|
+
class Status
|
|
1926
2019
|
include Google::Apis::Core::Hashable
|
|
1927
2020
|
|
|
1928
|
-
#
|
|
1929
|
-
# Corresponds to the JSON property `
|
|
1930
|
-
# @return [
|
|
1931
|
-
attr_accessor :
|
|
2021
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
2022
|
+
# Corresponds to the JSON property `code`
|
|
2023
|
+
# @return [Fixnum]
|
|
2024
|
+
attr_accessor :code
|
|
1932
2025
|
|
|
1933
|
-
#
|
|
1934
|
-
#
|
|
2026
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
2027
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
2028
|
+
# field, or localized by the client.
|
|
2029
|
+
# Corresponds to the JSON property `message`
|
|
1935
2030
|
# @return [String]
|
|
1936
|
-
attr_accessor :
|
|
2031
|
+
attr_accessor :message
|
|
2032
|
+
|
|
2033
|
+
# A list of messages that carry the error details. There will be a common set of
|
|
2034
|
+
# message types for APIs to use.
|
|
2035
|
+
# Corresponds to the JSON property `details`
|
|
2036
|
+
# @return [Array<Hash<String,Object>>]
|
|
2037
|
+
attr_accessor :details
|
|
1937
2038
|
|
|
1938
2039
|
def initialize(**args)
|
|
1939
2040
|
update!(**args)
|
|
@@ -1941,24 +2042,40 @@ module Google
|
|
|
1941
2042
|
|
|
1942
2043
|
# Update properties of this object
|
|
1943
2044
|
def update!(**args)
|
|
1944
|
-
@
|
|
1945
|
-
@
|
|
2045
|
+
@code = args[:code] if args.key?(:code)
|
|
2046
|
+
@message = args[:message] if args.key?(:message)
|
|
2047
|
+
@details = args[:details] if args.key?(:details)
|
|
1946
2048
|
end
|
|
1947
2049
|
end
|
|
1948
2050
|
|
|
1949
|
-
#
|
|
1950
|
-
class
|
|
2051
|
+
# Identity-Aware Proxy
|
|
2052
|
+
class IdentityAwareProxy
|
|
1951
2053
|
include Google::Apis::Core::Hashable
|
|
1952
2054
|
|
|
1953
|
-
#
|
|
1954
|
-
#
|
|
1955
|
-
#
|
|
1956
|
-
|
|
2055
|
+
# OAuth2 client secret to use for the authentication flow.For security reasons,
|
|
2056
|
+
# this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
|
|
2057
|
+
# value is returned in the oauth2_client_secret_sha256 field.@InputOnly
|
|
2058
|
+
# Corresponds to the JSON property `oauth2ClientSecret`
|
|
2059
|
+
# @return [String]
|
|
2060
|
+
attr_accessor :oauth2_client_secret
|
|
1957
2061
|
|
|
1958
|
-
#
|
|
1959
|
-
# Corresponds to the JSON property `
|
|
2062
|
+
# OAuth2 client ID to use for the authentication flow.
|
|
2063
|
+
# Corresponds to the JSON property `oauth2ClientId`
|
|
1960
2064
|
# @return [String]
|
|
1961
|
-
attr_accessor :
|
|
2065
|
+
attr_accessor :oauth2_client_id
|
|
2066
|
+
|
|
2067
|
+
# Hex-encoded SHA-256 hash of the client secret.@OutputOnly
|
|
2068
|
+
# Corresponds to the JSON property `oauth2ClientSecretSha256`
|
|
2069
|
+
# @return [String]
|
|
2070
|
+
attr_accessor :oauth2_client_secret_sha256
|
|
2071
|
+
|
|
2072
|
+
# Whether the serving infrastructure will authenticate and authorize all
|
|
2073
|
+
# incoming requests.If true, the oauth2_client_id and oauth2_client_secret
|
|
2074
|
+
# fields must be non-empty.
|
|
2075
|
+
# Corresponds to the JSON property `enabled`
|
|
2076
|
+
# @return [Boolean]
|
|
2077
|
+
attr_accessor :enabled
|
|
2078
|
+
alias_method :enabled?, :enabled
|
|
1962
2079
|
|
|
1963
2080
|
def initialize(**args)
|
|
1964
2081
|
update!(**args)
|
|
@@ -1966,23 +2083,24 @@ module Google
|
|
|
1966
2083
|
|
|
1967
2084
|
# Update properties of this object
|
|
1968
2085
|
def update!(**args)
|
|
1969
|
-
@
|
|
1970
|
-
@
|
|
2086
|
+
@oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
|
|
2087
|
+
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
|
|
2088
|
+
@oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
|
|
2089
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
1971
2090
|
end
|
|
1972
2091
|
end
|
|
1973
2092
|
|
|
1974
|
-
#
|
|
1975
|
-
#
|
|
1976
|
-
|
|
1977
|
-
class ContainerInfo
|
|
2093
|
+
# A service with manual scaling runs continuously, allowing you to perform
|
|
2094
|
+
# complex initialization and rely on the state of its memory over time.
|
|
2095
|
+
class ManualScaling
|
|
1978
2096
|
include Google::Apis::Core::Hashable
|
|
1979
2097
|
|
|
1980
|
-
#
|
|
1981
|
-
# be
|
|
1982
|
-
#
|
|
1983
|
-
# Corresponds to the JSON property `
|
|
1984
|
-
# @return [
|
|
1985
|
-
attr_accessor :
|
|
2098
|
+
# Number of instances to assign to the service at the start. This number can
|
|
2099
|
+
# later be altered by using the Modules API (https://cloud.google.com/appengine/
|
|
2100
|
+
# docs/python/modules/functions) set_num_instances() function.
|
|
2101
|
+
# Corresponds to the JSON property `instances`
|
|
2102
|
+
# @return [Fixnum]
|
|
2103
|
+
attr_accessor :instances
|
|
1986
2104
|
|
|
1987
2105
|
def initialize(**args)
|
|
1988
2106
|
update!(**args)
|
|
@@ -1990,23 +2108,25 @@ module Google
|
|
|
1990
2108
|
|
|
1991
2109
|
# Update properties of this object
|
|
1992
2110
|
def update!(**args)
|
|
1993
|
-
@
|
|
2111
|
+
@instances = args[:instances] if args.key?(:instances)
|
|
1994
2112
|
end
|
|
1995
2113
|
end
|
|
1996
2114
|
|
|
1997
|
-
#
|
|
1998
|
-
class
|
|
2115
|
+
# Metadata for the given google.cloud.location.Location.
|
|
2116
|
+
class LocationMetadata
|
|
1999
2117
|
include Google::Apis::Core::Hashable
|
|
2000
2118
|
|
|
2001
|
-
#
|
|
2002
|
-
# Corresponds to the JSON property `
|
|
2003
|
-
# @return [
|
|
2004
|
-
attr_accessor :
|
|
2119
|
+
# App Engine Standard Environment is available in the given location.@OutputOnly
|
|
2120
|
+
# Corresponds to the JSON property `standardEnvironmentAvailable`
|
|
2121
|
+
# @return [Boolean]
|
|
2122
|
+
attr_accessor :standard_environment_available
|
|
2123
|
+
alias_method :standard_environment_available?, :standard_environment_available
|
|
2005
2124
|
|
|
2006
|
-
#
|
|
2007
|
-
# Corresponds to the JSON property `
|
|
2008
|
-
# @return [
|
|
2009
|
-
attr_accessor :
|
|
2125
|
+
# App Engine Flexible Environment is available in the given location.@OutputOnly
|
|
2126
|
+
# Corresponds to the JSON property `flexibleEnvironmentAvailable`
|
|
2127
|
+
# @return [Boolean]
|
|
2128
|
+
attr_accessor :flexible_environment_available
|
|
2129
|
+
alias_method :flexible_environment_available?, :flexible_environment_available
|
|
2010
2130
|
|
|
2011
2131
|
def initialize(**args)
|
|
2012
2132
|
update!(**args)
|
|
@@ -2014,30 +2134,37 @@ module Google
|
|
|
2014
2134
|
|
|
2015
2135
|
# Update properties of this object
|
|
2016
2136
|
def update!(**args)
|
|
2017
|
-
@
|
|
2018
|
-
@
|
|
2137
|
+
@standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available)
|
|
2138
|
+
@flexible_environment_available = args[:flexible_environment_available] if args.key?(:flexible_environment_available)
|
|
2019
2139
|
end
|
|
2020
2140
|
end
|
|
2021
2141
|
|
|
2022
|
-
#
|
|
2023
|
-
#
|
|
2024
|
-
#
|
|
2025
|
-
#
|
|
2026
|
-
# service
|
|
2027
|
-
|
|
2142
|
+
# A Service resource is a logical component of an application that can share
|
|
2143
|
+
# state and communicate in a secure fashion with other services. For example, an
|
|
2144
|
+
# application that handles customer requests might include separate services to
|
|
2145
|
+
# handle tasks such as backend data analysis or API requests from mobile devices.
|
|
2146
|
+
# Each service has a collection of versions that define a specific set of code
|
|
2147
|
+
# used to implement the functionality of that service.
|
|
2148
|
+
class Service
|
|
2028
2149
|
include Google::Apis::Core::Hashable
|
|
2029
2150
|
|
|
2030
|
-
#
|
|
2031
|
-
#
|
|
2151
|
+
# Relative name of the service within the application. Example: default.@
|
|
2152
|
+
# OutputOnly
|
|
2153
|
+
# Corresponds to the JSON property `id`
|
|
2154
|
+
# @return [String]
|
|
2155
|
+
attr_accessor :id
|
|
2156
|
+
|
|
2157
|
+
# Full path to the Service resource in the API. Example: apps/myapp/services/
|
|
2158
|
+
# default.@OutputOnly
|
|
2032
2159
|
# Corresponds to the JSON property `name`
|
|
2033
2160
|
# @return [String]
|
|
2034
2161
|
attr_accessor :name
|
|
2035
2162
|
|
|
2036
|
-
#
|
|
2037
|
-
#
|
|
2038
|
-
# Corresponds to the JSON property `
|
|
2039
|
-
# @return [
|
|
2040
|
-
attr_accessor :
|
|
2163
|
+
# Traffic routing configuration for versions within a single service. Traffic
|
|
2164
|
+
# splits define how traffic directed to the service is assigned to versions.
|
|
2165
|
+
# Corresponds to the JSON property `split`
|
|
2166
|
+
# @return [Google::Apis::AppengineV1::TrafficSplit]
|
|
2167
|
+
attr_accessor :split
|
|
2041
2168
|
|
|
2042
2169
|
def initialize(**args)
|
|
2043
2170
|
update!(**args)
|
|
@@ -2045,63 +2172,25 @@ module Google
|
|
|
2045
2172
|
|
|
2046
2173
|
# Update properties of this object
|
|
2047
2174
|
def update!(**args)
|
|
2175
|
+
@id = args[:id] if args.key?(:id)
|
|
2048
2176
|
@name = args[:name] if args.key?(:name)
|
|
2049
|
-
@
|
|
2177
|
+
@split = args[:split] if args.key?(:split)
|
|
2050
2178
|
end
|
|
2051
2179
|
end
|
|
2052
2180
|
|
|
2053
|
-
#
|
|
2054
|
-
|
|
2055
|
-
# with the version, such as images, CSS, or JavaScript.
|
|
2056
|
-
class UrlMap
|
|
2181
|
+
# The response message for Operations.ListOperations.
|
|
2182
|
+
class ListOperationsResponse
|
|
2057
2183
|
include Google::Apis::Core::Hashable
|
|
2058
2184
|
|
|
2059
|
-
#
|
|
2060
|
-
# Corresponds to the JSON property `
|
|
2061
|
-
# @return [Google::Apis::AppengineV1::ApiEndpointHandler]
|
|
2062
|
-
attr_accessor :api_endpoint
|
|
2063
|
-
|
|
2064
|
-
# Files served directly to the user for a given URL, such as images, CSS
|
|
2065
|
-
# stylesheets, or JavaScript source files. Static file handlers describe which
|
|
2066
|
-
# files in the application directory are static files, and which URLs serve them.
|
|
2067
|
-
# Corresponds to the JSON property `staticFiles`
|
|
2068
|
-
# @return [Google::Apis::AppengineV1::StaticFilesHandler]
|
|
2069
|
-
attr_accessor :static_files
|
|
2070
|
-
|
|
2071
|
-
# 30x code to use when performing redirects for the secure field. Defaults to
|
|
2072
|
-
# 302.
|
|
2073
|
-
# Corresponds to the JSON property `redirectHttpResponseCode`
|
|
2074
|
-
# @return [String]
|
|
2075
|
-
attr_accessor :redirect_http_response_code
|
|
2076
|
-
|
|
2077
|
-
# Security (HTTPS) enforcement for this URL.
|
|
2078
|
-
# Corresponds to the JSON property `securityLevel`
|
|
2079
|
-
# @return [String]
|
|
2080
|
-
attr_accessor :security_level
|
|
2081
|
-
|
|
2082
|
-
# Action to take when users access resources that require authentication.
|
|
2083
|
-
# Defaults to redirect.
|
|
2084
|
-
# Corresponds to the JSON property `authFailAction`
|
|
2085
|
-
# @return [String]
|
|
2086
|
-
attr_accessor :auth_fail_action
|
|
2087
|
-
|
|
2088
|
-
# Executes a script to handle the request that matches the URL pattern.
|
|
2089
|
-
# Corresponds to the JSON property `script`
|
|
2090
|
-
# @return [Google::Apis::AppengineV1::ScriptHandler]
|
|
2091
|
-
attr_accessor :script
|
|
2092
|
-
|
|
2093
|
-
# URL prefix. Uses regular expression syntax, which means regexp special
|
|
2094
|
-
# characters must be escaped, but should not contain groupings. All URLs that
|
|
2095
|
-
# begin with this prefix are handled by this handler, using the portion of the
|
|
2096
|
-
# URL after the prefix as part of the file path.
|
|
2097
|
-
# Corresponds to the JSON property `urlRegex`
|
|
2185
|
+
# The standard List next-page token.
|
|
2186
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
2098
2187
|
# @return [String]
|
|
2099
|
-
attr_accessor :
|
|
2188
|
+
attr_accessor :next_page_token
|
|
2100
2189
|
|
|
2101
|
-
#
|
|
2102
|
-
# Corresponds to the JSON property `
|
|
2103
|
-
# @return [
|
|
2104
|
-
attr_accessor :
|
|
2190
|
+
# A list of operations that matches the specified filter in the request.
|
|
2191
|
+
# Corresponds to the JSON property `operations`
|
|
2192
|
+
# @return [Array<Google::Apis::AppengineV1::Operation>]
|
|
2193
|
+
attr_accessor :operations
|
|
2105
2194
|
|
|
2106
2195
|
def initialize(**args)
|
|
2107
2196
|
update!(**args)
|
|
@@ -2109,137 +2198,47 @@ module Google
|
|
|
2109
2198
|
|
|
2110
2199
|
# Update properties of this object
|
|
2111
2200
|
def update!(**args)
|
|
2112
|
-
@
|
|
2113
|
-
@
|
|
2114
|
-
@redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
|
|
2115
|
-
@security_level = args[:security_level] if args.key?(:security_level)
|
|
2116
|
-
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
|
|
2117
|
-
@script = args[:script] if args.key?(:script)
|
|
2118
|
-
@url_regex = args[:url_regex] if args.key?(:url_regex)
|
|
2119
|
-
@login = args[:login] if args.key?(:login)
|
|
2201
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2202
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
2120
2203
|
end
|
|
2121
2204
|
end
|
|
2122
2205
|
|
|
2123
|
-
#
|
|
2124
|
-
|
|
2125
|
-
class ApiConfigHandler
|
|
2206
|
+
# Metadata for the given google.longrunning.Operation.
|
|
2207
|
+
class OperationMetadata
|
|
2126
2208
|
include Google::Apis::Core::Hashable
|
|
2127
2209
|
|
|
2128
|
-
#
|
|
2129
|
-
# Corresponds to the JSON property `
|
|
2210
|
+
# Timestamp that this operation was created.@OutputOnly
|
|
2211
|
+
# Corresponds to the JSON property `insertTime`
|
|
2130
2212
|
# @return [String]
|
|
2131
|
-
attr_accessor :
|
|
2213
|
+
attr_accessor :insert_time
|
|
2132
2214
|
|
|
2133
|
-
#
|
|
2134
|
-
#
|
|
2215
|
+
# Name of the resource that this operation is acting on. Example: apps/myapp/
|
|
2216
|
+
# modules/default.@OutputOnly
|
|
2217
|
+
# Corresponds to the JSON property `target`
|
|
2135
2218
|
# @return [String]
|
|
2136
|
-
attr_accessor :
|
|
2219
|
+
attr_accessor :target
|
|
2137
2220
|
|
|
2138
|
-
#
|
|
2139
|
-
# Corresponds to the JSON property `
|
|
2221
|
+
# User who requested this operation.@OutputOnly
|
|
2222
|
+
# Corresponds to the JSON property `user`
|
|
2140
2223
|
# @return [String]
|
|
2141
|
-
attr_accessor :
|
|
2224
|
+
attr_accessor :user
|
|
2142
2225
|
|
|
2143
|
-
#
|
|
2144
|
-
#
|
|
2145
|
-
# Corresponds to the JSON property `
|
|
2226
|
+
# API method that initiated this operation. Example: google.appengine.v1beta4.
|
|
2227
|
+
# Version.CreateVersion.@OutputOnly
|
|
2228
|
+
# Corresponds to the JSON property `method`
|
|
2146
2229
|
# @return [String]
|
|
2147
|
-
attr_accessor :
|
|
2230
|
+
attr_accessor :method_prop
|
|
2148
2231
|
|
|
2149
|
-
#
|
|
2150
|
-
# Corresponds to the JSON property `
|
|
2232
|
+
# Timestamp that this operation completed.@OutputOnly
|
|
2233
|
+
# Corresponds to the JSON property `endTime`
|
|
2151
2234
|
# @return [String]
|
|
2152
|
-
attr_accessor :
|
|
2153
|
-
|
|
2154
|
-
def initialize(**args)
|
|
2155
|
-
update!(**args)
|
|
2156
|
-
end
|
|
2157
|
-
|
|
2158
|
-
# Update properties of this object
|
|
2159
|
-
def update!(**args)
|
|
2160
|
-
@login = args[:login] if args.key?(:login)
|
|
2161
|
-
@url = args[:url] if args.key?(:url)
|
|
2162
|
-
@security_level = args[:security_level] if args.key?(:security_level)
|
|
2163
|
-
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
|
|
2164
|
-
@script = args[:script] if args.key?(:script)
|
|
2165
|
-
end
|
|
2166
|
-
end
|
|
2167
|
-
|
|
2168
|
-
# This resource represents a long-running operation that is the result of a
|
|
2169
|
-
# network API call.
|
|
2170
|
-
class Operation
|
|
2171
|
-
include Google::Apis::Core::Hashable
|
|
2235
|
+
attr_accessor :end_time
|
|
2172
2236
|
|
|
2173
|
-
#
|
|
2174
|
-
#
|
|
2175
|
-
#
|
|
2176
|
-
# Corresponds to the JSON property `name`
|
|
2237
|
+
# Type of this operation. Deprecated, use method field instead. Example: "
|
|
2238
|
+
# create_version".@OutputOnly
|
|
2239
|
+
# Corresponds to the JSON property `operationType`
|
|
2177
2240
|
# @return [String]
|
|
2178
|
-
attr_accessor :
|
|
2179
|
-
|
|
2180
|
-
# The Status type defines a logical error model that is suitable for different
|
|
2181
|
-
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
2182
|
-
# (https://github.com/grpc). The error model is designed to be:
|
|
2183
|
-
# Simple to use and understand for most users
|
|
2184
|
-
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
2185
|
-
# three pieces of data: error code, error message, and error details. The error
|
|
2186
|
-
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
2187
|
-
# error codes if needed. The error message should be a developer-facing English
|
|
2188
|
-
# message that helps developers understand and resolve the error. If a localized
|
|
2189
|
-
# user-facing error message is needed, put the localized message in the error
|
|
2190
|
-
# details or localize it in the client. The optional error details may contain
|
|
2191
|
-
# arbitrary information about the error. There is a predefined set of error
|
|
2192
|
-
# detail types in the package google.rpc which can be used for common error
|
|
2193
|
-
# conditions.Language mappingThe Status message is the logical representation of
|
|
2194
|
-
# the error model, but it is not necessarily the actual wire format. When the
|
|
2195
|
-
# Status message is exposed in different client libraries and different wire
|
|
2196
|
-
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
2197
|
-
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
2198
|
-
# Other usesThe error model and the Status message can be used in a variety of
|
|
2199
|
-
# environments, either with or without APIs, to provide a consistent developer
|
|
2200
|
-
# experience across different environments.Example uses of this error model
|
|
2201
|
-
# include:
|
|
2202
|
-
# Partial errors. If a service needs to return partial errors to the client, it
|
|
2203
|
-
# may embed the Status in the normal response to indicate the partial errors.
|
|
2204
|
-
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
2205
|
-
# Status message for error reporting purpose.
|
|
2206
|
-
# Batch operations. If a client uses batch request and batch response, the
|
|
2207
|
-
# Status message should be used directly inside batch response, one for each
|
|
2208
|
-
# error sub-response.
|
|
2209
|
-
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
2210
|
-
# in its response, the status of those operations should be represented directly
|
|
2211
|
-
# using the Status message.
|
|
2212
|
-
# Logging. If some API errors are stored in logs, the message Status could be
|
|
2213
|
-
# used directly after any stripping needed for security/privacy reasons.
|
|
2214
|
-
# Corresponds to the JSON property `error`
|
|
2215
|
-
# @return [Google::Apis::AppengineV1::Status]
|
|
2216
|
-
attr_accessor :error
|
|
2217
|
-
|
|
2218
|
-
# Service-specific metadata associated with the operation. It typically contains
|
|
2219
|
-
# progress information and common metadata such as create time. Some services
|
|
2220
|
-
# might not provide such metadata. Any method that returns a long-running
|
|
2221
|
-
# operation should document the metadata type, if any.
|
|
2222
|
-
# Corresponds to the JSON property `metadata`
|
|
2223
|
-
# @return [Hash<String,Object>]
|
|
2224
|
-
attr_accessor :metadata
|
|
2225
|
-
|
|
2226
|
-
# If the value is false, it means the operation is still in progress. If true,
|
|
2227
|
-
# the operation is completed, and either error or response is available.
|
|
2228
|
-
# Corresponds to the JSON property `done`
|
|
2229
|
-
# @return [Boolean]
|
|
2230
|
-
attr_accessor :done
|
|
2231
|
-
alias_method :done?, :done
|
|
2232
|
-
|
|
2233
|
-
# The normal response of the operation in case of success. If the original
|
|
2234
|
-
# method returns no data on success, such as Delete, the response is google.
|
|
2235
|
-
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
|
2236
|
-
# response should be the resource. For other methods, the response should have
|
|
2237
|
-
# the type XxxResponse, where Xxx is the original method name. For example, if
|
|
2238
|
-
# the original method name is TakeSnapshot(), the inferred response type is
|
|
2239
|
-
# TakeSnapshotResponse.
|
|
2240
|
-
# Corresponds to the JSON property `response`
|
|
2241
|
-
# @return [Hash<String,Object>]
|
|
2242
|
-
attr_accessor :response
|
|
2241
|
+
attr_accessor :operation_type
|
|
2243
2242
|
|
|
2244
2243
|
def initialize(**args)
|
|
2245
2244
|
update!(**args)
|
|
@@ -2247,11 +2246,12 @@ module Google
|
|
|
2247
2246
|
|
|
2248
2247
|
# Update properties of this object
|
|
2249
2248
|
def update!(**args)
|
|
2250
|
-
@
|
|
2251
|
-
@
|
|
2252
|
-
@
|
|
2253
|
-
@
|
|
2254
|
-
@
|
|
2249
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
2250
|
+
@target = args[:target] if args.key?(:target)
|
|
2251
|
+
@user = args[:user] if args.key?(:user)
|
|
2252
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
2253
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
2254
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
2255
2255
|
end
|
|
2256
2256
|
end
|
|
2257
2257
|
end
|