google-api-client 0.10.2 → 0.10.3

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