google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -48,9 +48,13 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Gets information about an application.
51
+ # Recreates the required App Engine features for the specified App Engine
52
+ # application, for example a Cloud Storage bucket or App Engine service account.
53
+ # Use this method if you receive an error message about a missing feature, for
54
+ # example, Error retrieving the App Engine service account.
52
55
  # @param [String] apps_id
53
- # Part of `name`. Name of the Application resource to get. Example: apps/myapp.
56
+ # Part of `name`. Name of the application to repair. Example: apps/myapp
57
+ # @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
54
58
  # @param [String] fields
55
59
  # Selector specifying which fields to include in a partial response.
56
60
  # @param [String] quota_user
@@ -60,18 +64,20 @@ module Google
60
64
  # Request-specific options
61
65
  #
62
66
  # @yield [result, err] Result & error if block supplied
63
- # @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
67
+ # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
64
68
  # @yieldparam err [StandardError] error object if request failed
65
69
  #
66
- # @return [Google::Apis::AppengineV1::Application]
70
+ # @return [Google::Apis::AppengineV1::Operation]
67
71
  #
68
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
72
- command = make_simple_command(:get, 'v1/apps/{appsId}', options)
73
- command.response_representation = Google::Apis::AppengineV1::Application::Representation
74
- command.response_class = Google::Apis::AppengineV1::Application
75
+ def repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
77
+ command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
78
+ command.request_object = repair_application_request_object
79
+ command.response_representation = Google::Apis::AppengineV1::Operation::Representation
80
+ command.response_class = Google::Apis::AppengineV1::Operation
75
81
  command.params['appsId'] = apps_id unless apps_id.nil?
76
82
  command.query['fields'] = fields unless fields.nil?
77
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -119,6 +125,36 @@ module Google
119
125
  execute_or_queue_command(command, &block)
120
126
  end
121
127
 
128
+ # Gets information about an application.
129
+ # @param [String] apps_id
130
+ # Part of `name`. Name of the Application resource to get. Example: apps/myapp.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::AppengineV1::Application]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1/apps/{appsId}', options)
150
+ command.response_representation = Google::Apis::AppengineV1::Application::Representation
151
+ command.response_class = Google::Apis::AppengineV1::Application
152
+ command.params['appsId'] = apps_id unless apps_id.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
122
158
  # Creates an App Engine application for a Google Cloud Platform project.
123
159
  # Required fields:
124
160
  # id - The ID of the target Cloud Platform project.
@@ -155,13 +191,12 @@ module Google
155
191
  execute_or_queue_command(command, &block)
156
192
  end
157
193
 
158
- # Recreates the required App Engine features for the specified App Engine
159
- # application, for example a Cloud Storage bucket or App Engine service account.
160
- # Use this method if you receive an error message about a missing feature, for
161
- # example, Error retrieving the App Engine service account.
194
+ # Gets the latest state of a long-running operation. Clients can use this method
195
+ # to poll the operation result at intervals as recommended by the API service.
162
196
  # @param [String] apps_id
163
- # Part of `name`. Name of the application to repair. Example: apps/myapp
164
- # @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
197
+ # Part of `name`. The name of the operation resource.
198
+ # @param [String] operations_id
199
+ # Part of `name`. See documentation of `appsId`.
165
200
  # @param [String] fields
166
201
  # Selector specifying which fields to include in a partial response.
167
202
  # @param [String] quota_user
@@ -179,13 +214,12 @@ module Google
179
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
180
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
181
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
182
- def repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
183
- command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
184
- command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
185
- command.request_object = repair_application_request_object
217
+ def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
186
219
  command.response_representation = Google::Apis::AppengineV1::Operation::Representation
187
220
  command.response_class = Google::Apis::AppengineV1::Operation
188
221
  command.params['appsId'] = apps_id unless apps_id.nil?
222
+ command.params['operationsId'] = operations_id unless operations_id.nil?
189
223
  command.query['fields'] = fields unless fields.nil?
190
224
  command.query['quotaUser'] = quota_user unless quota_user.nil?
191
225
  execute_or_queue_command(command, &block)
@@ -201,12 +235,12 @@ module Google
201
235
  # binding is the parent resource, without the operations collection id.
202
236
  # @param [String] apps_id
203
237
  # Part of `name`. The name of the operation's parent resource.
204
- # @param [String] page_token
205
- # The standard list page token.
206
238
  # @param [Fixnum] page_size
207
239
  # The standard list page size.
208
240
  # @param [String] filter
209
241
  # The standard list filter.
242
+ # @param [String] page_token
243
+ # The standard list page token.
210
244
  # @param [String] fields
211
245
  # Selector specifying which fields to include in a partial response.
212
246
  # @param [String] quota_user
@@ -224,24 +258,23 @@ module Google
224
258
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
259
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
260
  # @raise [Google::Apis::AuthorizationError] Authorization is required
227
- def list_app_operations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
261
+ def list_app_operations(apps_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
228
262
  command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
229
263
  command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
230
264
  command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
231
265
  command.params['appsId'] = apps_id unless apps_id.nil?
232
- command.query['pageToken'] = page_token unless page_token.nil?
233
266
  command.query['pageSize'] = page_size unless page_size.nil?
234
267
  command.query['filter'] = filter unless filter.nil?
268
+ command.query['pageToken'] = page_token unless page_token.nil?
235
269
  command.query['fields'] = fields unless fields.nil?
236
270
  command.query['quotaUser'] = quota_user unless quota_user.nil?
237
271
  execute_or_queue_command(command, &block)
238
272
  end
239
273
 
240
- # Gets the latest state of a long-running operation. Clients can use this method
241
- # to poll the operation result at intervals as recommended by the API service.
274
+ # Get information about a location.
242
275
  # @param [String] apps_id
243
- # Part of `name`. The name of the operation resource.
244
- # @param [String] operations_id
276
+ # Part of `name`. Resource name for the location.
277
+ # @param [String] locations_id
245
278
  # Part of `name`. See documentation of `appsId`.
246
279
  # @param [String] fields
247
280
  # Selector specifying which fields to include in a partial response.
@@ -252,20 +285,20 @@ module Google
252
285
  # Request-specific options
253
286
  #
254
287
  # @yield [result, err] Result & error if block supplied
255
- # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
288
+ # @yieldparam result [Google::Apis::AppengineV1::Location] parsed result object
256
289
  # @yieldparam err [StandardError] error object if request failed
257
290
  #
258
- # @return [Google::Apis::AppengineV1::Operation]
291
+ # @return [Google::Apis::AppengineV1::Location]
259
292
  #
260
293
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
295
  # @raise [Google::Apis::AuthorizationError] Authorization is required
263
- def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
264
- command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
265
- command.response_representation = Google::Apis::AppengineV1::Operation::Representation
266
- command.response_class = Google::Apis::AppengineV1::Operation
296
+ def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
297
+ command = make_simple_command(:get, 'v1/apps/{appsId}/locations/{locationsId}', options)
298
+ command.response_representation = Google::Apis::AppengineV1::Location::Representation
299
+ command.response_class = Google::Apis::AppengineV1::Location
267
300
  command.params['appsId'] = apps_id unless apps_id.nil?
268
- command.params['operationsId'] = operations_id unless operations_id.nil?
301
+ command.params['locationsId'] = locations_id unless locations_id.nil?
269
302
  command.query['fields'] = fields unless fields.nil?
270
303
  command.query['quotaUser'] = quota_user unless quota_user.nil?
271
304
  execute_or_queue_command(command, &block)
@@ -274,12 +307,12 @@ module Google
274
307
  # Lists information about the supported locations for this service.
275
308
  # @param [String] apps_id
276
309
  # Part of `name`. The resource that owns the locations collection, if applicable.
310
+ # @param [String] filter
311
+ # The standard list filter.
277
312
  # @param [String] page_token
278
313
  # The standard list page token.
279
314
  # @param [Fixnum] page_size
280
315
  # The standard list page size.
281
- # @param [String] filter
282
- # The standard list filter.
283
316
  # @param [String] fields
284
317
  # Selector specifying which fields to include in a partial response.
285
318
  # @param [String] quota_user
@@ -297,23 +330,24 @@ module Google
297
330
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
331
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
332
  # @raise [Google::Apis::AuthorizationError] Authorization is required
300
- def list_app_locations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
333
+ def list_app_locations(apps_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
301
334
  command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
302
335
  command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
303
336
  command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
304
337
  command.params['appsId'] = apps_id unless apps_id.nil?
338
+ command.query['filter'] = filter unless filter.nil?
305
339
  command.query['pageToken'] = page_token unless page_token.nil?
306
340
  command.query['pageSize'] = page_size unless page_size.nil?
307
- command.query['filter'] = filter unless filter.nil?
308
341
  command.query['fields'] = fields unless fields.nil?
309
342
  command.query['quotaUser'] = quota_user unless quota_user.nil?
310
343
  execute_or_queue_command(command, &block)
311
344
  end
312
345
 
313
- # Get information about a location.
346
+ # Deletes the specified service and all enclosed versions.
314
347
  # @param [String] apps_id
315
- # Part of `name`. Resource name for the location.
316
- # @param [String] locations_id
348
+ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
349
+ # default.
350
+ # @param [String] services_id
317
351
  # Part of `name`. See documentation of `appsId`.
318
352
  # @param [String] fields
319
353
  # Selector specifying which fields to include in a partial response.
@@ -324,31 +358,47 @@ module Google
324
358
  # Request-specific options
325
359
  #
326
360
  # @yield [result, err] Result & error if block supplied
327
- # @yieldparam result [Google::Apis::AppengineV1::Location] parsed result object
361
+ # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
328
362
  # @yieldparam err [StandardError] error object if request failed
329
363
  #
330
- # @return [Google::Apis::AppengineV1::Location]
364
+ # @return [Google::Apis::AppengineV1::Operation]
331
365
  #
332
366
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
367
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
368
  # @raise [Google::Apis::AuthorizationError] Authorization is required
335
- def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
336
- command = make_simple_command(:get, 'v1/apps/{appsId}/locations/{locationsId}', options)
337
- command.response_representation = Google::Apis::AppengineV1::Location::Representation
338
- command.response_class = Google::Apis::AppengineV1::Location
369
+ def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
370
+ command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}', options)
371
+ command.response_representation = Google::Apis::AppengineV1::Operation::Representation
372
+ command.response_class = Google::Apis::AppengineV1::Operation
339
373
  command.params['appsId'] = apps_id unless apps_id.nil?
340
- command.params['locationsId'] = locations_id unless locations_id.nil?
374
+ command.params['servicesId'] = services_id unless services_id.nil?
341
375
  command.query['fields'] = fields unless fields.nil?
342
376
  command.query['quotaUser'] = quota_user unless quota_user.nil?
343
377
  execute_or_queue_command(command, &block)
344
378
  end
345
379
 
346
- # Deletes the specified service and all enclosed versions.
380
+ # Updates the configuration of the specified service.
347
381
  # @param [String] apps_id
348
- # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
382
+ # Part of `name`. Name of the resource to update. Example: apps/myapp/services/
349
383
  # default.
350
384
  # @param [String] services_id
351
385
  # Part of `name`. See documentation of `appsId`.
386
+ # @param [Google::Apis::AppengineV1::Service] service_object
387
+ # @param [String] update_mask
388
+ # Standard field mask for the set of fields to be updated.
389
+ # @param [Boolean] migrate_traffic
390
+ # Set to true to gradually shift traffic to one or more versions that you
391
+ # specify. By default, traffic is shifted immediately. For gradual traffic
392
+ # migration, the target versions must be located within instances that are
393
+ # configured for both warmup requests (https://cloud.google.com/appengine/docs/
394
+ # admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) and
395
+ # automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/
396
+ # rest/v1/apps.services.versions#automaticscaling). You must specify the shardBy
397
+ # (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
398
+ # services#shardby) field in the Service resource. Gradual traffic migration is
399
+ # not supported in the App Engine flexible environment. For examples, see
400
+ # Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-
401
+ # api/migrating-splitting-traffic).
352
402
  # @param [String] fields
353
403
  # Selector specifying which fields to include in a partial response.
354
404
  # @param [String] quota_user
@@ -366,24 +416,27 @@ module Google
366
416
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
367
417
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
418
  # @raise [Google::Apis::AuthorizationError] Authorization is required
369
- def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
370
- command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}', options)
419
+ 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)
420
+ command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options)
421
+ command.request_representation = Google::Apis::AppengineV1::Service::Representation
422
+ command.request_object = service_object
371
423
  command.response_representation = Google::Apis::AppengineV1::Operation::Representation
372
424
  command.response_class = Google::Apis::AppengineV1::Operation
373
425
  command.params['appsId'] = apps_id unless apps_id.nil?
374
426
  command.params['servicesId'] = services_id unless services_id.nil?
427
+ command.query['updateMask'] = update_mask unless update_mask.nil?
428
+ command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
375
429
  command.query['fields'] = fields unless fields.nil?
376
430
  command.query['quotaUser'] = quota_user unless quota_user.nil?
377
431
  execute_or_queue_command(command, &block)
378
432
  end
379
433
 
380
- # Lists all the services in the application.
434
+ # Gets the current configuration of the specified service.
381
435
  # @param [String] apps_id
382
- # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
383
- # @param [String] page_token
384
- # Continuation token for fetching the next page of results.
385
- # @param [Fixnum] page_size
386
- # Maximum results to return per page.
436
+ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
437
+ # default.
438
+ # @param [String] services_id
439
+ # Part of `name`. See documentation of `appsId`.
387
440
  # @param [String] fields
388
441
  # Selector specifying which fields to include in a partial response.
389
442
  # @param [String] quota_user
@@ -393,32 +446,32 @@ module Google
393
446
  # Request-specific options
394
447
  #
395
448
  # @yield [result, err] Result & error if block supplied
396
- # @yieldparam result [Google::Apis::AppengineV1::ListServicesResponse] parsed result object
449
+ # @yieldparam result [Google::Apis::AppengineV1::Service] parsed result object
397
450
  # @yieldparam err [StandardError] error object if request failed
398
451
  #
399
- # @return [Google::Apis::AppengineV1::ListServicesResponse]
452
+ # @return [Google::Apis::AppengineV1::Service]
400
453
  #
401
454
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
455
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
456
  # @raise [Google::Apis::AuthorizationError] Authorization is required
404
- def list_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
405
- command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
406
- command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
407
- command.response_class = Google::Apis::AppengineV1::ListServicesResponse
457
+ def get_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}', options)
459
+ command.response_representation = Google::Apis::AppengineV1::Service::Representation
460
+ command.response_class = Google::Apis::AppengineV1::Service
408
461
  command.params['appsId'] = apps_id unless apps_id.nil?
409
- command.query['pageToken'] = page_token unless page_token.nil?
410
- command.query['pageSize'] = page_size unless page_size.nil?
462
+ command.params['servicesId'] = services_id unless services_id.nil?
411
463
  command.query['fields'] = fields unless fields.nil?
412
464
  command.query['quotaUser'] = quota_user unless quota_user.nil?
413
465
  execute_or_queue_command(command, &block)
414
466
  end
415
467
 
416
- # Gets the current configuration of the specified service.
468
+ # Lists all the services in the application.
417
469
  # @param [String] apps_id
418
- # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
419
- # default.
420
- # @param [String] services_id
421
- # Part of `name`. See documentation of `appsId`.
470
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
471
+ # @param [String] page_token
472
+ # Continuation token for fetching the next page of results.
473
+ # @param [Fixnum] page_size
474
+ # Maximum results to return per page.
422
475
  # @param [String] fields
423
476
  # Selector specifying which fields to include in a partial response.
424
477
  # @param [String] quota_user
@@ -428,47 +481,33 @@ module Google
428
481
  # Request-specific options
429
482
  #
430
483
  # @yield [result, err] Result & error if block supplied
431
- # @yieldparam result [Google::Apis::AppengineV1::Service] parsed result object
484
+ # @yieldparam result [Google::Apis::AppengineV1::ListServicesResponse] parsed result object
432
485
  # @yieldparam err [StandardError] error object if request failed
433
486
  #
434
- # @return [Google::Apis::AppengineV1::Service]
487
+ # @return [Google::Apis::AppengineV1::ListServicesResponse]
435
488
  #
436
489
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
490
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
491
  # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def get_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
440
- command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}', options)
441
- command.response_representation = Google::Apis::AppengineV1::Service::Representation
442
- command.response_class = Google::Apis::AppengineV1::Service
492
+ def list_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
494
+ command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
495
+ command.response_class = Google::Apis::AppengineV1::ListServicesResponse
443
496
  command.params['appsId'] = apps_id unless apps_id.nil?
444
- command.params['servicesId'] = services_id unless services_id.nil?
497
+ command.query['pageToken'] = page_token unless page_token.nil?
498
+ command.query['pageSize'] = page_size unless page_size.nil?
445
499
  command.query['fields'] = fields unless fields.nil?
446
500
  command.query['quotaUser'] = quota_user unless quota_user.nil?
447
501
  execute_or_queue_command(command, &block)
448
502
  end
449
503
 
450
- # Updates the configuration of the specified service.
504
+ # Deploys code and resource files to a new version.
451
505
  # @param [String] apps_id
452
- # Part of `name`. Name of the resource to update. Example: apps/myapp/services/
453
- # default.
506
+ # Part of `parent`. Name of the parent resource to create this version under.
507
+ # Example: apps/myapp/services/default.
454
508
  # @param [String] services_id
455
- # Part of `name`. See documentation of `appsId`.
456
- # @param [Google::Apis::AppengineV1::Service] service_object
457
- # @param [String] update_mask
458
- # Standard field mask for the set of fields to be updated.
459
- # @param [Boolean] migrate_traffic
460
- # Set to true to gradually shift traffic to one or more versions that you
461
- # specify. By default, traffic is shifted immediately. For gradual traffic
462
- # migration, the target versions must be located within instances that are
463
- # configured for both warmup requests (https://cloud.google.com/appengine/docs/
464
- # admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) and
465
- # automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/
466
- # rest/v1/apps.services.versions#automaticscaling). You must specify the shardBy
467
- # (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
468
- # services#shardby) field in the Service resource. Gradual traffic migration is
469
- # not supported in the App Engine flexible environment. For examples, see
470
- # Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-
471
- # api/migrating-splitting-traffic).
509
+ # Part of `parent`. See documentation of `appsId`.
510
+ # @param [Google::Apis::AppengineV1::Version] version_object
472
511
  # @param [String] fields
473
512
  # Selector specifying which fields to include in a partial response.
474
513
  # @param [String] quota_user
@@ -486,16 +525,14 @@ module Google
486
525
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
526
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
527
  # @raise [Google::Apis::AuthorizationError] Authorization is required
489
- 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)
490
- command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options)
491
- command.request_representation = Google::Apis::AppengineV1::Service::Representation
492
- command.request_object = service_object
528
+ def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
529
+ command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
530
+ command.request_representation = Google::Apis::AppengineV1::Version::Representation
531
+ command.request_object = version_object
493
532
  command.response_representation = Google::Apis::AppengineV1::Operation::Representation
494
533
  command.response_class = Google::Apis::AppengineV1::Operation
495
534
  command.params['appsId'] = apps_id unless apps_id.nil?
496
535
  command.params['servicesId'] = services_id unless services_id.nil?
497
- command.query['updateMask'] = update_mask unless update_mask.nil?
498
- command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
499
536
  command.query['fields'] = fields unless fields.nil?
500
537
  command.query['quotaUser'] = quota_user unless quota_user.nil?
501
538
  execute_or_queue_command(command, &block)
@@ -538,18 +575,34 @@ module Google
538
575
  execute_or_queue_command(command, &block)
539
576
  end
540
577
 
541
- # Lists the versions of a service.
578
+ # Updates the specified Version resource. You can specify the following fields
579
+ # depending on the App Engine environment and type of scaling that the version
580
+ # resource uses:
581
+ # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
582
+ # rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version
583
+ # resources that use basic scaling, manual scaling, or run in the App Engine
584
+ # flexible environment.
585
+ # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/
586
+ # rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version
587
+ # resources that run in the App Engine standard environment.
588
+ # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/
589
+ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
590
+ # automatic_scaling): For Version resources that use automatic scaling and run
591
+ # in the App Engine standard environment.
592
+ # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/
593
+ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
594
+ # automatic_scaling): For Version resources that use automatic scaling and run
595
+ # in the App Engine standard environment.
542
596
  # @param [String] apps_id
543
- # Part of `parent`. Name of the parent Service resource. Example: apps/myapp/
544
- # services/default.
597
+ # Part of `name`. Name of the resource to update. Example: apps/myapp/services/
598
+ # default/versions/1.
545
599
  # @param [String] services_id
546
- # Part of `parent`. See documentation of `appsId`.
547
- # @param [String] page_token
548
- # Continuation token for fetching the next page of results.
549
- # @param [Fixnum] page_size
550
- # Maximum results to return per page.
551
- # @param [String] view
552
- # Controls the set of fields returned in the List response.
600
+ # Part of `name`. See documentation of `appsId`.
601
+ # @param [String] versions_id
602
+ # Part of `name`. See documentation of `appsId`.
603
+ # @param [Google::Apis::AppengineV1::Version] version_object
604
+ # @param [String] update_mask
605
+ # Standard field mask for the set of fields to be updated.
553
606
  # @param [String] fields
554
607
  # Selector specifying which fields to include in a partial response.
555
608
  # @param [String] quota_user
@@ -559,23 +612,24 @@ module Google
559
612
  # Request-specific options
560
613
  #
561
614
  # @yield [result, err] Result & error if block supplied
562
- # @yieldparam result [Google::Apis::AppengineV1::ListVersionsResponse] parsed result object
615
+ # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
563
616
  # @yieldparam err [StandardError] error object if request failed
564
617
  #
565
- # @return [Google::Apis::AppengineV1::ListVersionsResponse]
618
+ # @return [Google::Apis::AppengineV1::Operation]
566
619
  #
567
620
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
621
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
622
  # @raise [Google::Apis::AuthorizationError] Authorization is required
570
- def list_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
571
- command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
572
- command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
573
- command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
623
+ 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)
624
+ command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
625
+ command.request_representation = Google::Apis::AppengineV1::Version::Representation
626
+ command.request_object = version_object
627
+ command.response_representation = Google::Apis::AppengineV1::Operation::Representation
628
+ command.response_class = Google::Apis::AppengineV1::Operation
574
629
  command.params['appsId'] = apps_id unless apps_id.nil?
575
630
  command.params['servicesId'] = services_id unless services_id.nil?
576
- command.query['pageToken'] = page_token unless page_token.nil?
577
- command.query['pageSize'] = page_size unless page_size.nil?
578
- command.query['view'] = view unless view.nil?
631
+ command.params['versionsId'] = versions_id unless versions_id.nil?
632
+ command.query['updateMask'] = update_mask unless update_mask.nil?
579
633
  command.query['fields'] = fields unless fields.nil?
580
634
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
635
  execute_or_queue_command(command, &block)
@@ -622,34 +676,18 @@ module Google
622
676
  execute_or_queue_command(command, &block)
623
677
  end
624
678
 
625
- # Updates the specified Version resource. You can specify the following fields
626
- # depending on the App Engine environment and type of scaling that the version
627
- # resource uses:
628
- # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
629
- # rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version
630
- # resources that use basic scaling, manual scaling, or run in the App Engine
631
- # flexible environment.
632
- # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/
633
- # rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version
634
- # resources that run in the App Engine standard environment.
635
- # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/
636
- # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
637
- # automatic_scaling): For Version resources that use automatic scaling and run
638
- # in the App Engine standard environment.
639
- # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/
640
- # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
641
- # automatic_scaling): For Version resources that use automatic scaling and run
642
- # in the App Engine standard environment.
679
+ # Lists the versions of a service.
643
680
  # @param [String] apps_id
644
- # Part of `name`. Name of the resource to update. Example: apps/myapp/services/
645
- # default/versions/1.
681
+ # Part of `parent`. Name of the parent Service resource. Example: apps/myapp/
682
+ # services/default.
646
683
  # @param [String] services_id
647
- # Part of `name`. See documentation of `appsId`.
648
- # @param [String] versions_id
649
- # Part of `name`. See documentation of `appsId`.
650
- # @param [Google::Apis::AppengineV1::Version] version_object
651
- # @param [String] update_mask
652
- # Standard field mask for the set of fields to be updated.
684
+ # Part of `parent`. See documentation of `appsId`.
685
+ # @param [String] page_token
686
+ # Continuation token for fetching the next page of results.
687
+ # @param [Fixnum] page_size
688
+ # Maximum results to return per page.
689
+ # @param [String] view
690
+ # Controls the set of fields returned in the List response.
653
691
  # @param [String] fields
654
692
  # Selector specifying which fields to include in a partial response.
655
693
  # @param [String] quota_user
@@ -659,36 +697,38 @@ module Google
659
697
  # Request-specific options
660
698
  #
661
699
  # @yield [result, err] Result & error if block supplied
662
- # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
700
+ # @yieldparam result [Google::Apis::AppengineV1::ListVersionsResponse] parsed result object
663
701
  # @yieldparam err [StandardError] error object if request failed
664
702
  #
665
- # @return [Google::Apis::AppengineV1::Operation]
703
+ # @return [Google::Apis::AppengineV1::ListVersionsResponse]
666
704
  #
667
705
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
668
706
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
707
  # @raise [Google::Apis::AuthorizationError] Authorization is required
670
- 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)
671
- command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
672
- command.request_representation = Google::Apis::AppengineV1::Version::Representation
673
- command.request_object = version_object
674
- command.response_representation = Google::Apis::AppengineV1::Operation::Representation
675
- command.response_class = Google::Apis::AppengineV1::Operation
708
+ def list_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
709
+ command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
710
+ command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
711
+ command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
676
712
  command.params['appsId'] = apps_id unless apps_id.nil?
677
713
  command.params['servicesId'] = services_id unless services_id.nil?
678
- command.params['versionsId'] = versions_id unless versions_id.nil?
679
- command.query['updateMask'] = update_mask unless update_mask.nil?
714
+ command.query['pageToken'] = page_token unless page_token.nil?
715
+ command.query['pageSize'] = page_size unless page_size.nil?
716
+ command.query['view'] = view unless view.nil?
680
717
  command.query['fields'] = fields unless fields.nil?
681
718
  command.query['quotaUser'] = quota_user unless quota_user.nil?
682
719
  execute_or_queue_command(command, &block)
683
720
  end
684
721
 
685
- # Deploys code and resource files to a new version.
722
+ # Stops a running instance.
686
723
  # @param [String] apps_id
687
- # Part of `parent`. Name of the parent resource to create this version under.
688
- # Example: apps/myapp/services/default.
724
+ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
725
+ # default/versions/v1/instances/instance-1.
689
726
  # @param [String] services_id
690
- # Part of `parent`. See documentation of `appsId`.
691
- # @param [Google::Apis::AppengineV1::Version] version_object
727
+ # Part of `name`. See documentation of `appsId`.
728
+ # @param [String] versions_id
729
+ # Part of `name`. See documentation of `appsId`.
730
+ # @param [String] instances_id
731
+ # Part of `name`. See documentation of `appsId`.
692
732
  # @param [String] fields
693
733
  # Selector specifying which fields to include in a partial response.
694
734
  # @param [String] quota_user
@@ -706,20 +746,20 @@ module Google
706
746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
707
747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
708
748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
709
- def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
710
- command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
711
- command.request_representation = Google::Apis::AppengineV1::Version::Representation
712
- command.request_object = version_object
749
+ def delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
713
751
  command.response_representation = Google::Apis::AppengineV1::Operation::Representation
714
752
  command.response_class = Google::Apis::AppengineV1::Operation
715
753
  command.params['appsId'] = apps_id unless apps_id.nil?
716
754
  command.params['servicesId'] = services_id unless services_id.nil?
755
+ command.params['versionsId'] = versions_id unless versions_id.nil?
756
+ command.params['instancesId'] = instances_id unless instances_id.nil?
717
757
  command.query['fields'] = fields unless fields.nil?
718
758
  command.query['quotaUser'] = quota_user unless quota_user.nil?
719
759
  execute_or_queue_command(command, &block)
720
760
  end
721
761
 
722
- # Stops a running instance.
762
+ # Gets instance information.
723
763
  # @param [String] apps_id
724
764
  # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
725
765
  # default/versions/v1/instances/instance-1.
@@ -738,18 +778,18 @@ module Google
738
778
  # Request-specific options
739
779
  #
740
780
  # @yield [result, err] Result & error if block supplied
741
- # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
781
+ # @yieldparam result [Google::Apis::AppengineV1::Instance] parsed result object
742
782
  # @yieldparam err [StandardError] error object if request failed
743
783
  #
744
- # @return [Google::Apis::AppengineV1::Operation]
784
+ # @return [Google::Apis::AppengineV1::Instance]
745
785
  #
746
786
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
787
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
788
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- def delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
750
- command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
751
- command.response_representation = Google::Apis::AppengineV1::Operation::Representation
752
- command.response_class = Google::Apis::AppengineV1::Operation
789
+ def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
791
+ command.response_representation = Google::Apis::AppengineV1::Instance::Representation
792
+ command.response_class = Google::Apis::AppengineV1::Instance
753
793
  command.params['appsId'] = apps_id unless apps_id.nil?
754
794
  command.params['servicesId'] = services_id unless services_id.nil?
755
795
  command.params['versionsId'] = versions_id unless versions_id.nil?
@@ -804,46 +844,6 @@ module Google
804
844
  execute_or_queue_command(command, &block)
805
845
  end
806
846
 
807
- # Gets instance information.
808
- # @param [String] apps_id
809
- # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
810
- # default/versions/v1/instances/instance-1.
811
- # @param [String] services_id
812
- # Part of `name`. See documentation of `appsId`.
813
- # @param [String] versions_id
814
- # Part of `name`. See documentation of `appsId`.
815
- # @param [String] instances_id
816
- # Part of `name`. See documentation of `appsId`.
817
- # @param [String] fields
818
- # Selector specifying which fields to include in a partial response.
819
- # @param [String] quota_user
820
- # Available to use for quota purposes for server-side applications. Can be any
821
- # arbitrary string assigned to a user, but should not exceed 40 characters.
822
- # @param [Google::Apis::RequestOptions] options
823
- # Request-specific options
824
- #
825
- # @yield [result, err] Result & error if block supplied
826
- # @yieldparam result [Google::Apis::AppengineV1::Instance] parsed result object
827
- # @yieldparam err [StandardError] error object if request failed
828
- #
829
- # @return [Google::Apis::AppengineV1::Instance]
830
- #
831
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
- # @raise [Google::Apis::AuthorizationError] Authorization is required
834
- def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
835
- command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
836
- command.response_representation = Google::Apis::AppengineV1::Instance::Representation
837
- command.response_class = Google::Apis::AppengineV1::Instance
838
- command.params['appsId'] = apps_id unless apps_id.nil?
839
- command.params['servicesId'] = services_id unless services_id.nil?
840
- command.params['versionsId'] = versions_id unless versions_id.nil?
841
- command.params['instancesId'] = instances_id unless instances_id.nil?
842
- command.query['fields'] = fields unless fields.nil?
843
- command.query['quotaUser'] = quota_user unless quota_user.nil?
844
- execute_or_queue_command(command, &block)
845
- end
846
-
847
847
  # Enables debugging on a VM instance. This allows you to use the SSH command to
848
848
  # connect to the virtual machine where the instance lives. While in "debug mode",
849
849
  # the instance continues to serve live traffic. You should delete the instance