google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. 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 = '20170427'
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 state of permission acceptance with this product. This field is only set
752
- # if the product is approved. Possible states are:
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
- # (if the product was approved without specifying what to when the required
756
- # permissions change, this is the default),
757
- # - "needsReapproval", there are permissions which need to be accepted (
758
- # currently the product is not assignable),
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
- # The permissions being approved with this app. This can either be the current
1691
- # set of permissions only (additional permissions added to the app through
1692
- # updates will require review by the administrator) or all current and future
1693
- # permissions for the app. If not specified, only the current set of permissions
1694
- # will be approved.
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 = '20170425'
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 = '20170426'
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
- # Files served directly to the user for a given URL, such as images, CSS
26
- # stylesheets, or JavaScript source files. Static file handlers describe which
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
- # Time a static file served by this handler should be cached by web proxies and
32
- # browsers.
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 :path
32
+ attr_accessor :error_code
62
33
 
63
- # MIME type used to serve all files served by this handler.Defaults to file-
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
- # Whether this handler should match the request if the file referenced by the
70
- # handler does not exist.
71
- # Corresponds to the JSON property `requireMatchingFile`
72
- # @return [Boolean]
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
- @expiration = args[:expiration] if args.key?(:expiration)
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
- @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
52
+ @static_file = args[:static_file] if args.key?(:static_file)
89
53
  end
90
54
  end
91
55
 
92
- # Target scaling by disk usage. Only applicable for VM runtimes.
93
- class DiskUtilization
56
+ # Metadata for the given google.longrunning.Operation.
57
+ class OperationMetadataV1
94
58
  include Google::Apis::Core::Hashable
95
59
 
96
- # Target bytes read per second.
97
- # Corresponds to the JSON property `targetReadBytesPerSecond`
98
- # @return [Fixnum]
99
- attr_accessor :target_read_bytes_per_second
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
- # Target bytes written per second.
112
- # Corresponds to the JSON property `targetWriteBytesPerSecond`
113
- # @return [Fixnum]
114
- attr_accessor :target_write_bytes_per_second
66
+ # User who requested this operation.@OutputOnly
67
+ # Corresponds to the JSON property `user`
68
+ # @return [String]
69
+ attr_accessor :user
115
70
 
116
- def initialize(**args)
117
- update!(**args)
118
- end
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
- # Update properties of this object
121
- def update!(**args)
122
- @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second)
123
- @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second)
124
- @target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second)
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
- # A service with basic scaling will create an instance when the application
130
- # receives a request. The instance will be turned down when the app becomes idle.
131
- # Basic scaling is ideal for work that is intermittent or driven by user
132
- # activity.
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
- # Maximum number of instances to create for this version.
137
- # Corresponds to the JSON property `maxInstances`
138
- # @return [Fixnum]
139
- attr_accessor :max_instances
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
- # Duration of time after the last request that an instance must wait before the
142
- # instance is shut down.
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 :idle_timeout
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
- @max_instances = args[:max_instances] if args.key?(:max_instances)
154
- @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
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
- # Target scaling by CPU usage.
159
- class CpuUtilization
114
+ # Extra network settings. Only applicable for VM runtimes.
115
+ class Network
160
116
  include Google::Apis::Core::Hashable
161
117
 
162
- # Period of time over which CPU utilization is calculated.
163
- # Corresponds to the JSON property `aggregationWindowLength`
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 :aggregation_window_length
127
+ attr_accessor :instance_tag
166
128
 
167
- # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
168
- # Corresponds to the JSON property `targetUtilization`
169
- # @return [Float]
170
- attr_accessor :target_utilization
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
- @aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
179
- @target_utilization = args[:target_utilization] if args.key?(:target_utilization)
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
- # The Status type defines a logical error model that is suitable for different
184
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
185
- # (https://github.com/grpc). The error model is designed to be:
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
- # The status code, which should be an enum value of google.rpc.Code.
221
- # Corresponds to the JSON property `code`
222
- # @return [Fixnum]
223
- attr_accessor :code
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
- # A developer-facing error message, which should be in English. Any user-facing
226
- # error message should be localized and sent in the google.rpc.Status.details
227
- # field, or localized by the client.
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 :message
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
- def initialize(**args)
239
- update!(**args)
240
- end
241
-
242
- # Update properties of this object
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
- # Identity-Aware Proxy
251
- class IdentityAwareProxy
252
- include Google::Apis::Core::Hashable
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
- # OAuth2 client secret to use for the authentication flow.For security reasons,
255
- # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
256
- # value is returned in the oauth2_client_secret_sha256 field.@InputOnly
257
- # Corresponds to the JSON property `oauth2ClientSecret`
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 :oauth2_client_secret
200
+ attr_accessor :id
260
201
 
261
- # OAuth2 client ID to use for the authentication flow.
262
- # Corresponds to the JSON property `oauth2ClientId`
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 :oauth2_client_id
208
+ attr_accessor :location_id
265
209
 
266
- # Hex-encoded SHA-256 hash of the client secret.@OutputOnly
267
- # Corresponds to the JSON property `oauth2ClientSecretSha256`
210
+ # Serving status of this application.
211
+ # Corresponds to the JSON property `servingStatus`
268
212
  # @return [String]
269
- attr_accessor :oauth2_client_secret_sha256
213
+ attr_accessor :serving_status
270
214
 
271
- # Whether the serving infrastructure will authenticate and authorize all
272
- # incoming requests.If true, the oauth2_client_id and oauth2_client_secret
273
- # fields must be non-empty.
274
- # Corresponds to the JSON property `enabled`
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
- def initialize(**args)
280
- update!(**args)
281
- end
220
+ # Identity-Aware Proxy
221
+ # Corresponds to the JSON property `iap`
222
+ # @return [Google::Apis::AppengineV1::IdentityAwareProxy]
223
+ attr_accessor :iap
282
224
 
283
- # Update properties of this object
284
- def update!(**args)
285
- @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
286
- @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
287
- @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
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
- # A service with manual scaling runs continuously, allowing you to perform
293
- # complex initialization and rely on the state of its memory over time.
294
- class ManualScaling
295
- include Google::Apis::Core::Hashable
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
- # Number of instances to assign to the service at the start. This number can
298
- # later be altered by using the Modules API (https://cloud.google.com/appengine/
299
- # docs/python/modules/functions) set_num_instances() function.
300
- # Corresponds to the JSON property `instances`
301
- # @return [Fixnum]
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
- @instances = args[:instances] if args.key?(:instances)
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
- # Metadata for the given google.cloud.location.Location.
315
- class LocationMetadata
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
- # App Engine Flexible Environment is available in the given location.@OutputOnly
319
- # Corresponds to the JSON property `flexibleEnvironmentAvailable`
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 :flexible_environment_available
322
- alias_method :flexible_environment_available?, :flexible_environment_available
274
+ attr_accessor :vm_debug_enabled
275
+ alias_method :vm_debug_enabled?, :vm_debug_enabled
323
276
 
324
- # App Engine Standard Environment is available in the given location.@OutputOnly
325
- # Corresponds to the JSON property `standardEnvironmentAvailable`
326
- # @return [Boolean]
327
- attr_accessor :standard_environment_available
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
- def initialize(**args)
331
- update!(**args)
332
- end
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
- # Update properties of this object
335
- def update!(**args)
336
- @flexible_environment_available = args[:flexible_environment_available] if args.key?(:flexible_environment_available)
337
- @standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available)
338
- end
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
- # A Service resource is a logical component of an application that can share
342
- # state and communicate in a secure fashion with other services. For example, an
343
- # application that handles customer requests might include separate services to
344
- # handle tasks such as backend data analysis or API requests from mobile devices.
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
- # Full path to the Service resource in the API. Example: apps/myapp/services/
351
- # default.@OutputOnly
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
- # Traffic routing configuration for versions within a single service. Traffic
357
- # splits define how traffic directed to the service is assigned to versions.
358
- # Corresponds to the JSON property `split`
359
- # @return [Google::Apis::AppengineV1::TrafficSplit]
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
- # Relative name of the service within the application. Example: default.@
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
- @split = args[:split] if args.key?(:split)
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
- # The response message for Operations.ListOperations.
381
- class ListOperationsResponse
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
- # The standard List next-page token.
385
- # Corresponds to the JSON property `nextPageToken`
389
+ # Time before the check is considered failed.
390
+ # Corresponds to the JSON property `timeout`
386
391
  # @return [String]
387
- attr_accessor :next_page_token
388
-
389
- # A list of operations that matches the specified filter in the request.
390
- # Corresponds to the JSON property `operations`
391
- # @return [Array<Google::Apis::AppengineV1::Operation>]
392
- attr_accessor :operations
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
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
401
- @operations = args[:operations] if args.key?(:operations)
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
- # Metadata for the given google.longrunning.Operation.
406
- class OperationMetadata
443
+ # Target scaling by network usage. Only applicable for VM runtimes.
444
+ class NetworkUtilization
407
445
  include Google::Apis::Core::Hashable
408
446
 
409
- # Type of this operation. Deprecated, use method field instead. Example: "
410
- # create_version".@OutputOnly
411
- # Corresponds to the JSON property `operationType`
412
- # @return [String]
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
- # Name of the resource that this operation is acting on. Example: apps/myapp/
426
- # modules/default.@OutputOnly
427
- # Corresponds to the JSON property `target`
428
- # @return [String]
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
- # API method that initiated this operation. Example: google.appengine.v1beta4.
432
- # Version.CreateVersion.@OutputOnly
433
- # Corresponds to the JSON property `method`
434
- # @return [String]
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
- # Timestamp that this operation completed.@OutputOnly
438
- # Corresponds to the JSON property `endTime`
439
- # @return [String]
440
- attr_accessor :end_time
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
- @operation_type = args[:operation_type] if args.key?(:operation_type)
449
- @insert_time = args[:insert_time] if args.key?(:insert_time)
450
- @user = args[:user] if args.key?(:user)
451
- @target = args[:target] if args.key?(:target)
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
- # Custom static error page to be served when an error occurs.
458
- class ErrorHandler
480
+ # A resource that represents Google Cloud Platform location.
481
+ class Location
459
482
  include Google::Apis::Core::Hashable
460
483
 
461
- # Error condition this handler applies to.
462
- # Corresponds to the JSON property `errorCode`
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 :error_code
487
+ attr_accessor :location_id
465
488
 
466
- # MIME type of file. Defaults to text/html.
467
- # Corresponds to the JSON property `mimeType`
468
- # @return [String]
469
- attr_accessor :mime_type
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
- # Static file content to be served for this error.
472
- # Corresponds to the JSON property `staticFile`
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 :static_file
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
- @error_code = args[:error_code] if args.key?(:error_code)
483
- @mime_type = args[:mime_type] if args.key?(:mime_type)
484
- @static_file = args[:static_file] if args.key?(:static_file)
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
- # Metadata for the given google.longrunning.Operation.
489
- class OperationMetadataV1
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
- # API method that initiated this operation. Example: google.appengine.v1.
493
- # Versions.CreateVersion.@OutputOnly
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 :method_prop
529
+ attr_accessor :check_interval
497
530
 
498
- # Time that this operation completed.@OutputOnly
499
- # Corresponds to the JSON property `endTime`
531
+ # Time before the health check is considered failed.
532
+ # Corresponds to the JSON property `timeout`
500
533
  # @return [String]
501
- attr_accessor :end_time
534
+ attr_accessor :timeout
502
535
 
503
- # Time that this operation was created.@OutputOnly
504
- # Corresponds to the JSON property `insertTime`
505
- # @return [String]
506
- attr_accessor :insert_time
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
- # Durable messages that persist on every operation poll. @OutputOnly
509
- # Corresponds to the JSON property `warning`
510
- # @return [Array<String>]
511
- attr_accessor :warning
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
- # Name of the resource that this operation is acting on. Example: apps/myapp/
514
- # services/default.@OutputOnly
515
- # Corresponds to the JSON property `target`
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 :target
551
+ attr_accessor :host
518
552
 
519
- # User who requested this operation.@OutputOnly
520
- # Corresponds to the JSON property `user`
521
- # @return [String]
522
- attr_accessor :user
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
- # Ephemeral message that may change every time the operation is polled. @
525
- # OutputOnly
526
- # Corresponds to the JSON property `ephemeralMessage`
527
- # @return [String]
528
- attr_accessor :ephemeral_message
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
- @method_prop = args[:method_prop] if args.key?(:method_prop)
537
- @end_time = args[:end_time] if args.key?(:end_time)
538
- @insert_time = args[:insert_time] if args.key?(:insert_time)
539
- @warning = args[:warning] if args.key?(:warning)
540
- @target = args[:target] if args.key?(:target)
541
- @user = args[:user] if args.key?(:user)
542
- @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
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
- # Extra network settings. Only applicable for VM runtimes.
547
- class Network
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
- # List of ports, or port pairs, to forward from the virtual machine to the
551
- # application container.
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 :instance_tag
589
+ attr_accessor :path
560
590
 
561
- # Google Cloud Platform sub-network where the virtual machines are created.
562
- # Specify the short name, not the resource path.If a subnetwork name is
563
- # specified, a network name will also be required unless it is for the default
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 :subnetwork_name
595
+ attr_accessor :host
578
596
 
579
- # Google Cloud Platform network where the virtual machines are created. Specify
580
- # the short name, not the resource path.Defaults to default.
581
- # Corresponds to the JSON property `name`
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 :name
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
- @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
592
- @instance_tag = args[:instance_tag] if args.key?(:instance_tag)
593
- @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
594
- @name = args[:name] if args.key?(:name)
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
- # An Application resource contains the top-level configuration of an App Engine
599
- # application.
600
- class Application
632
+ # Request message for Instances.DebugInstance.
633
+ class DebugInstanceRequest
601
634
  include Google::Apis::Core::Hashable
602
635
 
603
- # The Google Container Registry domain used for storing managed build docker
604
- # images for this application.
605
- # Corresponds to the JSON property `gcrDomain`
606
- # @return [String]
607
- attr_accessor :gcr_domain
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 :name
643
+ attr_accessor :ssh_key
614
644
 
615
- # Identifier of the Application resource. This identifier is equivalent to the
616
- # project ID of the Google Cloud Platform project where you want to deploy your
617
- # application. Example: myapp.
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
- # Cookie expiration policy for this application.
623
- # Corresponds to the JSON property `defaultCookieExpiration`
624
- # @return [String]
625
- attr_accessor :default_cookie_expiration
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
- # Location from which this application will be run. Application instances will
628
- # run out of data centers in the chosen location, which is also where all of the
629
- # application's end user content is stored.Defaults to us-central.Options are:us-
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
- # Serving status of this application.
636
- # Corresponds to the JSON property `servingStatus`
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 :serving_status
663
+ attr_accessor :method_prop
639
664
 
640
- # Hostname used to reach this application, as resolved by App Engine.@OutputOnly
641
- # Corresponds to the JSON property `defaultHostname`
665
+ # Timestamp that this operation was created.@OutputOnly
666
+ # Corresponds to the JSON property `insertTime`
642
667
  # @return [String]
643
- attr_accessor :default_hostname
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
- # Google Apps authentication domain that controls which users can access this
651
- # application.Defaults to open access for any Google Account.
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 :auth_domain
673
+ attr_accessor :end_time
655
674
 
656
- # Google Cloud Storage bucket that can be used for storing files associated with
657
- # this application. This bucket is associated with the application and can be
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 :code_bucket
678
+ attr_accessor :user
662
679
 
663
- # Google Cloud Storage bucket that can be used by this application to store
664
- # content.@OutputOnly
665
- # Corresponds to the JSON property `defaultBucket`
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 :default_bucket
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
- @gcr_domain = args[:gcr_domain] if args.key?(:gcr_domain)
683
- @name = args[:name] if args.key?(:name)
684
- @id = args[:id] if args.key?(:id)
685
- @default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration)
686
- @location_id = args[:location_id] if args.key?(:location_id)
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
- # An Instance resource is the computing unit that App Engine uses to
698
- # automatically scale an application.
699
- class Instance
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
- # Name of the virtual machine where this instance lives. Only applicable for
703
- # instances in App Engine flexible environment.@OutputOnly
704
- # Corresponds to the JSON property `vmName`
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 :vm_name
711
+ attr_accessor :instance_class
707
712
 
708
- # Virtual machine ID of this instance. Only applicable for instances in App
709
- # Engine flexible environment.@OutputOnly
710
- # Corresponds to the JSON property `vmId`
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 :vm_id
718
+ attr_accessor :serving_status
713
719
 
714
- # Average queries per second (QPS) over the last minute.@OutputOnly
715
- # Corresponds to the JSON property `qps`
716
- # @return [Float]
717
- attr_accessor :qps
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
- # Zone where the virtual machine is located. Only applicable for instances in
720
- # App Engine flexible environment.@OutputOnly
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 :vm_zone_name
728
+ attr_accessor :create_time
724
729
 
725
- # Full path to the Instance resource in the API. Example: apps/myapp/services/
726
- # default/versions/v1/instances/instance-1.@OutputOnly
727
- # Corresponds to the JSON property `name`
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 :name
754
+ attr_accessor :default_expiration
730
755
 
731
- # Average latency (ms) over the last minute.@OutputOnly
732
- # Corresponds to the JSON property `averageLatency`
733
- # @return [Fixnum]
734
- attr_accessor :average_latency
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
- # The IP address of this instance. Only applicable for instances in App Engine
737
- # flexible environment.@OutputOnly
738
- # Corresponds to the JSON property `vmIp`
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 :vm_ip
766
+ attr_accessor :nobuild_files_regex
741
767
 
742
- # Relative name of the instance within the version. Example: instance-1.@
743
- # OutputOnly
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
- # Total memory in use (bytes).@OutputOnly
749
- # Corresponds to the JSON property `memoryUsage`
750
- # @return [Fixnum]
751
- attr_accessor :memory_usage
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
- # Status of the virtual machine where this instance lives. Only applicable for
754
- # instances in App Engine flexible environment.@OutputOnly
755
- # Corresponds to the JSON property `vmStatus`
756
- # @return [String]
757
- attr_accessor :vm_status
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
- # Availability of the instance.@OutputOnly
760
- # Corresponds to the JSON property `availability`
761
- # @return [String]
762
- attr_accessor :availability
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
- # Number of errors since this instance was started.@OutputOnly
765
- # Corresponds to the JSON property `errors`
766
- # @return [Fixnum]
767
- attr_accessor :errors
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
- # Time that this instance was started.@OutputOnly
770
- # Corresponds to the JSON property `startTime`
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 :start_time
819
+ attr_accessor :env
773
820
 
774
- # Whether this instance is in debug mode. Only applicable for instances in App
775
- # Engine flexible environment.@OutputOnly
776
- # Corresponds to the JSON property `vmDebugEnabled`
777
- # @return [Boolean]
778
- attr_accessor :vm_debug_enabled
779
- alias_method :vm_debug_enabled?, :vm_debug_enabled
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
- # Number of requests since this instance was started.@OutputOnly
782
- # Corresponds to the JSON property `requests`
783
- # @return [Fixnum]
784
- attr_accessor :requests
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
- # App Engine release this instance is running on.@OutputOnly
787
- # Corresponds to the JSON property `appEngineRelease`
788
- # @return [String]
789
- attr_accessor :app_engine_release
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
- def initialize(**args)
792
- update!(**args)
793
- end
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
- # Update properties of this object
796
- def update!(**args)
797
- @vm_name = args[:vm_name] if args.key?(:vm_name)
798
- @vm_id = args[:vm_id] if args.key?(:vm_id)
799
- @qps = args[:qps] if args.key?(:qps)
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
- # Health checking configuration for VM instances. Unhealthy instances are killed
817
- # and replaced with new instances.
818
- class LivenessCheck
819
- include Google::Apis::Core::Hashable
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
- # The initial delay before starting to execute the checks.
822
- # Corresponds to the JSON property `initialDelay`
823
- # @return [String]
824
- attr_accessor :initial_delay
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
- # The request path.
827
- # Corresponds to the JSON property `path`
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 :path
869
+ attr_accessor :name
830
870
 
831
- # Host header to send when performing a HTTP Liveness check. Example: "myapp.
832
- # appspot.com"
833
- # Corresponds to the JSON property `host`
834
- # @return [String]
835
- attr_accessor :host
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
- # Number of consecutive successful checks required before considering the VM
838
- # healthy.
839
- # Corresponds to the JSON property `successThreshold`
840
- # @return [Fixnum]
841
- attr_accessor :success_threshold
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
- # Interval between health checks.
844
- # Corresponds to the JSON property `checkInterval`
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 :check_interval
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
- # Time before the check is considered failed.
855
- # Corresponds to the JSON property `timeout`
856
- # @return [String]
857
- attr_accessor :timeout
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
- @initial_delay = args[:initial_delay] if args.key?(:initial_delay)
866
- @path = args[:path] if args.key?(:path)
867
- @host = args[:host] if args.key?(:host)
868
- @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
869
- @check_interval = args[:check_interval] if args.key?(:check_interval)
870
- @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
871
- @timeout = args[:timeout] if args.key?(:timeout)
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
- # A resource that represents Google Cloud Platform location.
876
- class Location
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
- # Target scaling by network usage. Only applicable for VM runtimes.
916
- class NetworkUtilization
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
- # Target bytes sent per second.
920
- # Corresponds to the JSON property `targetSentBytesPerSecond`
921
- # @return [Fixnum]
922
- attr_accessor :target_sent_bytes_per_second
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
- # Target bytes received per second.
930
- # Corresponds to the JSON property `targetReceivedBytesPerSecond`
931
- # @return [Fixnum]
932
- attr_accessor :target_received_bytes_per_second
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
- # Target packets received per second.
935
- # Corresponds to the JSON property `targetReceivedPacketsPerSecond`
936
- # @return [Fixnum]
937
- attr_accessor :target_received_packets_per_second
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
- @target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second)
946
- @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
947
- @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second)
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
- # Health checking configuration for VM instances. Unhealthy instances are killed
953
- # and replaced with new instances. Only applicable for instances in App Engine
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
- # Number of consecutive failed health checks required before removing traffic.
959
- # Corresponds to the JSON property `unhealthyThreshold`
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 :timeout
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
- @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
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
- # Readiness checking configuration for VM instances. Unhealthy instances are
1014
- # removed from traffic rotation.
1015
- class ReadinessCheck
1003
+ # Metadata for the given google.longrunning.Operation.
1004
+ class OperationMetadataExperimental
1016
1005
  include Google::Apis::Core::Hashable
1017
1006
 
1018
- # Interval between health checks.
1019
- # Corresponds to the JSON property `checkInterval`
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 :check_interval
1011
+ attr_accessor :method_prop
1022
1012
 
1023
- # Time before the check is considered failed.
1024
- # Corresponds to the JSON property `timeout`
1013
+ # Time that this operation was created.@OutputOnly
1014
+ # Corresponds to the JSON property `insertTime`
1025
1015
  # @return [String]
1026
- attr_accessor :timeout
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
- # The request path.
1034
- # Corresponds to the JSON property `path`
1018
+ # Time that this operation completed.@OutputOnly
1019
+ # Corresponds to the JSON property `endTime`
1035
1020
  # @return [String]
1036
- attr_accessor :path
1021
+ attr_accessor :end_time
1037
1022
 
1038
- # Host header to send when performing a HTTP Readiness check. Example: "myapp.
1039
- # appspot.com"
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 :host
1026
+ attr_accessor :user
1043
1027
 
1044
- # Number of consecutive successful checks required before receiving traffic.
1045
- # Corresponds to the JSON property `successThreshold`
1046
- # @return [Fixnum]
1047
- attr_accessor :success_threshold
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
- @check_interval = args[:check_interval] if args.key?(:check_interval)
1056
- @timeout = args[:timeout] if args.key?(:timeout)
1057
- @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1058
- @path = args[:path] if args.key?(:path)
1059
- @host = args[:host] if args.key?(:host)
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
- # Request message for Instances.DebugInstance.
1065
- class DebugInstanceRequest
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
- # Public SSH key to add to the instance. Examples:
1069
- # [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
1070
- # [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":"
1071
- # [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https://
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 :ssh_key
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
- @ssh_key = args[:ssh_key] if args.key?(:ssh_key)
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 OperationMetadataV1Beta5
1083
+ class OperationMetadataV1Beta
1089
1084
  include Google::Apis::Core::Hashable
1090
1085
 
1091
- # API method name that initiated this operation. Example: google.appengine.
1092
- # v1beta5.Version.CreateVersion.@OutputOnly
1093
- # Corresponds to the JSON property `method`
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 :method_prop
1090
+ attr_accessor :target
1096
1091
 
1097
- # Timestamp that this operation was created.@OutputOnly
1098
- # Corresponds to the JSON property `insertTime`
1092
+ # User who requested this operation.@OutputOnly
1093
+ # Corresponds to the JSON property `user`
1099
1094
  # @return [String]
1100
- attr_accessor :insert_time
1095
+ attr_accessor :user
1101
1096
 
1102
- # Timestamp that this operation completed.@OutputOnly
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
- # User who requested this operation.@OutputOnly
1108
- # Corresponds to the JSON property `user`
1109
- # @return [String]
1110
- attr_accessor :user
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
- # Name of the resource that this operation is acting on. Example: apps/myapp/
1113
- # services/default.@OutputOnly
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 :target
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
- @user = args[:user] if args.key?(:user)
1128
- @target = args[:target] if args.key?(:target)
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
- # A Version resource is a specific set of source code and configuration files
1133
- # that are deployed into a service.
1134
- class Version
1140
+ # Response message for Services.ListServices.
1141
+ class ListServicesResponse
1135
1142
  include Google::Apis::Core::Hashable
1136
1143
 
1137
- # Automatic scaling is based on request rate, response latencies, and other
1138
- # application metrics.
1139
- # Corresponds to the JSON property `automaticScaling`
1140
- # @return [Google::Apis::AppengineV1::AutomaticScaling]
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
- # Health checking configuration for VM instances. Unhealthy instances are killed
1150
- # and replaced with new instances. Only applicable for instances in App Engine
1151
- # flexible environment.
1152
- # Corresponds to the JSON property `healthCheck`
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
- # Whether multiple requests can be dispatched to this version at once.
1157
- # Corresponds to the JSON property `threadsafe`
1158
- # @return [Boolean]
1159
- attr_accessor :threadsafe
1160
- alias_method :threadsafe?, :threadsafe
1154
+ def initialize(**args)
1155
+ update!(**args)
1156
+ end
1161
1157
 
1162
- # Readiness checking configuration for VM instances. Unhealthy instances are
1163
- # removed from traffic rotation.
1164
- # Corresponds to the JSON property `readinessCheck`
1165
- # @return [Google::Apis::AppengineV1::ReadinessCheck]
1166
- attr_accessor :readiness_check
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
- # A service with manual scaling runs continuously, allowing you to perform
1169
- # complex initialization and rely on the state of its memory over time.
1170
- # Corresponds to the JSON property `manualScaling`
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
- # Full path to the Version resource in the API. Example: apps/myapp/services/
1175
- # default/versions/v1.@OutputOnly
1176
- # Corresponds to the JSON property `name`
1177
- # @return [String]
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
- # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
1181
- # endpoints/) configuration for API handlers.
1182
- # Corresponds to the JSON property `apiConfig`
1183
- # @return [Google::Apis::AppengineV1::ApiConfigHandler]
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
- # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
1187
- # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
1188
- # via an NGINX proxy.The fields here refer to the name and configuration id of a
1189
- # "service" resource in the Service Management API (https://cloud.google.com/
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
- # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-
1196
- # myapp.appspot.com"@OutputOnly
1197
- # Corresponds to the JSON property `versionUrl`
1198
- # @return [String]
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
- # Whether to deploy this version in a container on a virtual machine.
1202
- # Corresponds to the JSON property `vm`
1203
- # @return [Boolean]
1204
- attr_accessor :vm
1205
- alias_method :vm?, :vm
1189
+ def initialize(**args)
1190
+ update!(**args)
1191
+ end
1206
1192
 
1207
- # Instance class that is used to run this version. Valid values are:
1208
- # AutomaticScaling: F1, F2, F4, F4_1G
1209
- # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
1210
- # AutomaticScaling and B1 for ManualScaling or BasicScaling.
1211
- # Corresponds to the JSON property `instanceClass`
1212
- # @return [String]
1213
- attr_accessor :instance_class
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
- # Current serving status of this version. Only the versions with a SERVING
1216
- # status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
1217
- # invalid value. Defaults to SERVING.
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
- # Code and application artifacts used to deploy a version to App Engine.
1223
- # Corresponds to the JSON property `deployment`
1224
- # @return [Google::Apis::AppengineV1::Deployment]
1225
- attr_accessor :deployment
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
- # Time that this version was created.@OutputOnly
1228
- # Corresponds to the JSON property `createTime`
1229
- # @return [String]
1230
- attr_accessor :create_time
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
- # Before an application can receive email or XMPP messages, the application must
1233
- # be configured to enable the service.
1234
- # Corresponds to the JSON property `inboundServices`
1235
- # @return [Array<String>]
1236
- attr_accessor :inbound_services
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
- # Machine resources for a version.
1239
- # Corresponds to the JSON property `resources`
1240
- # @return [Google::Apis::AppengineV1::Resources]
1241
- attr_accessor :resources
1225
+ def initialize(**args)
1226
+ update!(**args)
1227
+ end
1242
1228
 
1243
- # Custom static error pages. Limited to 10KB per page.Only returned in GET
1244
- # requests if view=FULL is set.
1245
- # Corresponds to the JSON property `errorHandlers`
1246
- # @return [Array<Google::Apis::AppengineV1::ErrorHandler>]
1247
- attr_accessor :error_handlers
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
- # Duration that static files should be cached by web proxies and browsers. Only
1250
- # applicable if the corresponding StaticFilesHandler (https://cloud.google.com/
1251
- # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
1252
- # staticfileshandler) does not specify its own expiration time.Only returned in
1253
- # GET requests if view=FULL is set.
1254
- # Corresponds to the JSON property `defaultExpiration`
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 :default_expiration
1244
+ attr_accessor :volume_type
1257
1245
 
1258
- # Configuration for third-party Python runtime libraries that are required by
1259
- # the application.Only returned in GET requests if view=FULL is set.
1260
- # Corresponds to the JSON property `libraries`
1261
- # @return [Array<Google::Apis::AppengineV1::Library>]
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
- # Files that match this pattern will not be built into this version. Only
1265
- # applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
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 :nobuild_files_regex
1254
+ attr_accessor :name
1269
1255
 
1270
- # A service with basic scaling will create an instance when the application
1271
- # receives a request. The instance will be turned down when the app becomes idle.
1272
- # Basic scaling is ideal for work that is intermittent or driven by user
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
- # Desired runtime. Example: python27.
1279
- # Corresponds to the JSON property `runtime`
1280
- # @return [String]
1281
- attr_accessor :runtime
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
- # Relative name of the version within the service. Example: v1. Version names
1284
- # can contain only lowercase letters, numbers, or hyphens. Reserved names: "
1285
- # default", "latest", and any name with the prefix "ah-".
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
- # Email address of the user who created this version.@OutputOnly
1291
- # Corresponds to the JSON property `createdBy`
1272
+ # Continuation token for fetching the next page of results.
1273
+ # Corresponds to the JSON property `nextPageToken`
1292
1274
  # @return [String]
1293
- attr_accessor :created_by
1275
+ attr_accessor :next_page_token
1294
1276
 
1295
- # Environment variables available to the application.Only returned in GET
1296
- # requests if view=FULL is set.
1297
- # Corresponds to the JSON property `envVariables`
1298
- # @return [Hash<String,String>]
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
- # Health checking configuration for VM instances. Unhealthy instances are killed
1302
- # and replaced with new instances.
1303
- # Corresponds to the JSON property `livenessCheck`
1304
- # @return [Google::Apis::AppengineV1::LivenessCheck]
1305
- attr_accessor :liveness_check
1282
+ def initialize(**args)
1283
+ update!(**args)
1284
+ end
1306
1285
 
1307
- # Extra network settings. Only applicable for VM runtimes.
1308
- # Corresponds to the JSON property `network`
1309
- # @return [Google::Apis::AppengineV1::Network]
1310
- attr_accessor :network
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
- # Metadata settings that are supplied to this version to enable beta runtime
1313
- # features.
1314
- # Corresponds to the JSON property `betaSettings`
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
- # App Engine execution environment for this version.Defaults to standard.
1319
- # Corresponds to the JSON property `env`
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 :env
1302
+ attr_accessor :path
1322
1303
 
1323
- # An ordered list of URL-matching patterns that should be applied to incoming
1324
- # requests. The first matching URL handles the request and other request
1325
- # handlers are not attempted.Only returned in GET requests if view=FULL is set.
1326
- # Corresponds to the JSON property `handlers`
1327
- # @return [Array<Google::Apis::AppengineV1::UrlMap>]
1328
- attr_accessor :handlers
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
- @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
1337
- @disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
1338
- @health_check = args[:health_check] if args.key?(:health_check)
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
- # Request message for 'Applications.RepairApplication'.
1371
- class RepairApplicationRequest
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
- # Executes a script to handle the request that matches the URL pattern.
1384
- class ScriptHandler
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
- # Single source file that is part of the version to be deployed. Each source
1403
- # file that is deployed must be specified separately.
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
- # The MIME type of the file.Defaults to the value from Google Cloud Storage.
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
- # The SHA1 hash of the file, in hex.
1419
- # Corresponds to the JSON property `sha1Sum`
1420
- # @return [String]
1421
- attr_accessor :sha1_sum
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
- @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
1396
+ @files_count = args[:files_count] if args.key?(:files_count)
1432
1397
  end
1433
1398
  end
1434
1399
 
1435
- # Metadata for the given google.longrunning.Operation.
1436
- class OperationMetadataExperimental
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
- # User who requested this operation.@OutputOnly
1440
- # Corresponds to the JSON property `user`
1441
- # @return [String]
1442
- attr_accessor :user
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
- # Name of the resource that this operation is acting on. Example: apps/myapp/
1445
- # customDomains/example.com.@OutputOnly
1446
- # Corresponds to the JSON property `target`
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 :target
1414
+ attr_accessor :min_pending_latency
1449
1415
 
1450
- # API method that initiated this operation. Example: google.appengine.
1451
- # experimental.CustomDomains.CreateCustomDomain.@OutputOnly
1452
- # Corresponds to the JSON property `method`
1453
- # @return [String]
1454
- attr_accessor :method_prop
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
- # Time that this operation was created.@OutputOnly
1457
- # Corresponds to the JSON property `insertTime`
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 :insert_time
1458
+ attr_accessor :cool_down_period
1460
1459
 
1461
- # Time that this operation completed.@OutputOnly
1462
- # Corresponds to the JSON property `endTime`
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 :end_time
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
- @user = args[:user] if args.key?(:user)
1473
- @target = args[:target] if args.key?(:target)
1474
- @method_prop = args[:method_prop] if args.key?(:method_prop)
1475
- @insert_time = args[:insert_time] if args.key?(:insert_time)
1476
- @end_time = args[:end_time] if args.key?(:end_time)
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
- # Traffic routing configuration for versions within a single service. Traffic
1481
- # splits define how traffic directed to the service is assigned to versions.
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
- # Mechanism used to determine which version a request is sent to. The traffic
1486
- # selection algorithm will be stable for either type until allocations are
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 :shard_by
1499
+ attr_accessor :version
1491
1500
 
1492
- # Mapping from version IDs within the service to fractional (0.000, 1]
1493
- # allocations of traffic for that version. Each version can be specified only
1494
- # once, but some versions in the service may not have any traffic allocation.
1495
- # Services that have traffic allocated cannot be deleted until either the
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
- @shard_by = args[:shard_by] if args.key?(:shard_by)
1510
- @allocations = args[:allocations] if args.key?(:allocations)
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
- # Metadata for the given google.longrunning.Operation.
1515
- class OperationMetadataV1Beta
1517
+ # The response message for Locations.ListLocations.
1518
+ class ListLocationsResponse
1516
1519
  include Google::Apis::Core::Hashable
1517
1520
 
1518
- # Ephemeral message that may change every time the operation is polled. @
1519
- # OutputOnly
1520
- # Corresponds to the JSON property `ephemeralMessage`
1521
- # @return [String]
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
- # Time that this operation completed.@OutputOnly
1531
- # Corresponds to the JSON property `endTime`
1526
+ # The standard List next-page token.
1527
+ # Corresponds to the JSON property `nextPageToken`
1532
1528
  # @return [String]
1533
- attr_accessor :end_time
1529
+ attr_accessor :next_page_token
1534
1530
 
1535
- # Durable messages that persist on every operation poll. @OutputOnly
1536
- # Corresponds to the JSON property `warning`
1537
- # @return [Array<String>]
1538
- attr_accessor :warning
1531
+ def initialize(**args)
1532
+ update!(**args)
1533
+ end
1539
1534
 
1540
- # Time that this operation was created.@OutputOnly
1541
- # Corresponds to the JSON property `insertTime`
1542
- # @return [String]
1543
- attr_accessor :insert_time
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
- # User who requested this operation.@OutputOnly
1546
- # Corresponds to the JSON property `user`
1547
- # @return [String]
1548
- attr_accessor :user
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
- # Name of the resource that this operation is acting on. Example: apps/myapp/
1551
- # services/default.@OutputOnly
1552
- # Corresponds to the JSON property `target`
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 :target
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
- @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
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
- # Response message for Services.ListServices.
1573
- class ListServicesResponse
1565
+ # Target scaling by request utilization. Only applicable for VM runtimes.
1566
+ class RequestUtilization
1574
1567
  include Google::Apis::Core::Hashable
1575
1568
 
1576
- # The services belonging to the requested application.
1577
- # Corresponds to the JSON property `services`
1578
- # @return [Array<Google::Apis::AppengineV1::Service>]
1579
- attr_accessor :services
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
- # Continuation token for fetching the next page of results.
1582
- # Corresponds to the JSON property `nextPageToken`
1583
- # @return [String]
1584
- attr_accessor :next_page_token
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
- @services = args[:services] if args.key?(:services)
1593
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
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
- # Code and application artifacts used to deploy a version to App Engine.
1598
- class Deployment
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
- # Manifest of the files stored in Google Cloud Storage that are included as part
1602
- # of this version. All files must be readable using the credentials supplied
1603
- # with this call.
1604
- # Corresponds to the JSON property `files`
1605
- # @return [Hash<String,Google::Apis::AppengineV1::FileInfo>]
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
- # Docker image that is used to create a container and start a VM instance for
1614
- # the version that you deploy. Only applicable for instances running in the App
1615
- # Engine flexible environment.
1616
- # Corresponds to the JSON property `container`
1617
- # @return [Google::Apis::AppengineV1::ContainerInfo]
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
- @files = args[:files] if args.key?(:files)
1627
- @zip = args[:zip] if args.key?(:zip)
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
- # Machine resources for a version.
1633
- class Resources
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
- # Number of CPU cores needed.
1637
- # Corresponds to the JSON property `cpu`
1638
- # @return [Float]
1639
- attr_accessor :cpu
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
- # Memory (GB) needed.
1642
- # Corresponds to the JSON property `memoryGb`
1643
- # @return [Float]
1644
- attr_accessor :memory_gb
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
- # User specified volumes.
1647
- # Corresponds to the JSON property `volumes`
1648
- # @return [Array<Google::Apis::AppengineV1::Volume>]
1649
- attr_accessor :volumes
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
- # Disk size (GB) needed.
1652
- # Corresponds to the JSON property `diskGb`
1653
- # @return [Float]
1654
- attr_accessor :disk_gb
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
- @cpu = args[:cpu] if args.key?(:cpu)
1663
- @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1664
- @volumes = args[:volumes] if args.key?(:volumes)
1665
- @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
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
- # Volumes mounted within the app container. Only applicable for VM runtimes.
1670
- class Volume
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
- # Underlying volume type, e.g. 'tmpfs'.
1674
- # Corresponds to the JSON property `volumeType`
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 :volume_type
1699
+ attr_accessor :login
1677
1700
 
1678
- # Volume size in gigabytes.
1679
- # Corresponds to the JSON property `sizeGb`
1680
- # @return [Float]
1681
- attr_accessor :size_gb
1701
+ # URL to serve the endpoint at.
1702
+ # Corresponds to the JSON property `url`
1703
+ # @return [String]
1704
+ attr_accessor :url
1682
1705
 
1683
- # Unique name for the volume.
1684
- # Corresponds to the JSON property `name`
1706
+ # Security (HTTPS) enforcement for this URL.
1707
+ # Corresponds to the JSON property `securityLevel`
1685
1708
  # @return [String]
1686
- attr_accessor :name
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
- @volume_type = args[:volume_type] if args.key?(:volume_type)
1695
- @size_gb = args[:size_gb] if args.key?(:size_gb)
1696
- @name = args[:name] if args.key?(:name)
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
- # Response message for Instances.ListInstances.
1701
- class ListInstancesResponse
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
- # Continuation token for fetching the next page of results.
1705
- # Corresponds to the JSON property `nextPageToken`
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 :next_page_token
1764
+ attr_accessor :name
1708
1765
 
1709
- # The instances belonging to the requested version.
1710
- # Corresponds to the JSON property `instances`
1711
- # @return [Array<Google::Apis::AppengineV1::Instance>]
1712
- attr_accessor :instances
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
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1721
- @instances = args[:instances] if args.key?(:instances)
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
- # Rules to match an HTTP request and dispatch that request to a service.
1726
- class UrlDispatchRule
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
- # Pathname within the host. Must start with a "/". A single "*" can be included
1730
- # at the end of the path.The sum of the lengths of the domain and path may not
1731
- # exceed 100 characters.
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
- # Domain name to match against. The wildcard "*" is supported if specified
1737
- # before a period: "*.".Defaults to matching all domains: "*".
1738
- # Corresponds to the JSON property `domain`
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 :domain
1868
+ attr_accessor :mime_type
1741
1869
 
1742
- # Resource ID of a service in this application that should serve the matched
1743
- # request. The service must already exist. Example: default.
1744
- # Corresponds to the JSON property `service`
1745
- # @return [String]
1746
- attr_accessor :service
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
- @domain = args[:domain] if args.key?(:domain)
1756
- @service = args[:service] if args.key?(:service)
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
- # Response message for Versions.ListVersions.
1761
- class ListVersionsResponse
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
- # The versions belonging to the requested service.
1765
- # Corresponds to the JSON property `versions`
1766
- # @return [Array<Google::Apis::AppengineV1::Version>]
1767
- attr_accessor :versions
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
- # Path to the script from the application root directory.
1790
- # Corresponds to the JSON property `scriptPath`
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 :script_path
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
- @script_path = args[:script_path] if args.key?(:script_path)
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
- # Automatic scaling is based on request rate, response latencies, and other
1805
- # application metrics.
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
- # Minimum amount of time a request should wait in the pending queue before
1810
- # starting a new instance to handle it.
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 :min_idle_instances
1929
+ attr_accessor :target_write_bytes_per_second
1830
1930
 
1831
- # Maximum number of instances that should be started to handle requests.
1832
- # Corresponds to the JSON property `maxTotalInstances`
1931
+ # Target bytes read per second.
1932
+ # Corresponds to the JSON property `targetReadBytesPerSecond`
1833
1933
  # @return [Fixnum]
1834
- attr_accessor :max_total_instances
1934
+ attr_accessor :target_read_bytes_per_second
1835
1935
 
1836
- # Minimum number of instances that should be maintained for this version.
1837
- # Corresponds to the JSON property `minTotalInstances`
1936
+ # Target ops read per seconds.
1937
+ # Corresponds to the JSON property `targetReadOpsPerSecond`
1838
1938
  # @return [Fixnum]
1839
- attr_accessor :min_total_instances
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
- # Number of concurrent requests an automatic scaling instance can accept before
1847
- # the scheduler spawns a new instance.Defaults to a runtime-specific value.
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 :max_concurrent_requests
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
- @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
1882
- @request_utilization = args[:request_utilization] if args.key?(:request_utilization)
1883
- @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
1884
- @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
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
- # The zip file information for a zip deployment.
1897
- class ZipInfo
1959
+ # Target scaling by CPU usage.
1960
+ class CpuUtilization
1898
1961
  include Google::Apis::Core::Hashable
1899
1962
 
1900
- # URL of the zip file to deploy from. Must be a URL to a resource in Google
1901
- # Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
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 :source_url
1966
+ attr_accessor :aggregation_window_length
1905
1967
 
1906
- # An estimate of the number of files in a zip for a zip deployment. If set, must
1907
- # be greater than or equal to the actual number of files. Used for optimizing
1908
- # performance; if not provided, deployment may be slow.
1909
- # Corresponds to the JSON property `filesCount`
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
- @source_url = args[:source_url] if args.key?(:source_url)
1920
- @files_count = args[:files_count] if args.key?(:files_count)
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
- # Third-party Python runtime library that is required by the application.
1925
- class Library
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
- # Name of the library. Example: "django".
1929
- # Corresponds to the JSON property `name`
1930
- # @return [String]
1931
- attr_accessor :name
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
- # Version of the library to select, or "latest".
1934
- # Corresponds to the JSON property `version`
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 :version
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
- @name = args[:name] if args.key?(:name)
1945
- @version = args[:version] if args.key?(:version)
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
- # The response message for Locations.ListLocations.
1950
- class ListLocationsResponse
2051
+ # Identity-Aware Proxy
2052
+ class IdentityAwareProxy
1951
2053
  include Google::Apis::Core::Hashable
1952
2054
 
1953
- # A list of locations that matches the specified filter in the request.
1954
- # Corresponds to the JSON property `locations`
1955
- # @return [Array<Google::Apis::AppengineV1::Location>]
1956
- attr_accessor :locations
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
- # The standard List next-page token.
1959
- # Corresponds to the JSON property `nextPageToken`
2062
+ # OAuth2 client ID to use for the authentication flow.
2063
+ # Corresponds to the JSON property `oauth2ClientId`
1960
2064
  # @return [String]
1961
- attr_accessor :next_page_token
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
- @locations = args[:locations] if args.key?(:locations)
1970
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
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
- # Docker image that is used to create a container and start a VM instance for
1975
- # the version that you deploy. Only applicable for instances running in the App
1976
- # Engine flexible environment.
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
- # URI to the hosted container image in Google Container Registry. The URI must
1981
- # be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/
1982
- # image:tag" or "gcr.io/my-project/image@digest"
1983
- # Corresponds to the JSON property `image`
1984
- # @return [String]
1985
- attr_accessor :image
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
- @image = args[:image] if args.key?(:image)
2111
+ @instances = args[:instances] if args.key?(:instances)
1994
2112
  end
1995
2113
  end
1996
2114
 
1997
- # Target scaling by request utilization. Only applicable for VM runtimes.
1998
- class RequestUtilization
2115
+ # Metadata for the given google.cloud.location.Location.
2116
+ class LocationMetadata
1999
2117
  include Google::Apis::Core::Hashable
2000
2118
 
2001
- # Target requests per second.
2002
- # Corresponds to the JSON property `targetRequestCountPerSecond`
2003
- # @return [Fixnum]
2004
- attr_accessor :target_request_count_per_second
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
- # Target number of concurrent requests.
2007
- # Corresponds to the JSON property `targetConcurrentRequests`
2008
- # @return [Fixnum]
2009
- attr_accessor :target_concurrent_requests
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
- @target_request_count_per_second = args[:target_request_count_per_second] if args.key?(:target_request_count_per_second)
2018
- @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
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
- # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
2023
- # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
2024
- # via an NGINX proxy.The fields here refer to the name and configuration id of a
2025
- # "service" resource in the Service Management API (https://cloud.google.com/
2026
- # service-management/overview).
2027
- class EndpointsApiService
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
- # Endpoints service name which is the name of the "service" resource in the
2031
- # Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
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
- # Endpoints service configuration id as specified by the Service Management API.
2037
- # For example "2016-09-19r1"
2038
- # Corresponds to the JSON property `configId`
2039
- # @return [String]
2040
- attr_accessor :config_id
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
- @config_id = args[:config_id] if args.key?(:config_id)
2177
+ @split = args[:split] if args.key?(:split)
2050
2178
  end
2051
2179
  end
2052
2180
 
2053
- # URL pattern and description of how the URL should be handled. App Engine can
2054
- # handle URLs by executing application code or by serving static files uploaded
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
- # Uses Google Cloud Endpoints to handle requests.
2060
- # Corresponds to the JSON property `apiEndpoint`
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 :url_regex
2188
+ attr_accessor :next_page_token
2100
2189
 
2101
- # Level of login required to access this resource.
2102
- # Corresponds to the JSON property `login`
2103
- # @return [String]
2104
- attr_accessor :login
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
- @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
2113
- @static_files = args[:static_files] if args.key?(:static_files)
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
- # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
2124
- # endpoints/) configuration for API handlers.
2125
- class ApiConfigHandler
2206
+ # Metadata for the given google.longrunning.Operation.
2207
+ class OperationMetadata
2126
2208
  include Google::Apis::Core::Hashable
2127
2209
 
2128
- # Level of login required to access this resource. Defaults to optional.
2129
- # Corresponds to the JSON property `login`
2210
+ # Timestamp that this operation was created.@OutputOnly
2211
+ # Corresponds to the JSON property `insertTime`
2130
2212
  # @return [String]
2131
- attr_accessor :login
2213
+ attr_accessor :insert_time
2132
2214
 
2133
- # URL to serve the endpoint at.
2134
- # Corresponds to the JSON property `url`
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 :url
2219
+ attr_accessor :target
2137
2220
 
2138
- # Security (HTTPS) enforcement for this URL.
2139
- # Corresponds to the JSON property `securityLevel`
2221
+ # User who requested this operation.@OutputOnly
2222
+ # Corresponds to the JSON property `user`
2140
2223
  # @return [String]
2141
- attr_accessor :security_level
2224
+ attr_accessor :user
2142
2225
 
2143
- # Action to take when users access resources that require authentication.
2144
- # Defaults to redirect.
2145
- # Corresponds to the JSON property `authFailAction`
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 :auth_fail_action
2230
+ attr_accessor :method_prop
2148
2231
 
2149
- # Path to the script from the application root directory.
2150
- # Corresponds to the JSON property `script`
2232
+ # Timestamp that this operation completed.@OutputOnly
2233
+ # Corresponds to the JSON property `endTime`
2151
2234
  # @return [String]
2152
- attr_accessor :script
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
- # The server-assigned name, which is only unique within the same service that
2174
- # originally returns it. If you use the default HTTP mapping, the name should
2175
- # have the format of operations/some/unique/name.
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 :name
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
- @name = args[:name] if args.key?(:name)
2251
- @error = args[:error] if args.key?(:error)
2252
- @metadata = args[:metadata] if args.key?(:metadata)
2253
- @done = args[:done] if args.key?(:done)
2254
- @response = args[:response] if args.key?(:response)
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