google-api-client 0.9.19 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/api_names.yaml +2 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +20 -3
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  11. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  13. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1/classes.rb +9 -7
  15. data/generated/google/apis/androidenterprise_v1/service.rb +7 -1
  16. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  17. data/generated/google/apis/appengine_v1beta5/classes.rb +86 -25
  18. data/generated/google/apis/appengine_v1beta5/representations.rb +31 -12
  19. data/generated/google/apis/appengine_v1beta5/service.rb +33 -33
  20. data/generated/google/apis/appsactivity_v1.rb +1 -1
  21. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  22. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  23. data/generated/google/apis/appstate_v1.rb +1 -1
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +27 -18
  26. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  27. data/generated/google/apis/calendar_v3.rb +1 -1
  28. data/generated/google/apis/civicinfo_v2.rb +1 -1
  29. data/generated/google/apis/civicinfo_v2/classes.rb +243 -0
  30. data/generated/google/apis/civicinfo_v2/representations.rb +64 -0
  31. data/generated/google/apis/classroom_v1/service.rb +1 -1
  32. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/compute_beta.rb +1 -1
  37. data/generated/google/apis/compute_beta/classes.rb +443 -13
  38. data/generated/google/apis/compute_beta/representations.rb +155 -0
  39. data/generated/google/apis/compute_beta/service.rb +383 -2
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +43 -13
  42. data/generated/google/apis/compute_v1/representations.rb +13 -0
  43. data/generated/google/apis/compute_v1/service.rb +89 -1
  44. data/generated/google/apis/content_v2.rb +1 -1
  45. data/generated/google/apis/content_v2/classes.rb +48 -0
  46. data/generated/google/apis/content_v2/representations.rb +18 -0
  47. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  48. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -0
  49. data/generated/google/apis/dataflow_v1b3/representations.rb +18 -0
  50. data/generated/google/apis/dataflow_v1b3/service.rb +367 -7
  51. data/generated/google/apis/dataproc_v1.rb +2 -2
  52. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  53. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  54. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  55. data/generated/google/apis/datastore_v1.rb +1 -1
  56. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2/classes.rb +3 -3
  58. data/generated/google/apis/deploymentmanager_v2/service.rb +55 -5
  59. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  60. data/generated/google/apis/dfareporting_v2_6/classes.rb +4 -3
  61. data/generated/google/apis/dfareporting_v2_6/service.rb +48 -29
  62. data/generated/google/apis/dns_v1.rb +1 -1
  63. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  64. data/generated/google/apis/drive_v2.rb +1 -1
  65. data/generated/google/apis/drive_v2/classes.rb +7 -0
  66. data/generated/google/apis/drive_v2/representations.rb +1 -0
  67. data/generated/google/apis/drive_v3.rb +1 -1
  68. data/generated/google/apis/drive_v3/classes.rb +7 -0
  69. data/generated/google/apis/drive_v3/representations.rb +1 -0
  70. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  71. data/generated/google/apis/games_management_v1management.rb +1 -1
  72. data/generated/google/apis/games_v1.rb +1 -1
  73. data/generated/google/apis/genomics_v1.rb +1 -1
  74. data/generated/google/apis/genomics_v1/classes.rb +9 -2
  75. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  76. data/generated/google/apis/genomics_v1/service.rb +2 -1
  77. data/generated/google/apis/gmail_v1.rb +4 -1
  78. data/generated/google/apis/gmail_v1/classes.rb +8 -10
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/identitytoolkit_v3/classes.rb +39 -6
  81. data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -1
  82. data/generated/google/apis/language_v1beta1.rb +1 -1
  83. data/generated/google/apis/language_v1beta1/classes.rb +3 -2
  84. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  85. data/generated/google/apis/logging_v2beta1.rb +1 -1
  86. data/generated/google/apis/logging_v2beta1/classes.rb +22 -18
  87. data/generated/google/apis/logging_v2beta1/service.rb +17 -3
  88. data/generated/google/apis/monitoring_v3.rb +1 -1
  89. data/generated/google/apis/monitoring_v3/classes.rb +26 -24
  90. data/generated/google/apis/oauth2_v2.rb +1 -1
  91. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  92. data/generated/google/apis/plus_domains_v1.rb +1 -1
  93. data/generated/google/apis/plus_v1.rb +1 -1
  94. data/generated/google/apis/sheets_v4.rb +1 -1
  95. data/generated/google/apis/sheets_v4/classes.rb +771 -75
  96. data/generated/google/apis/sheets_v4/representations.rb +125 -10
  97. data/generated/google/apis/sheets_v4/service.rb +39 -2
  98. data/generated/google/apis/slides_v1.rb +49 -0
  99. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  100. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  101. data/generated/google/apis/slides_v1/service.rb +202 -0
  102. data/generated/google/apis/speech_v1beta1.rb +1 -1
  103. data/generated/google/apis/speech_v1beta1/service.rb +25 -25
  104. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  105. data/generated/google/apis/storage_v1.rb +1 -1
  106. data/generated/google/apis/vision_v1.rb +1 -1
  107. data/generated/google/apis/vision_v1/classes.rb +2 -2
  108. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  109. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  110. data/generated/google/apis/youtube_v3.rb +1 -1
  111. data/generated/google/apis/youtube_v3/classes.rb +20 -19
  112. data/generated/google/apis/youtube_v3/representations.rb +3 -4
  113. data/generated/google/apis/youtube_v3/service.rb +35 -3
  114. data/lib/google/apis/version.rb +1 -1
  115. metadata +6 -2
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class ClusterMetrics
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Operation
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class YarnApplication
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class ListJobsResponse
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -245,11 +257,14 @@ module Google
245
257
  property :cluster_name, as: 'clusterName'
246
258
  property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
247
259
 
260
+ hash :labels, as: 'labels'
248
261
  property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
249
262
 
250
263
  collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
251
264
 
252
265
  property :cluster_uuid, as: 'clusterUuid'
266
+ property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
267
+
253
268
  end
254
269
  end
255
270
 
@@ -278,6 +293,7 @@ module Google
278
293
  property :zone_uri, as: 'zoneUri'
279
294
  property :network_uri, as: 'networkUri'
280
295
  property :subnetwork_uri, as: 'subnetworkUri'
296
+ property :internal_ip_only, as: 'internalIpOnly'
281
297
  collection :service_account_scopes, as: 'serviceAccountScopes'
282
298
  collection :tags, as: 'tags'
283
299
  hash :metadata, as: 'metadata'
@@ -340,6 +356,14 @@ module Google
340
356
  end
341
357
  end
342
358
 
359
+ class ClusterMetrics
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ hash :hdfs_metrics, as: 'hdfsMetrics'
363
+ hash :yarn_metrics, as: 'yarnMetrics'
364
+ end
365
+ end
366
+
343
367
  class Operation
344
368
  # @private
345
369
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -407,8 +431,11 @@ module Google
407
431
 
408
432
  collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
409
433
 
434
+ collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
435
+
410
436
  property :driver_output_resource_uri, as: 'driverOutputResourceUri'
411
437
  property :driver_control_files_uri, as: 'driverControlFilesUri'
438
+ hash :labels, as: 'labels'
412
439
  end
413
440
  end
414
441
 
@@ -538,6 +565,16 @@ module Google
538
565
  end
539
566
  end
540
567
 
568
+ class YarnApplication
569
+ # @private
570
+ class Representation < Google::Apis::Core::JsonRepresentation
571
+ property :name, as: 'name'
572
+ property :state, as: 'state'
573
+ property :progress, as: 'progress'
574
+ property :tracking_url, as: 'trackingUrl'
575
+ end
576
+ end
577
+
541
578
  class ListJobsResponse
542
579
  # @private
543
580
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -586,6 +623,7 @@ module Google
586
623
 
587
624
  property :operation_type, as: 'operationType'
588
625
  property :description, as: 'description'
626
+ hash :labels, as: 'labels'
589
627
  end
590
628
  end
591
629
 
@@ -22,7 +22,7 @@ module Google
22
22
  module DataprocV1
23
23
  # Google Cloud Dataproc API
24
24
  #
25
- # Manages Hadoop-based clusters and jobs on Google Cloud Platform.
25
+ # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/dataproc_v1'
@@ -215,10 +215,24 @@ module Google
215
215
  # belongs to.
216
216
  # @param [String] region
217
217
  # [Required] The Cloud Dataproc region in which to handle the request.
218
+ # @param [String] filter
219
+ # [Optional] A filter constraining the clusters to list. Filters are case-
220
+ # sensitive and have the following syntax: field:value [field:value] ... or
221
+ # field = value [AND [field = value]] ... where **field** is one of `status.
222
+ # state`, `clusterName`, or `labels.[KEY]`, and `[KEY]` is a label key. **value**
223
+ # can be `*` to match all values. `status.state` can be one of the following: `
224
+ # ACTIVE`, `INACTIVE`, `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`.
225
+ # `ACTIVE` contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
226
+ # contains the `DELETING` and `ERROR` states. `clusterName` is the name of the
227
+ # cluster provided at creation time. Only the logical `AND` operator is
228
+ # supported; space-separated items are treated as having an implicit `AND`
229
+ # operator. Example valid filters are: status.state:ACTIVE clusterName:mycluster
230
+ # labels.env:staging \ labels.starred:* and status.state = ACTIVE AND
231
+ # clusterName = mycluster \ AND labels.env = staging AND labels.starred = *
218
232
  # @param [Fixnum] page_size
219
- # The standard List page size.
233
+ # [Optional] The standard List page size.
220
234
  # @param [String] page_token
221
- # The standard List page token.
235
+ # [Optional] The standard List page token.
222
236
  # @param [String] fields
223
237
  # Selector specifying which fields to include in a partial response.
224
238
  # @param [String] quota_user
@@ -236,12 +250,13 @@ module Google
236
250
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
251
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
252
  # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def list_clusters(project_id, region, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ def list_clusters(project_id, region, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
240
254
  command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
241
255
  command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
242
256
  command.response_class = Google::Apis::DataprocV1::ListClustersResponse
243
257
  command.params['projectId'] = project_id unless project_id.nil?
244
258
  command.params['region'] = region unless region.nil?
259
+ command.query['filter'] = filter unless filter.nil?
245
260
  command.query['pageSize'] = page_size unless page_size.nil?
246
261
  command.query['pageToken'] = page_token unless page_token.nil?
247
262
  command.query['fields'] = fields unless fields.nil?
@@ -376,7 +391,18 @@ module Google
376
391
  # [Optional] If set, the returned jobs list includes only jobs that were
377
392
  # submitted to the named cluster.
378
393
  # @param [String] job_state_matcher
379
- # [Optional] Specifies enumerated categories of jobs to list.
394
+ # [Optional] Specifies enumerated categories of jobs to list (default = match
395
+ # ALL jobs).
396
+ # @param [String] filter
397
+ # [Optional] A filter constraining the jobs to list. Filters are case-sensitive
398
+ # and have the following syntax: field:value] ... or [field = value] AND [field [
399
+ # = value]] ... where **field** is `status.state` or `labels.[KEY]`, and `[KEY]`
400
+ # is a label key. **value** can be `*` to match all values. `status.state` can
401
+ # be either `ACTIVE` or `INACTIVE`. Only the logical `AND` operator is supported;
402
+ # space-separated items are treated as having an implicit `AND` operator.
403
+ # Example valid filters are: status.state:ACTIVE labels.env:staging labels.
404
+ # starred:* and status.state = ACTIVE AND labels.env = staging AND labels.
405
+ # starred = *
380
406
  # @param [String] fields
381
407
  # Selector specifying which fields to include in a partial response.
382
408
  # @param [String] quota_user
@@ -394,7 +420,7 @@ module Google
394
420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, fields: nil, quota_user: nil, options: nil, &block)
423
+ def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
398
424
  command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
399
425
  command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
400
426
  command.response_class = Google::Apis::DataprocV1::ListJobsResponse
@@ -404,6 +430,7 @@ module Google
404
430
  command.query['pageToken'] = page_token unless page_token.nil?
405
431
  command.query['clusterName'] = cluster_name unless cluster_name.nil?
406
432
  command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
433
+ command.query['filter'] = filter unless filter.nil?
407
434
  command.query['fields'] = fields unless fields.nil?
408
435
  command.query['quotaUser'] = quota_user unless quota_user.nil?
409
436
  execute_or_queue_command(command, &block)
@@ -488,10 +515,18 @@ module Google
488
515
  execute_or_queue_command(command, &block)
489
516
  end
490
517
 
491
- # Gets the latest state of a long-running operation. Clients can use this method
492
- # to poll the operation result at intervals as recommended by the API service.
518
+ # Lists operations that match the specified filter in the request. If the server
519
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
520
+ # binding below allows API services to override the binding to use different
521
+ # resource name schemes, such as `users/*/operations`.
493
522
  # @param [String] name
494
- # The name of the operation resource.
523
+ # The name of the operation collection.
524
+ # @param [String] filter
525
+ # The standard list filter.
526
+ # @param [Fixnum] page_size
527
+ # The standard list page size.
528
+ # @param [String] page_token
529
+ # The standard list page token.
495
530
  # @param [String] fields
496
531
  # Selector specifying which fields to include in a partial response.
497
532
  # @param [String] quota_user
@@ -501,36 +536,31 @@ module Google
501
536
  # Request-specific options
502
537
  #
503
538
  # @yield [result, err] Result & error if block supplied
504
- # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
539
+ # @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
505
540
  # @yieldparam err [StandardError] error object if request failed
506
541
  #
507
- # @return [Google::Apis::DataprocV1::Operation]
542
+ # @return [Google::Apis::DataprocV1::ListOperationsResponse]
508
543
  #
509
544
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
547
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
513
548
  command = make_simple_command(:get, 'v1/{+name}', options)
514
- command.response_representation = Google::Apis::DataprocV1::Operation::Representation
515
- command.response_class = Google::Apis::DataprocV1::Operation
549
+ command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
550
+ command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
516
551
  command.params['name'] = name unless name.nil?
552
+ command.query['filter'] = filter unless filter.nil?
553
+ command.query['pageSize'] = page_size unless page_size.nil?
554
+ command.query['pageToken'] = page_token unless page_token.nil?
517
555
  command.query['fields'] = fields unless fields.nil?
518
556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
519
557
  execute_or_queue_command(command, &block)
520
558
  end
521
559
 
522
- # Lists operations that match the specified filter in the request. If the server
523
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
524
- # binding below allows API services to override the binding to use different
525
- # resource name schemes, such as `users/*/operations`.
560
+ # Gets the latest state of a long-running operation. Clients can use this method
561
+ # to poll the operation result at intervals as recommended by the API service.
526
562
  # @param [String] name
527
- # The name of the operation collection.
528
- # @param [String] filter
529
- # The standard list filter.
530
- # @param [Fixnum] page_size
531
- # The standard list page size.
532
- # @param [String] page_token
533
- # The standard list page token.
563
+ # The name of the operation resource.
534
564
  # @param [String] fields
535
565
  # Selector specifying which fields to include in a partial response.
536
566
  # @param [String] quota_user
@@ -540,34 +570,30 @@ module Google
540
570
  # Request-specific options
541
571
  #
542
572
  # @yield [result, err] Result & error if block supplied
543
- # @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
573
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
544
574
  # @yieldparam err [StandardError] error object if request failed
545
575
  #
546
- # @return [Google::Apis::DataprocV1::ListOperationsResponse]
576
+ # @return [Google::Apis::DataprocV1::Operation]
547
577
  #
548
578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
551
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
581
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
552
582
  command = make_simple_command(:get, 'v1/{+name}', options)
553
- command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
554
- command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
583
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
584
+ command.response_class = Google::Apis::DataprocV1::Operation
555
585
  command.params['name'] = name unless name.nil?
556
- command.query['filter'] = filter unless filter.nil?
557
- command.query['pageSize'] = page_size unless page_size.nil?
558
- command.query['pageToken'] = page_token unless page_token.nil?
559
586
  command.query['fields'] = fields unless fields.nil?
560
587
  command.query['quotaUser'] = quota_user unless quota_user.nil?
561
588
  execute_or_queue_command(command, &block)
562
589
  end
563
590
 
564
- # Starts asynchronous cancellation on a long-running operation. The server makes
565
- # a best effort to cancel the operation, but success is not guaranteed. If the
566
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
567
- # Clients can use Operations.GetOperation or other methods to check whether the
568
- # cancellation succeeded or whether the operation completed despite cancellation.
591
+ # Deletes a long-running operation. This method indicates that the client is no
592
+ # longer interested in the operation result. It does not cancel the operation.
593
+ # If the server doesn't support this method, it returns `google.rpc.Code.
594
+ # UNIMPLEMENTED`.
569
595
  # @param [String] name
570
- # The name of the operation resource to be cancelled.
596
+ # The name of the operation resource to be deleted.
571
597
  # @param [String] fields
572
598
  # Selector specifying which fields to include in a partial response.
573
599
  # @param [String] quota_user
@@ -585,8 +611,8 @@ module Google
585
611
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
612
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
613
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
589
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
614
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:delete, 'v1/{+name}', options)
590
616
  command.response_representation = Google::Apis::DataprocV1::Empty::Representation
591
617
  command.response_class = Google::Apis::DataprocV1::Empty
592
618
  command.params['name'] = name unless name.nil?
@@ -595,12 +621,16 @@ module Google
595
621
  execute_or_queue_command(command, &block)
596
622
  end
597
623
 
598
- # Deletes a long-running operation. This method indicates that the client is no
599
- # longer interested in the operation result. It does not cancel the operation.
600
- # If the server doesn't support this method, it returns `google.rpc.Code.
601
- # UNIMPLEMENTED`.
624
+ # Starts asynchronous cancellation on a long-running operation. The server makes
625
+ # a best effort to cancel the operation, but success is not guaranteed. If the
626
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
627
+ # Clients can use Operations.GetOperation or other methods to check whether the
628
+ # cancellation succeeded or whether the operation completed despite cancellation.
629
+ # On successful cancellation, the operation is not deleted; instead, it becomes
630
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
631
+ # corresponding to `Code.CANCELLED`.
602
632
  # @param [String] name
603
- # The name of the operation resource to be deleted.
633
+ # The name of the operation resource to be cancelled.
604
634
  # @param [String] fields
605
635
  # Selector specifying which fields to include in a partial response.
606
636
  # @param [String] quota_user
@@ -618,8 +648,8 @@ module Google
618
648
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
649
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
650
  # @raise [Google::Apis::AuthorizationError] Authorization is required
621
- def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
622
- command = make_simple_command(:delete, 'v1/{+name}', options)
651
+ def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
652
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
623
653
  command.response_representation = Google::Apis::DataprocV1::Empty::Representation
624
654
  command.response_class = Google::Apis::DataprocV1::Empty
625
655
  command.params['name'] = name unless name.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/datastore/
27
27
  module DatastoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20161013'
29
+ REVISION = '20161025'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/deployment-manager/
26
26
  module DeploymentmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160915'
28
+ REVISION = '20161013'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -690,9 +690,9 @@ module Google
690
690
  # @return [String]
691
691
  attr_accessor :target_id
692
692
 
693
- # [Output Only] The URL of the resource that the operation modifies. If creating
694
- # a persistent disk snapshot, this points to the persistent disk that the
695
- # snapshot was created from.
693
+ # [Output Only] The URL of the resource that the operation modifies. For
694
+ # operations related to creating a snapshot, this points to the persistent disk
695
+ # that the snapshot was created from.
696
696
  # Corresponds to the JSON property `targetLink`
697
697
  # @return [String]
698
698
  attr_accessor :target_link
@@ -285,6 +285,15 @@ module Google
285
285
  # of available results is larger than maxResults, Compute Engine returns a
286
286
  # nextPageToken that can be used to get the next page of results in subsequent
287
287
  # list requests.
288
+ # @param [String] order_by
289
+ # Sorts list results by a certain order. By default, results are returned in
290
+ # alphanumerical order based on the resource name.
291
+ # You can also sort results in descending order based on the creation timestamp
292
+ # using orderBy="creationTimestamp desc". This sorts results based on the
293
+ # creationTimestamp field in reverse chronological order (newest result first).
294
+ # Use this to sort resources like operations so that the newest operation is
295
+ # returned first.
296
+ # Currently, only sorting by name or creationTimestamp desc is supported.
288
297
  # @param [String] page_token
289
298
  # Specifies a page token to use. Set pageToken to the nextPageToken returned by
290
299
  # a previous list request to get the next page of results.
@@ -309,13 +318,14 @@ module Google
309
318
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
319
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
320
  # @raise [Google::Apis::AuthorizationError] Authorization is required
312
- def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
321
+ def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
313
322
  command = make_simple_command(:get, '{project}/global/deployments', options)
314
323
  command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation
315
324
  command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse
316
325
  command.params['project'] = project unless project.nil?
317
326
  command.query['filter'] = filter unless filter.nil?
318
327
  command.query['maxResults'] = max_results unless max_results.nil?
328
+ command.query['orderBy'] = order_by unless order_by.nil?
319
329
  command.query['pageToken'] = page_token unless page_token.nil?
320
330
  command.query['fields'] = fields unless fields.nil?
321
331
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -638,6 +648,15 @@ module Google
638
648
  # of available results is larger than maxResults, Compute Engine returns a
639
649
  # nextPageToken that can be used to get the next page of results in subsequent
640
650
  # list requests.
651
+ # @param [String] order_by
652
+ # Sorts list results by a certain order. By default, results are returned in
653
+ # alphanumerical order based on the resource name.
654
+ # You can also sort results in descending order based on the creation timestamp
655
+ # using orderBy="creationTimestamp desc". This sorts results based on the
656
+ # creationTimestamp field in reverse chronological order (newest result first).
657
+ # Use this to sort resources like operations so that the newest operation is
658
+ # returned first.
659
+ # Currently, only sorting by name or creationTimestamp desc is supported.
641
660
  # @param [String] page_token
642
661
  # Specifies a page token to use. Set pageToken to the nextPageToken returned by
643
662
  # a previous list request to get the next page of results.
@@ -662,7 +681,7 @@ module Google
662
681
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
663
682
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
664
683
  # @raise [Google::Apis::AuthorizationError] Authorization is required
665
- def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
684
+ def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
666
685
  command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options)
667
686
  command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation
668
687
  command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse
@@ -670,6 +689,7 @@ module Google
670
689
  command.params['deployment'] = deployment unless deployment.nil?
671
690
  command.query['filter'] = filter unless filter.nil?
672
691
  command.query['maxResults'] = max_results unless max_results.nil?
692
+ command.query['orderBy'] = order_by unless order_by.nil?
673
693
  command.query['pageToken'] = page_token unless page_token.nil?
674
694
  command.query['fields'] = fields unless fields.nil?
675
695
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -744,6 +764,15 @@ module Google
744
764
  # of available results is larger than maxResults, Compute Engine returns a
745
765
  # nextPageToken that can be used to get the next page of results in subsequent
746
766
  # list requests.
767
+ # @param [String] order_by
768
+ # Sorts list results by a certain order. By default, results are returned in
769
+ # alphanumerical order based on the resource name.
770
+ # You can also sort results in descending order based on the creation timestamp
771
+ # using orderBy="creationTimestamp desc". This sorts results based on the
772
+ # creationTimestamp field in reverse chronological order (newest result first).
773
+ # Use this to sort resources like operations so that the newest operation is
774
+ # returned first.
775
+ # Currently, only sorting by name or creationTimestamp desc is supported.
747
776
  # @param [String] page_token
748
777
  # Specifies a page token to use. Set pageToken to the nextPageToken returned by
749
778
  # a previous list request to get the next page of results.
@@ -768,13 +797,14 @@ module Google
768
797
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
798
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
799
  # @raise [Google::Apis::AuthorizationError] Authorization is required
771
- def list_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
800
+ def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
772
801
  command = make_simple_command(:get, '{project}/global/operations', options)
773
802
  command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation
774
803
  command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse
775
804
  command.params['project'] = project unless project.nil?
776
805
  command.query['filter'] = filter unless filter.nil?
777
806
  command.query['maxResults'] = max_results unless max_results.nil?
807
+ command.query['orderBy'] = order_by unless order_by.nil?
778
808
  command.query['pageToken'] = page_token unless page_token.nil?
779
809
  command.query['fields'] = fields unless fields.nil?
780
810
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -854,6 +884,15 @@ module Google
854
884
  # of available results is larger than maxResults, Compute Engine returns a
855
885
  # nextPageToken that can be used to get the next page of results in subsequent
856
886
  # list requests.
887
+ # @param [String] order_by
888
+ # Sorts list results by a certain order. By default, results are returned in
889
+ # alphanumerical order based on the resource name.
890
+ # You can also sort results in descending order based on the creation timestamp
891
+ # using orderBy="creationTimestamp desc". This sorts results based on the
892
+ # creationTimestamp field in reverse chronological order (newest result first).
893
+ # Use this to sort resources like operations so that the newest operation is
894
+ # returned first.
895
+ # Currently, only sorting by name or creationTimestamp desc is supported.
857
896
  # @param [String] page_token
858
897
  # Specifies a page token to use. Set pageToken to the nextPageToken returned by
859
898
  # a previous list request to get the next page of results.
@@ -878,7 +917,7 @@ module Google
878
917
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
918
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
919
  # @raise [Google::Apis::AuthorizationError] Authorization is required
881
- def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
920
+ def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
882
921
  command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options)
883
922
  command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation
884
923
  command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse
@@ -886,6 +925,7 @@ module Google
886
925
  command.params['deployment'] = deployment unless deployment.nil?
887
926
  command.query['filter'] = filter unless filter.nil?
888
927
  command.query['maxResults'] = max_results unless max_results.nil?
928
+ command.query['orderBy'] = order_by unless order_by.nil?
889
929
  command.query['pageToken'] = page_token unless page_token.nil?
890
930
  command.query['fields'] = fields unless fields.nil?
891
931
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -922,6 +962,15 @@ module Google
922
962
  # of available results is larger than maxResults, Compute Engine returns a
923
963
  # nextPageToken that can be used to get the next page of results in subsequent
924
964
  # list requests.
965
+ # @param [String] order_by
966
+ # Sorts list results by a certain order. By default, results are returned in
967
+ # alphanumerical order based on the resource name.
968
+ # You can also sort results in descending order based on the creation timestamp
969
+ # using orderBy="creationTimestamp desc". This sorts results based on the
970
+ # creationTimestamp field in reverse chronological order (newest result first).
971
+ # Use this to sort resources like operations so that the newest operation is
972
+ # returned first.
973
+ # Currently, only sorting by name or creationTimestamp desc is supported.
925
974
  # @param [String] page_token
926
975
  # Specifies a page token to use. Set pageToken to the nextPageToken returned by
927
976
  # a previous list request to get the next page of results.
@@ -946,13 +995,14 @@ module Google
946
995
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
947
996
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
948
997
  # @raise [Google::Apis::AuthorizationError] Authorization is required
949
- def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
998
+ def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
950
999
  command = make_simple_command(:get, '{project}/global/types', options)
951
1000
  command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation
952
1001
  command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse
953
1002
  command.params['project'] = project unless project.nil?
954
1003
  command.query['filter'] = filter unless filter.nil?
955
1004
  command.query['maxResults'] = max_results unless max_results.nil?
1005
+ command.query['orderBy'] = order_by unless order_by.nil?
956
1006
  command.query['pageToken'] = page_token unless page_token.nil?
957
1007
  command.query['fields'] = fields unless fields.nil?
958
1008
  command.query['quotaUser'] = quota_user unless quota_user.nil?