google-api-client 0.9.8 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +61 -110
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
  10. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  11. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +3 -3
  17. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  22. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  23. data/generated/google/apis/analytics_v3/service.rb +218 -0
  24. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  25. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
  35. data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +254 -6
  40. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  42. data/generated/google/apis/books_v1.rb +2 -2
  43. data/generated/google/apis/books_v1/classes.rb +77 -0
  44. data/generated/google/apis/books_v1/representations.rb +34 -0
  45. data/generated/google/apis/books_v1/service.rb +7 -3
  46. data/generated/google/apis/calendar_v3.rb +1 -1
  47. data/generated/google/apis/civicinfo_v2.rb +3 -2
  48. data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
  49. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  50. data/generated/google/apis/civicinfo_v2/service.rb +8 -2
  51. data/generated/google/apis/classroom_v1.rb +1 -1
  52. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  53. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  54. data/generated/google/apis/classroom_v1/service.rb +392 -37
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
  58. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  59. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  60. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  61. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  64. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  65. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  66. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  68. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  69. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +1620 -199
  72. data/generated/google/apis/compute_beta/representations.rb +563 -0
  73. data/generated/google/apis/compute_beta/service.rb +5123 -2690
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +1717 -295
  76. data/generated/google/apis/compute_v1/representations.rb +536 -0
  77. data/generated/google/apis/compute_v1/service.rb +2038 -1041
  78. data/generated/google/apis/content_v2.rb +1 -1
  79. data/generated/google/apis/content_v2/classes.rb +709 -1
  80. data/generated/google/apis/content_v2/representations.rb +319 -0
  81. data/generated/google/apis/content_v2/service.rb +244 -0
  82. data/generated/google/apis/datastore_v1.rb +38 -0
  83. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  84. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  85. data/generated/google/apis/datastore_v1/service.rb +259 -0
  86. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  88. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  89. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  90. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  91. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  92. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  93. data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
  94. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  95. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  96. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  97. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  98. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  99. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  100. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  101. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  102. data/generated/google/apis/dns_v1.rb +1 -1
  103. data/generated/google/apis/dns_v1/classes.rb +1 -1
  104. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  105. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  106. data/generated/google/apis/drive_v2.rb +1 -1
  107. data/generated/google/apis/drive_v2/classes.rb +11 -3
  108. data/generated/google/apis/drive_v2/representations.rb +2 -0
  109. data/generated/google/apis/drive_v2/service.rb +8 -2
  110. data/generated/google/apis/drive_v3.rb +1 -1
  111. data/generated/google/apis/drive_v3/classes.rb +36 -16
  112. data/generated/google/apis/drive_v3/representations.rb +2 -0
  113. data/generated/google/apis/drive_v3/service.rb +4 -1
  114. data/generated/google/apis/fitness_v1.rb +8 -2
  115. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  116. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  117. data/generated/google/apis/fitness_v1/service.rb +17 -18
  118. data/generated/google/apis/fusiontables_v2.rb +1 -1
  119. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_management_v1management.rb +1 -1
  122. data/generated/google/apis/games_v1.rb +1 -1
  123. data/generated/google/apis/genomics_v1.rb +2 -4
  124. data/generated/google/apis/genomics_v1/classes.rb +111 -9
  125. data/generated/google/apis/genomics_v1/representations.rb +36 -0
  126. data/generated/google/apis/genomics_v1/service.rb +4 -7
  127. data/generated/google/apis/gmail_v1.rb +7 -1
  128. data/generated/google/apis/gmail_v1/classes.rb +540 -0
  129. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  130. data/generated/google/apis/gmail_v1/service.rb +898 -1
  131. data/generated/google/apis/groupssettings_v1.rb +1 -1
  132. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  133. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  134. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  135. data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
  136. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  137. data/generated/google/apis/language_v1beta1.rb +36 -0
  138. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  139. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  140. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  141. data/generated/google/apis/mirror_v1.rb +2 -2
  142. data/generated/google/apis/mirror_v1/service.rb +1 -1
  143. data/generated/google/apis/monitoring_v3.rb +45 -0
  144. data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
  145. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  146. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  147. data/generated/google/apis/oauth2_v2.rb +1 -1
  148. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  149. data/generated/google/apis/plus_domains_v1.rb +1 -1
  150. data/generated/google/apis/plus_v1.rb +1 -1
  151. data/generated/google/apis/qpx_express_v1.rb +1 -1
  152. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  153. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  154. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  155. data/generated/google/apis/script_v1.rb +1 -1
  156. data/generated/google/apis/script_v1/classes.rb +6 -0
  157. data/generated/google/apis/script_v1/representations.rb +1 -0
  158. data/generated/google/apis/sheets_v4.rb +1 -1
  159. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  160. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  161. data/generated/google/apis/sheets_v4/service.rb +55 -0
  162. data/generated/google/apis/speech_v1beta1.rb +34 -0
  163. data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
  164. data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
  165. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  166. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  167. data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
  168. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  169. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  170. data/generated/google/apis/storage_v1.rb +1 -1
  171. data/generated/google/apis/storage_v1/classes.rb +19 -10
  172. data/generated/google/apis/translate_v2.rb +2 -2
  173. data/generated/google/apis/translate_v2/service.rb +1 -1
  174. data/generated/google/apis/vision_v1.rb +1 -1
  175. data/generated/google/apis/vision_v1/classes.rb +10 -9
  176. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  177. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  178. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  179. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  180. data/generated/google/apis/youtube_v3.rb +1 -1
  181. data/generated/google/apis/youtube_v3/classes.rb +163 -2
  182. data/generated/google/apis/youtube_v3/representations.rb +82 -0
  183. data/generated/google/apis/youtube_v3/service.rb +6 -2
  184. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  185. data/google-api-client.gemspec +2 -1
  186. data/lib/google/apis/core/api_command.rb +4 -0
  187. data/lib/google/apis/core/base_service.rb +10 -4
  188. data/lib/google/apis/core/download.rb +7 -2
  189. data/lib/google/apis/core/http_command.rb +5 -1
  190. data/lib/google/apis/core/upload.rb +7 -1
  191. data/lib/google/apis/errors.rb +2 -2
  192. data/lib/google/apis/generator/annotator.rb +6 -0
  193. data/lib/google/apis/version.rb +1 -1
  194. data/samples/cli/lib/samples/bigquery.rb +101 -0
  195. data/samples/cli/lib/samples/sheets.rb +61 -0
  196. data/sync.rb +71 -0
  197. metadata +43 -13
@@ -208,13 +208,31 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
+ class Instance
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
211
217
  class ListInstancesResponse
212
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
219
 
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
217
- class Instance
223
+ class DebugInstanceRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class ListLocationsResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Location
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
220
238
  include Google::Apis::Core::JsonObjectSupport
@@ -232,6 +250,18 @@ module Google
232
250
  include Google::Apis::Core::JsonObjectSupport
233
251
  end
234
252
 
253
+ class OperationMetadataV1
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class LocationMetadata
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
235
265
  class Operation
236
266
  # @private
237
267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,15 +609,6 @@ module Google
579
609
  end
580
610
  end
581
611
 
582
- class ListInstancesResponse
583
- # @private
584
- class Representation < Google::Apis::Core::JsonRepresentation
585
- collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
586
-
587
- property :next_page_token, as: 'nextPageToken'
588
- end
589
- end
590
-
591
612
  class Instance
592
613
  # @private
593
614
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -609,6 +630,40 @@ module Google
609
630
  end
610
631
  end
611
632
 
633
+ class ListInstancesResponse
634
+ # @private
635
+ class Representation < Google::Apis::Core::JsonRepresentation
636
+ collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
637
+
638
+ property :next_page_token, as: 'nextPageToken'
639
+ end
640
+ end
641
+
642
+ class DebugInstanceRequest
643
+ # @private
644
+ class Representation < Google::Apis::Core::JsonRepresentation
645
+ end
646
+ end
647
+
648
+ class ListLocationsResponse
649
+ # @private
650
+ class Representation < Google::Apis::Core::JsonRepresentation
651
+ collection :locations, as: 'locations', class: Google::Apis::AppengineV1beta5::Location, decorator: Google::Apis::AppengineV1beta5::Location::Representation
652
+
653
+ property :next_page_token, as: 'nextPageToken'
654
+ end
655
+ end
656
+
657
+ class Location
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :name, as: 'name'
661
+ property :location_id, as: 'locationId'
662
+ hash :labels, as: 'labels'
663
+ hash :metadata, as: 'metadata'
664
+ end
665
+ end
666
+
612
667
  class OperationMetadata
613
668
  # @private
614
669
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -631,6 +686,25 @@ module Google
631
686
  property :target, as: 'target'
632
687
  end
633
688
  end
689
+
690
+ class OperationMetadataV1
691
+ # @private
692
+ class Representation < Google::Apis::Core::JsonRepresentation
693
+ property :method_prop, as: 'method'
694
+ property :insert_time, as: 'insertTime'
695
+ property :end_time, as: 'endTime'
696
+ property :user, as: 'user'
697
+ property :target, as: 'target'
698
+ end
699
+ end
700
+
701
+ class LocationMetadata
702
+ # @private
703
+ class Representation < Google::Apis::Core::JsonRepresentation
704
+ property :standard_environment_available, as: 'standardEnvironmentAvailable'
705
+ property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
706
+ end
707
+ end
634
708
  end
635
709
  end
636
710
  end
@@ -46,9 +46,43 @@ module Google
46
46
  super('https://appengine.googleapis.com/', '')
47
47
  end
48
48
 
49
+ # Creates an App Engine application for a Google Cloud Platform project. This
50
+ # requires a project that excludes an App Engine application. For details about
51
+ # creating a project without an application, see the [Google Cloud Resource
52
+ # Manager create project topic](https://cloud.google.com/resource-manager/docs/
53
+ # creating-project).
54
+ # @param [Google::Apis::AppengineV1beta5::Application] application_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::AppengineV1beta5::Operation]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1beta5/apps', options)
74
+ command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
75
+ command.request_object = application_object
76
+ command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
77
+ command.response_class = Google::Apis::AppengineV1beta5::Operation
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
49
83
  # Gets information about an application.
50
84
  # @param [String] apps_id
51
- # Part of `name`. Name of the application to get. For example: "apps/myapp".
85
+ # Part of `name`. Name of the application to get. Example: `apps/myapp`.
52
86
  # @param [Boolean] ensure_resources_exist
53
87
  # Certain resources associated with an application are created on-demand.
54
88
  # Controls whether these resources should be created when performing the `GET`
@@ -160,10 +194,10 @@ module Google
160
194
  execute_or_queue_command(command, &block)
161
195
  end
162
196
 
163
- # Deletes a service and all enclosed versions.
197
+ # Deletes the specified service and all enclosed versions.
164
198
  # @param [String] apps_id
165
- # Part of `name`. Name of the resource requested. For example: "apps/myapp/
166
- # services/default".
199
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
200
+ # default`.
167
201
  # @param [String] services_id
168
202
  # Part of `name`. See documentation of `appsId`.
169
203
  # @param [String] fields
@@ -194,10 +228,10 @@ module Google
194
228
  execute_or_queue_command(command, &block)
195
229
  end
196
230
 
197
- # Gets the current configuration of the service.
231
+ # Gets the current configuration of the specified service.
198
232
  # @param [String] apps_id
199
- # Part of `name`. Name of the resource requested. For example: "apps/myapp/
200
- # services/default".
233
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
234
+ # default`.
201
235
  # @param [String] services_id
202
236
  # Part of `name`. See documentation of `appsId`.
203
237
  # @param [String] fields
@@ -230,7 +264,7 @@ module Google
230
264
 
231
265
  # Lists all the services in the application.
232
266
  # @param [String] apps_id
233
- # Part of `name`. Name of the resource requested. For example: "apps/myapp".
267
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp`.
234
268
  # @param [Fixnum] page_size
235
269
  # Maximum results to return per page.
236
270
  # @param [String] page_token
@@ -266,16 +300,26 @@ module Google
266
300
 
267
301
  # Updates the configuration of the specified service.
268
302
  # @param [String] apps_id
269
- # Part of `name`. Name of the resource to update. For example: "apps/myapp/
270
- # services/default".
303
+ # Part of `name`. Name of the resource to update. Example: `apps/myapp/services/
304
+ # default`.
271
305
  # @param [String] services_id
272
306
  # Part of `name`. See documentation of `appsId`.
273
307
  # @param [Google::Apis::AppengineV1beta5::Service] service_object
274
308
  # @param [String] mask
275
309
  # Standard field mask for the set of fields to be updated.
276
310
  # @param [Boolean] migrate_traffic
277
- # Whether to use Traffic Migration to shift traffic gradually. Traffic can only
278
- # be migrated from a single version to another single version.
311
+ # Set to `true` to gradually shift traffic from one version to another single
312
+ # version. By default, traffic is shifted immediately. For gradual traffic
313
+ # migration, the target version must be located within instances that are
314
+ # configured for both [warmup requests](https://cloud.google.com/appengine/docs/
315
+ # admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype)
316
+ # and [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/
317
+ # reference/rest/v1beta5/apps.services.versions#automaticscaling). You must
318
+ # specify the [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/
319
+ # reference/rest/v1beta5/apps.services#shardby) field in the Service resource.
320
+ # Gradual traffic migration is not supported in the App Engine flexible
321
+ # environment. For examples, see [Migrating and Splitting Traffic](https://cloud.
322
+ # google.com/appengine/docs/admin-api/migrating-splitting-traffic).
279
323
  # @param [String] fields
280
324
  # Selector specifying which fields to include in a partial response.
281
325
  # @param [String] quota_user
@@ -308,7 +352,7 @@ module Google
308
352
  execute_or_queue_command(command, &block)
309
353
  end
310
354
 
311
- # Deploys new code and resource files to a version.
355
+ # Deploys new code and resource files to a new version.
312
356
  # @param [String] apps_id
313
357
  # Part of `name`. Name of the resource to update. For example: "apps/myapp/
314
358
  # services/default".
@@ -347,8 +391,8 @@ module Google
347
391
 
348
392
  # Deletes an existing version.
349
393
  # @param [String] apps_id
350
- # Part of `name`. Name of the resource requested. For example: "apps/myapp/
351
- # services/default/versions/v1".
394
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
395
+ # default/versions/v1`.
352
396
  # @param [String] services_id
353
397
  # Part of `name`. See documentation of `appsId`.
354
398
  # @param [String] versions_id
@@ -382,10 +426,11 @@ module Google
382
426
  execute_or_queue_command(command, &block)
383
427
  end
384
428
 
385
- # Gets application deployment information.
429
+ # Gets the specified Version resource. By default, only a `BASIC_VIEW` will be
430
+ # returned. Specify the `FULL_VIEW` parameter to get the full resource.
386
431
  # @param [String] apps_id
387
- # Part of `name`. Name of the resource requested. For example: "apps/myapp/
388
- # services/default/versions/v1".
432
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
433
+ # default/versions/v1`.
389
434
  # @param [String] services_id
390
435
  # Part of `name`. See documentation of `appsId`.
391
436
  # @param [String] versions_id
@@ -424,8 +469,8 @@ module Google
424
469
 
425
470
  # Lists the versions of a service.
426
471
  # @param [String] apps_id
427
- # Part of `name`. Name of the resource requested. For example: "apps/myapp/
428
- # services/default".
472
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
473
+ # default`.
429
474
  # @param [String] services_id
430
475
  # Part of `name`. See documentation of `appsId`.
431
476
  # @param [String] view
@@ -465,10 +510,25 @@ module Google
465
510
  execute_or_queue_command(command, &block)
466
511
  end
467
512
 
468
- # Updates an existing version. Note: UNIMPLEMENTED.
513
+ # Updates the specified Version resource. You can specify the following fields
514
+ # depending on the App Engine environment and type of scaling that the version
515
+ # resource uses: * [`serving_status`](https://cloud.google.com/appengine/docs/
516
+ # admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
517
+ # serving_status): For Version resources that use basic scaling, manual scaling,
518
+ # or run in the App Engine flexible environment. * [`instance_class`](https://
519
+ # cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.
520
+ # versions#Version.FIELDS.instance_class): For Version resources that run in the
521
+ # App Engine standard environment. * [`automatic_scaling.min_idle_instances`](
522
+ # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.
523
+ # services.versions#Version.FIELDS.automatic_scaling): For Version resources
524
+ # that use automatic scaling and run in the App Engine standard environment. * [`
525
+ # automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/
526
+ # admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
527
+ # automatic_scaling): For Version resources that use automatic scaling and run
528
+ # in the App Engine standard environment.
469
529
  # @param [String] apps_id
470
- # Part of `name`. Name of the resource to update. For example: "apps/myapp/
471
- # services/default/versions/1".
530
+ # Part of `name`. Name of the resource to update. Example: `apps/myapp/services/
531
+ # default/versions/1`.
472
532
  # @param [String] services_id
473
533
  # Part of `name`. See documentation of `appsId`.
474
534
  # @param [String] versions_id
@@ -508,10 +568,90 @@ module Google
508
568
  execute_or_queue_command(command, &block)
509
569
  end
510
570
 
511
- # Lists the instances of a version.
571
+ # Stops a running instance.
512
572
  # @param [String] apps_id
513
573
  # Part of `name`. Name of the resource requested. For example: "apps/myapp/
514
- # services/default/versions/v1".
574
+ # services/default/versions/v1/instances/instance-1".
575
+ # @param [String] services_id
576
+ # Part of `name`. See documentation of `appsId`.
577
+ # @param [String] versions_id
578
+ # Part of `name`. See documentation of `appsId`.
579
+ # @param [String] instances_id
580
+ # Part of `name`. See documentation of `appsId`.
581
+ # @param [String] fields
582
+ # Selector specifying which fields to include in a partial response.
583
+ # @param [String] quota_user
584
+ # Available to use for quota purposes for server-side applications. Can be any
585
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
586
+ # @param [Google::Apis::RequestOptions] options
587
+ # Request-specific options
588
+ #
589
+ # @yield [result, err] Result & error if block supplied
590
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
591
+ # @yieldparam err [StandardError] error object if request failed
592
+ #
593
+ # @return [Google::Apis::AppengineV1beta5::Operation]
594
+ #
595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
598
+ def delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
599
+ command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
600
+ command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
601
+ command.response_class = Google::Apis::AppengineV1beta5::Operation
602
+ command.params['appsId'] = apps_id unless apps_id.nil?
603
+ command.params['servicesId'] = services_id unless services_id.nil?
604
+ command.params['versionsId'] = versions_id unless versions_id.nil?
605
+ command.params['instancesId'] = instances_id unless instances_id.nil?
606
+ command.query['fields'] = fields unless fields.nil?
607
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
608
+ execute_or_queue_command(command, &block)
609
+ end
610
+
611
+ # Gets instance information.
612
+ # @param [String] apps_id
613
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
614
+ # default/versions/v1/instances/instance-1`.
615
+ # @param [String] services_id
616
+ # Part of `name`. See documentation of `appsId`.
617
+ # @param [String] versions_id
618
+ # Part of `name`. See documentation of `appsId`.
619
+ # @param [String] instances_id
620
+ # Part of `name`. See documentation of `appsId`.
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Instance] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::AppengineV1beta5::Instance]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
640
+ command.response_representation = Google::Apis::AppengineV1beta5::Instance::Representation
641
+ command.response_class = Google::Apis::AppengineV1beta5::Instance
642
+ command.params['appsId'] = apps_id unless apps_id.nil?
643
+ command.params['servicesId'] = services_id unless services_id.nil?
644
+ command.params['versionsId'] = versions_id unless versions_id.nil?
645
+ command.params['instancesId'] = instances_id unless instances_id.nil?
646
+ command.query['fields'] = fields unless fields.nil?
647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
648
+ execute_or_queue_command(command, &block)
649
+ end
650
+
651
+ # Lists the instances of a version.
652
+ # @param [String] apps_id
653
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
654
+ # default/versions/v1`.
515
655
  # @param [String] services_id
516
656
  # Part of `name`. See documentation of `appsId`.
517
657
  # @param [String] versions_id
@@ -550,6 +690,126 @@ module Google
550
690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
551
691
  execute_or_queue_command(command, &block)
552
692
  end
693
+
694
+ # Enables debugging on a VM instance. This allows you to use the SSH command to
695
+ # connect to the virtual machine where the instance lives. While in "debug mode",
696
+ # the instance continues to serve live traffic. You should delete the instance
697
+ # when you are done debugging and then allow the system to take over and
698
+ # determine if another instance should be started. Only applicable for instances
699
+ # in App Engine flexible environment.
700
+ # @param [String] apps_id
701
+ # Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
702
+ # default/versions/v1/instances/instance-1`.
703
+ # @param [String] services_id
704
+ # Part of `name`. See documentation of `appsId`.
705
+ # @param [String] versions_id
706
+ # Part of `name`. See documentation of `appsId`.
707
+ # @param [String] instances_id
708
+ # Part of `name`. See documentation of `appsId`.
709
+ # @param [Google::Apis::AppengineV1beta5::DebugInstanceRequest] debug_instance_request_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::AppengineV1beta5::Operation]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def debug_instance(apps_id, services_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
+ command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
729
+ command.request_representation = Google::Apis::AppengineV1beta5::DebugInstanceRequest::Representation
730
+ command.request_object = debug_instance_request_object
731
+ command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
732
+ command.response_class = Google::Apis::AppengineV1beta5::Operation
733
+ command.params['appsId'] = apps_id unless apps_id.nil?
734
+ command.params['servicesId'] = services_id unless services_id.nil?
735
+ command.params['versionsId'] = versions_id unless versions_id.nil?
736
+ command.params['instancesId'] = instances_id unless instances_id.nil?
737
+ command.query['fields'] = fields unless fields.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
741
+
742
+ # Lists information about the supported locations for this service.
743
+ # @param [String] apps_id
744
+ # Part of `name`. The resource that owns the locations collection, if applicable.
745
+ # @param [String] filter
746
+ # The standard list filter.
747
+ # @param [Fixnum] page_size
748
+ # The standard list page size.
749
+ # @param [String] page_token
750
+ # The standard list page token.
751
+ # @param [String] fields
752
+ # Selector specifying which fields to include in a partial response.
753
+ # @param [String] quota_user
754
+ # Available to use for quota purposes for server-side applications. Can be any
755
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
756
+ # @param [Google::Apis::RequestOptions] options
757
+ # Request-specific options
758
+ #
759
+ # @yield [result, err] Result & error if block supplied
760
+ # @yieldparam result [Google::Apis::AppengineV1beta5::ListLocationsResponse] parsed result object
761
+ # @yieldparam err [StandardError] error object if request failed
762
+ #
763
+ # @return [Google::Apis::AppengineV1beta5::ListLocationsResponse]
764
+ #
765
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
766
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
768
+ def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
769
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations', options)
770
+ command.response_representation = Google::Apis::AppengineV1beta5::ListLocationsResponse::Representation
771
+ command.response_class = Google::Apis::AppengineV1beta5::ListLocationsResponse
772
+ command.params['appsId'] = apps_id unless apps_id.nil?
773
+ command.query['filter'] = filter unless filter.nil?
774
+ command.query['pageSize'] = page_size unless page_size.nil?
775
+ command.query['pageToken'] = page_token unless page_token.nil?
776
+ command.query['fields'] = fields unless fields.nil?
777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
778
+ execute_or_queue_command(command, &block)
779
+ end
780
+
781
+ # Get information about a location.
782
+ # @param [String] apps_id
783
+ # Part of `name`. Resource name for the location.
784
+ # @param [String] locations_id
785
+ # Part of `name`. See documentation of `appsId`.
786
+ # @param [String] fields
787
+ # Selector specifying which fields to include in a partial response.
788
+ # @param [String] quota_user
789
+ # Available to use for quota purposes for server-side applications. Can be any
790
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
791
+ # @param [Google::Apis::RequestOptions] options
792
+ # Request-specific options
793
+ #
794
+ # @yield [result, err] Result & error if block supplied
795
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Location] parsed result object
796
+ # @yieldparam err [StandardError] error object if request failed
797
+ #
798
+ # @return [Google::Apis::AppengineV1beta5::Location]
799
+ #
800
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
801
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
802
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
803
+ def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
804
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations/{locationsId}', options)
805
+ command.response_representation = Google::Apis::AppengineV1beta5::Location::Representation
806
+ command.response_class = Google::Apis::AppengineV1beta5::Location
807
+ command.params['appsId'] = apps_id unless apps_id.nil?
808
+ command.params['locationsId'] = locations_id unless locations_id.nil?
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
553
813
 
554
814
  protected
555
815