google-api-client 0.9.15 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20160912'
30
+ REVISION = '20161013'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -269,7 +269,8 @@ module Google
269
269
 
270
270
  # A collection of data points that describes the time-varying values of a metric.
271
271
  # A time series is identified by a combination of a fully-specified monitored
272
- # resource and a fully-specified metric.
272
+ # resource and a fully-specified metric. This type is used for both listing and
273
+ # creating time series.
273
274
  class TimeSeries
274
275
  include Google::Apis::Core::Hashable
275
276
 
@@ -279,17 +280,21 @@ module Google
279
280
  # @return [Google::Apis::MonitoringV3::Metric]
280
281
  attr_accessor :metric
281
282
 
282
- # The data points of this time series. The order of the points is specified when
283
- # you retrieve the time series.
283
+ # The data points of this time series. When listing time series, the order of
284
+ # the points is specified by the list method.When creating a time series, this
285
+ # field must contain exactly one point and the point's type must be the same as
286
+ # the value type of the associated metric. If the associated metric's descriptor
287
+ # must be auto-created, then the value type of the descriptor is determined by
288
+ # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
284
289
  # Corresponds to the JSON property `points`
285
290
  # @return [Array<Google::Apis::MonitoringV3::Point>]
286
291
  attr_accessor :points
287
292
 
288
- # The value type of the time series. This can be different than the value type
289
- # of the metric object if this time series is an alignment or reduction of other
290
- # time series. When writing data to a time series, this field is optional, and,
291
- # when specified, must match the value type of the metric descriptor. If a
292
- # metric descriptor is auto-created, its value type will match this field.
293
+ # The value type of the time series. When listing time series, this value type
294
+ # might be different from the value type of the associated metric if this time
295
+ # series is an alignment or reduction of other time series.When creating a time
296
+ # series, this field is optional. If present, it must be the same as the type of
297
+ # the data in the points field.
293
298
  # Corresponds to the JSON property `valueType`
294
299
  # @return [String]
295
300
  attr_accessor :value_type
@@ -310,11 +315,13 @@ module Google
310
315
  # @return [Google::Apis::MonitoringV3::MonitoredResource]
311
316
  attr_accessor :resource
312
317
 
313
- # The metric kind of the time series. This can be different than the metric kind
314
- # of the metric object if this time series is an alignment or reduction of other
315
- # time series. When writing data to a time series, this field is optional, and,
316
- # when specified, must match the metric kind of the metric descriptor. If a
317
- # metric descriptor is auto-created, its metric kind will match this field.
318
+ # The metric kind of the time series. When listing time series, this metric kind
319
+ # might be different from the metric kind of the associated metric if this time
320
+ # series is an alignment or reduction of other time series.When creating a time
321
+ # series, this field is optional. If present, it must be the same as the metric
322
+ # kind of the associated metric. If the associated metric's descriptor must be
323
+ # auto-created, then this field specifies the metric kind of the new descriptor
324
+ # and must be either GAUGE (the default) or CUMULATIVE.
318
325
  # Corresponds to the JSON property `metricKind`
319
326
  # @return [String]
320
327
  attr_accessor :metric_kind
@@ -49,7 +49,7 @@ module Google
49
49
  end
50
50
 
51
51
  # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
52
- # caution">This method is only for use by the Google Monitoring Agent. Use
52
+ # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
53
53
  # projects.timeSeries.create instead.</aside>
54
54
  # @param [String] name
55
55
  # The project in which to create the time series. The format is &quot;projects/
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20160912'
28
+ REVISION = '20160915'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160917'
28
+ REVISION = '20161012'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160917'
28
+ REVISION = '20161012'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160317'
28
+ REVISION = '20161003'
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'
@@ -141,8 +141,8 @@ module Google
141
141
  include Google::Apis::Core::Hashable
142
142
 
143
143
  # The set of permissions to check for the `resource`. Permissions with wildcards
144
- # (such as '*' or 'storage.*') are not allowed. For more information see IAM
145
- # Overview.
144
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
145
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
146
146
  # Corresponds to the JSON property `permissions`
147
147
  # @return [Array<String>]
148
148
  attr_accessor :permissions
@@ -223,8 +223,8 @@ module Google
223
223
  class Message
224
224
  include Google::Apis::Core::Hashable
225
225
 
226
- # The message payload. For JSON requests, the value of this field must be base64-
227
- # encoded.
226
+ # The message payload. For JSON requests, the value of this field must be [
227
+ # base64-encoded](https://tools.ietf.org/html/rfc4648).
228
228
  # Corresponds to the JSON property `data`
229
229
  # @return [String]
230
230
  attr_accessor :data
@@ -383,11 +383,12 @@ module Google
383
383
  # an outstanding message and will not be delivered again during that time (on a
384
384
  # best-effort basis). For pull subscriptions, this value is used as the initial
385
385
  # value for the ack deadline. To override this value for a given message, call `
386
- # ModifyAckDeadline` with the corresponding `ack_id` if using pull. For push
387
- # delivery, this value is also used to set the request timeout for the call to
388
- # the push endpoint. If the subscriber never acknowledges the message, the Pub/
389
- # Sub system will eventually redeliver the message. If this parameter is not set,
390
- # the default value of 10 seconds is used.
386
+ # ModifyAckDeadline` with the corresponding `ack_id` if using pull. The maximum
387
+ # custom deadline you can specify is 600 seconds (10 minutes). For push delivery,
388
+ # this value is also used to set the request timeout for the call to the push
389
+ # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
390
+ # will eventually redeliver the message. If this parameter is 0, a default value
391
+ # of 10 seconds is used.
391
392
  # Corresponds to the JSON property `ackDeadlineSeconds`
392
393
  # @return [Fixnum]
393
394
  attr_accessor :ack_deadline_seconds
@@ -50,9 +50,8 @@ module Google
50
50
  # existing policy.
51
51
  # @param [String] resource
52
52
  # REQUIRED: The resource for which the policy is being specified. `resource` is
53
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
54
- # disk*`. The format for the path specified in this value is resource specific
55
- # and is specified in the `setIamPolicy` documentation.
53
+ # usually specified as a path. For example, a Project resource is specified as `
54
+ # projects/`project``.
56
55
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
57
56
  # @param [String] fields
58
57
  # Selector specifying which fields to include in a partial response.
@@ -83,13 +82,12 @@ module Google
83
82
  execute_or_queue_command(command, &block)
84
83
  end
85
84
 
86
- # Gets the access control policy for a `resource`. Returns an empty policy if
87
- # the resource exists and does not have a policy set.
85
+ # Gets the access control policy for a resource. Returns an empty policy if the
86
+ # resource exists and does not have a policy set.
88
87
  # @param [String] resource
89
88
  # REQUIRED: The resource for which the policy is being requested. `resource` is
90
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
91
- # disk*`. The format for the path specified in this value is resource specific
92
- # and is specified in the `getIamPolicy` documentation.
89
+ # usually specified as a path. For example, a Project resource is specified as `
90
+ # projects/`project``.
93
91
  # @param [String] fields
94
92
  # Selector specifying which fields to include in a partial response.
95
93
  # @param [String] quota_user
@@ -120,9 +118,8 @@ module Google
120
118
  # Returns permissions that a caller has on the specified resource.
121
119
  # @param [String] resource
122
120
  # REQUIRED: The resource for which the policy detail is being requested. `
123
- # resource` is usually specified as a path, such as `projects/*project*/zones/*
124
- # zone*/disks/*disk*`. The format for the path specified in this value is
125
- # resource specific and is specified in the `testIamPermissions` documentation.
121
+ # resource` is usually specified as a path. For example, a Project resource is
122
+ # specified as `projects/`project``.
126
123
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
127
124
  # @param [String] fields
128
125
  # Selector specifying which fields to include in a partial response.
@@ -369,9 +366,8 @@ module Google
369
366
  # existing policy.
370
367
  # @param [String] resource
371
368
  # REQUIRED: The resource for which the policy is being specified. `resource` is
372
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
373
- # disk*`. The format for the path specified in this value is resource specific
374
- # and is specified in the `setIamPolicy` documentation.
369
+ # usually specified as a path. For example, a Project resource is specified as `
370
+ # projects/`project``.
375
371
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
376
372
  # @param [String] fields
377
373
  # Selector specifying which fields to include in a partial response.
@@ -402,13 +398,12 @@ module Google
402
398
  execute_or_queue_command(command, &block)
403
399
  end
404
400
 
405
- # Gets the access control policy for a `resource`. Returns an empty policy if
406
- # the resource exists and does not have a policy set.
401
+ # Gets the access control policy for a resource. Returns an empty policy if the
402
+ # resource exists and does not have a policy set.
407
403
  # @param [String] resource
408
404
  # REQUIRED: The resource for which the policy is being requested. `resource` is
409
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
410
- # disk*`. The format for the path specified in this value is resource specific
411
- # and is specified in the `getIamPolicy` documentation.
405
+ # usually specified as a path. For example, a Project resource is specified as `
406
+ # projects/`project``.
412
407
  # @param [String] fields
413
408
  # Selector specifying which fields to include in a partial response.
414
409
  # @param [String] quota_user
@@ -439,9 +434,8 @@ module Google
439
434
  # Returns permissions that a caller has on the specified resource.
440
435
  # @param [String] resource
441
436
  # REQUIRED: The resource for which the policy detail is being requested. `
442
- # resource` is usually specified as a path, such as `projects/*project*/zones/*
443
- # zone*/disks/*disk*`. The format for the path specified in this value is
444
- # resource specific and is specified in the `testIamPermissions` documentation.
437
+ # resource` is usually specified as a path. For example, a Project resource is
438
+ # specified as `projects/`project``.
445
439
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
446
440
  # @param [String] fields
447
441
  # Selector specifying which fields to include in a partial response.
@@ -475,7 +469,8 @@ module Google
475
469
  # Creates a subscription to a given topic. If the subscription already exists,
476
470
  # returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `
477
471
  # NOT_FOUND`. If the name is not provided in the request, the server will assign
478
- # a random name for this subscription on the same project as the topic.
472
+ # a random name for this subscription on the same project as the topic. Note
473
+ # that for REST API requests, you must specify a name.
479
474
  # @param [String] name
480
475
  # The name of the subscription. It must have the format `"projects/`project`/
481
476
  # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
@@ -581,10 +576,10 @@ module Google
581
576
  execute_or_queue_command(command, &block)
582
577
  end
583
578
 
584
- # Deletes an existing subscription. All pending messages in the subscription are
585
- # immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`.
586
- # After a subscription is deleted, a new one may be created with the same name,
587
- # but the new one has no association with the old subscription, or its topic
579
+ # Deletes an existing subscription. All messages retained in the subscription
580
+ # are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`
581
+ # . After a subscription is deleted, a new one may be created with the same name,
582
+ # but the new one has no association with the old subscription or its topic
588
583
  # unless the same topic is specified.
589
584
  # @param [String] subscription
590
585
  # The subscription to delete.
@@ -618,6 +613,8 @@ module Google
618
613
  # Modifies the ack deadline for a specific message. This method is useful to
619
614
  # indicate that more time is needed to process a message by the subscriber, or
620
615
  # to make the message available for redelivery if the processing was interrupted.
616
+ # Note that this does not modify the subscription-level `ackDeadlineSeconds`
617
+ # used for subsequent messages.
621
618
  # @param [String] subscription
622
619
  # The name of the subscription.
623
620
  # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
@@ -758,6 +755,110 @@ module Google
758
755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
759
756
  execute_or_queue_command(command, &block)
760
757
  end
758
+
759
+ # Sets the access control policy on the specified resource. Replaces any
760
+ # existing policy.
761
+ # @param [String] resource
762
+ # REQUIRED: The resource for which the policy is being specified. `resource` is
763
+ # usually specified as a path. For example, a Project resource is specified as `
764
+ # projects/`project``.
765
+ # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
766
+ # @param [String] fields
767
+ # Selector specifying which fields to include in a partial response.
768
+ # @param [String] quota_user
769
+ # Available to use for quota purposes for server-side applications. Can be any
770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
771
+ # @param [Google::Apis::RequestOptions] options
772
+ # Request-specific options
773
+ #
774
+ # @yield [result, err] Result & error if block supplied
775
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
776
+ # @yieldparam err [StandardError] error object if request failed
777
+ #
778
+ # @return [Google::Apis::PubsubV1::Policy]
779
+ #
780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
783
+ def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
784
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
785
+ command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
786
+ command.request_object = set_iam_policy_request_object
787
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
788
+ command.response_class = Google::Apis::PubsubV1::Policy
789
+ command.params['resource'] = resource unless resource.nil?
790
+ command.query['fields'] = fields unless fields.nil?
791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
792
+ execute_or_queue_command(command, &block)
793
+ end
794
+
795
+ # Gets the access control policy for a resource. Returns an empty policy if the
796
+ # resource exists and does not have a policy set.
797
+ # @param [String] resource
798
+ # REQUIRED: The resource for which the policy is being requested. `resource` is
799
+ # usually specified as a path. For example, a Project resource is specified as `
800
+ # projects/`project``.
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::PubsubV1::Policy]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
820
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
821
+ command.response_class = Google::Apis::PubsubV1::Policy
822
+ command.params['resource'] = resource unless resource.nil?
823
+ command.query['fields'] = fields unless fields.nil?
824
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
825
+ execute_or_queue_command(command, &block)
826
+ end
827
+
828
+ # Returns permissions that a caller has on the specified resource.
829
+ # @param [String] resource
830
+ # REQUIRED: The resource for which the policy detail is being requested. `
831
+ # resource` is usually specified as a path. For example, a Project resource is
832
+ # specified as `projects/`project``.
833
+ # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
834
+ # @param [String] fields
835
+ # Selector specifying which fields to include in a partial response.
836
+ # @param [String] quota_user
837
+ # Available to use for quota purposes for server-side applications. Can be any
838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
839
+ # @param [Google::Apis::RequestOptions] options
840
+ # Request-specific options
841
+ #
842
+ # @yield [result, err] Result & error if block supplied
843
+ # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
844
+ # @yieldparam err [StandardError] error object if request failed
845
+ #
846
+ # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
847
+ #
848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
851
+ def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
852
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
853
+ command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
854
+ command.request_object = test_iam_permissions_request_object
855
+ command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
856
+ command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
857
+ command.params['resource'] = resource unless resource.nil?
858
+ command.query['fields'] = fields unless fields.nil?
859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
860
+ execute_or_queue_command(command, &block)
861
+ end
761
862
 
762
863
  protected
763
864
 
@@ -20,12 +20,14 @@ module Google
20
20
  module Apis
21
21
  # Google Compute Engine Instance Group Updater API
22
22
  #
23
- # Updates groups of Compute Engine instances.
23
+ # [Deprecated. Please use compute.instanceGroupManagers.update method.
24
+ # replicapoolupdater API will be disabled after December 30th, 2016] Updates
25
+ # groups of Compute Engine instances.
24
26
  #
25
27
  # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
26
28
  module ReplicapoolupdaterV1beta1
27
29
  VERSION = 'V1beta1'
28
- REVISION = '20160229'
30
+ REVISION = '20161003'
29
31
 
30
32
  # View and manage your data across Google Cloud Platform services
31
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,7 +22,9 @@ module Google
22
22
  module ReplicapoolupdaterV1beta1
23
23
  # Google Compute Engine Instance Group Updater API
24
24
  #
25
- # Updates groups of Compute Engine instances.
25
+ # [Deprecated. Please use compute.instanceGroupManagers.update method.
26
+ # replicapoolupdater API will be disabled after December 30th, 2016] Updates
27
+ # groups of Compute Engine instances.
26
28
  #
27
29
  # @example
28
30
  # require 'google/apis/replicapoolupdater_v1beta1'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160916'
28
+ REVISION = '20161006'
29
29
 
30
30
  # View the files in your Google Drive
31
31
  AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
@@ -3240,6 +3240,8 @@ module Google
3240
3240
 
3241
3241
  # Pattern string used for formatting. If not set, a default pattern based on
3242
3242
  # the user's locale will be used if necessary for the given type.
3243
+ # See the [Date and Number Formats guide](/sheets/guides/formats) for more
3244
+ # information about the supported patterns.
3243
3245
  # Corresponds to the JSON property `pattern`
3244
3246
  # @return [String]
3245
3247
  attr_accessor :pattern
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20160912'
28
+ REVISION = '20161010'
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'
@@ -286,8 +286,7 @@ module Google
286
286
  # [Optional] The language of the supplied audio as a BCP-47 language tag.
287
287
  # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
288
288
  # If omitted, defaults to "en-US". See
289
- # [Language Support](https://cloud.google.com/speech/docs/best-practices#
290
- # language_support)
289
+ # [Language Support](https://cloud.google.com/speech/docs/languages)
291
290
  # for a list of the currently supported language codes.
292
291
  # Corresponds to the JSON property `languageCode`
293
292
  # @return [String]
@@ -322,14 +321,6 @@ module Google
322
321
  # @return [Fixnum]
323
322
  attr_accessor :sample_rate
324
323
 
325
- # [Optional] The number of interleaved channels in the input audio data.
326
- # Valid values for LINEAR16 and FLAC are `1`-`8`.
327
- # Valid values for MULAW, AMR and AMR_WB are only `1`.
328
- # If `0` or omitted, defaults to one channel (mono).
329
- # Corresponds to the JSON property `audioChannels`
330
- # @return [Fixnum]
331
- attr_accessor :audio_channels
332
-
333
324
  def initialize(**args)
334
325
  update!(**args)
335
326
  end
@@ -342,7 +333,6 @@ module Google
342
333
  @encoding = args[:encoding] if args.key?(:encoding)
343
334
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
344
335
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
345
- @audio_channels = args[:audio_channels] if args.key?(:audio_channels)
346
336
  end
347
337
  end
348
338
 
@@ -421,44 +411,44 @@ module Google
421
411
  end
422
412
  end
423
413
 
424
- # `SyncRecognizeResponse` is the only message returned to the client by
425
- # `SyncRecognize`. It contains the result as zero or more sequential
426
- # `SpeechRecognitionResult` messages.
427
- class SyncRecognizeResponse
414
+ # A generic empty message that you can re-use to avoid defining duplicated
415
+ # empty messages in your APIs. A typical example is to use it as the request
416
+ # or the response type of an API method. For instance:
417
+ # service Foo `
418
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
419
+ # `
420
+ # The JSON representation for `Empty` is empty JSON object ````.
421
+ class Empty
428
422
  include Google::Apis::Core::Hashable
429
423
 
430
- # [Output-only] Sequential list of transcription results corresponding to
431
- # sequential portions of audio.
432
- # Corresponds to the JSON property `results`
433
- # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
434
- attr_accessor :results
435
-
436
424
  def initialize(**args)
437
425
  update!(**args)
438
426
  end
439
427
 
440
428
  # Update properties of this object
441
429
  def update!(**args)
442
- @results = args[:results] if args.key?(:results)
443
430
  end
444
431
  end
445
432
 
446
- # A generic empty message that you can re-use to avoid defining duplicated
447
- # empty messages in your APIs. A typical example is to use it as the request
448
- # or the response type of an API method. For instance:
449
- # service Foo `
450
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
451
- # `
452
- # The JSON representation for `Empty` is empty JSON object ````.
453
- class Empty
433
+ # `SyncRecognizeResponse` is the only message returned to the client by
434
+ # `SyncRecognize`. It contains the result as zero or more sequential
435
+ # `SpeechRecognitionResult` messages.
436
+ class SyncRecognizeResponse
454
437
  include Google::Apis::Core::Hashable
455
438
 
439
+ # [Output-only] Sequential list of transcription results corresponding to
440
+ # sequential portions of audio.
441
+ # Corresponds to the JSON property `results`
442
+ # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
443
+ attr_accessor :results
444
+
456
445
  def initialize(**args)
457
446
  update!(**args)
458
447
  end
459
448
 
460
449
  # Update properties of this object
461
450
  def update!(**args)
451
+ @results = args[:results] if args.key?(:results)
462
452
  end
463
453
  end
464
454