google-api-client 0.10.2 → 0.10.3

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