google-api-client 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +77 -2
  5. data/generated/google/apis/androidenterprise_v1/representations.rb +31 -0
  6. data/generated/google/apis/androidenterprise_v1/service.rb +100 -0
  7. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  8. data/generated/google/apis/androidmanagement_v1/classes.rb +300 -0
  9. data/generated/google/apis/androidmanagement_v1/representations.rb +76 -0
  10. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  11. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +5 -2
  12. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -8
  13. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  14. data/generated/google/apis/cloudkms_v1.rb +1 -1
  15. data/generated/google/apis/cloudkms_v1/classes.rb +1 -1
  16. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  17. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +20 -10
  18. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
  19. data/generated/google/apis/cloudtasks_v2beta2/service.rb +11 -6
  20. data/generated/google/apis/compute_alpha.rb +1 -1
  21. data/generated/google/apis/compute_alpha/classes.rb +782 -111
  22. data/generated/google/apis/compute_alpha/representations.rb +282 -2
  23. data/generated/google/apis/compute_alpha/service.rb +611 -6
  24. data/generated/google/apis/compute_beta.rb +1 -1
  25. data/generated/google/apis/compute_beta/classes.rb +342 -43
  26. data/generated/google/apis/compute_beta/representations.rb +109 -0
  27. data/generated/google/apis/compute_beta/service.rb +225 -6
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/compute_v1/classes.rb +48 -43
  30. data/generated/google/apis/compute_v1/service.rb +6 -6
  31. data/generated/google/apis/container_v1beta1/classes.rb +17 -0
  32. data/generated/google/apis/container_v1beta1/representations.rb +1 -0
  33. data/generated/google/apis/content_v2.rb +1 -1
  34. data/generated/google/apis/content_v2/classes.rb +131 -9
  35. data/generated/google/apis/content_v2/representations.rb +38 -0
  36. data/generated/google/apis/content_v2/service.rb +35 -23
  37. data/generated/google/apis/content_v2sandbox.rb +1 -1
  38. data/generated/google/apis/content_v2sandbox/classes.rb +99 -9
  39. data/generated/google/apis/content_v2sandbox/representations.rb +22 -0
  40. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  41. data/generated/google/apis/dialogflow_v2beta1/service.rb +11 -11
  42. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  43. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  44. data/generated/google/apis/fusiontables_v2.rb +1 -1
  45. data/generated/google/apis/fusiontables_v2/service.rb +37 -0
  46. data/generated/google/apis/ml_v1.rb +1 -1
  47. data/generated/google/apis/ml_v1/classes.rb +26 -177
  48. data/generated/google/apis/ml_v1/representations.rb +3 -0
  49. data/generated/google/apis/ml_v1/service.rb +3 -1
  50. data/generated/google/apis/monitoring_v3.rb +1 -1
  51. data/generated/google/apis/monitoring_v3/classes.rb +10 -1
  52. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  53. data/generated/google/apis/poly_v1.rb +32 -0
  54. data/generated/google/apis/poly_v1/classes.rb +426 -0
  55. data/generated/google/apis/poly_v1/representations.rb +194 -0
  56. data/generated/google/apis/poly_v1/service.rb +273 -0
  57. data/generated/google/apis/pubsub_v1.rb +1 -1
  58. data/generated/google/apis/pubsub_v1/classes.rb +243 -0
  59. data/generated/google/apis/pubsub_v1/representations.rb +115 -0
  60. data/generated/google/apis/pubsub_v1/service.rb +269 -1
  61. data/generated/google/apis/speech_v1.rb +4 -1
  62. data/generated/google/apis/speech_v1beta1.rb +4 -1
  63. data/generated/google/apis/testing_v1.rb +1 -1
  64. data/generated/google/apis/testing_v1/classes.rb +1 -1
  65. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  66. data/generated/google/apis/youtube_v3.rb +1 -1
  67. data/generated/google/apis/youtube_v3/classes.rb +13 -0
  68. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  69. data/lib/google/apis/core/base_service.rb +4 -1
  70. data/lib/google/apis/options.rb +5 -1
  71. data/lib/google/apis/version.rb +1 -1
  72. metadata +6 -2
@@ -47,6 +47,89 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Creates a snapshot from the requested subscription.
51
+ # If the snapshot already exists, returns `ALREADY_EXISTS`.
52
+ # If the requested subscription doesn't exist, returns `NOT_FOUND`.
53
+ # If the backlog in the subscription is too old -- and the resulting snapshot
54
+ # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
55
+ # See also the `Snapshot.expire_time` field.
56
+ # If the name is not provided in the request, the server will assign a random
57
+ # name for this snapshot on the same project as the subscription, conforming
58
+ # to the
59
+ # [resource name
60
+ # format](https://cloud.google.com/pubsub/docs/overview#names). The generated
61
+ # name is populated in the returned Snapshot object. Note that for REST API
62
+ # requests, you must specify a name in the request.
63
+ # @param [String] name
64
+ # Optional user-provided name for this snapshot.
65
+ # If the name is not provided in the request, the server will assign a random
66
+ # name for this snapshot on the same project as the subscription.
67
+ # Note that for REST API requests, you must specify a name.
68
+ # Format is `projects/`project`/snapshots/`snap``.
69
+ # @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object
70
+ # @param [String] fields
71
+ # Selector specifying which fields to include in a partial response.
72
+ # @param [String] quota_user
73
+ # Available to use for quota purposes for server-side applications. Can be any
74
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
75
+ # @param [Google::Apis::RequestOptions] options
76
+ # Request-specific options
77
+ #
78
+ # @yield [result, err] Result & error if block supplied
79
+ # @yieldparam result [Google::Apis::PubsubV1::Snapshot] parsed result object
80
+ # @yieldparam err [StandardError] error object if request failed
81
+ #
82
+ # @return [Google::Apis::PubsubV1::Snapshot]
83
+ #
84
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
87
+ def create_snapshot(name, create_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
88
+ command = make_simple_command(:put, 'v1/{+name}', options)
89
+ command.request_representation = Google::Apis::PubsubV1::CreateSnapshotRequest::Representation
90
+ command.request_object = create_snapshot_request_object
91
+ command.response_representation = Google::Apis::PubsubV1::Snapshot::Representation
92
+ command.response_class = Google::Apis::PubsubV1::Snapshot
93
+ command.params['name'] = name unless name.nil?
94
+ command.query['fields'] = fields unless fields.nil?
95
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
96
+ execute_or_queue_command(command, &block)
97
+ end
98
+
99
+ # Removes an existing snapshot. All messages retained in the snapshot
100
+ # are immediately dropped. After a snapshot is deleted, a new one may be
101
+ # created with the same name, but the new one has no association with the old
102
+ # snapshot or its subscription, unless the same subscription is specified.
103
+ # @param [String] snapshot
104
+ # The name of the snapshot to delete.
105
+ # Format is `projects/`project`/snapshots/`snap``.
106
+ # @param [String] fields
107
+ # Selector specifying which fields to include in a partial response.
108
+ # @param [String] quota_user
109
+ # Available to use for quota purposes for server-side applications. Can be any
110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
111
+ # @param [Google::Apis::RequestOptions] options
112
+ # Request-specific options
113
+ #
114
+ # @yield [result, err] Result & error if block supplied
115
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
116
+ # @yieldparam err [StandardError] error object if request failed
117
+ #
118
+ # @return [Google::Apis::PubsubV1::Empty]
119
+ #
120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
123
+ def delete_project_snapshot(snapshot, fields: nil, quota_user: nil, options: nil, &block)
124
+ command = make_simple_command(:delete, 'v1/{+snapshot}', options)
125
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
126
+ command.response_class = Google::Apis::PubsubV1::Empty
127
+ command.params['snapshot'] = snapshot unless snapshot.nil?
128
+ command.query['fields'] = fields unless fields.nil?
129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
130
+ execute_or_queue_command(command, &block)
131
+ end
132
+
50
133
  # Gets the access control policy for a resource.
51
134
  # Returns an empty policy if the resource exists and does not have a policy
52
135
  # set.
@@ -80,6 +163,79 @@ module Google
80
163
  execute_or_queue_command(command, &block)
81
164
  end
82
165
 
166
+ # Lists the existing snapshots.
167
+ # @param [String] project
168
+ # The name of the cloud project that snapshots belong to.
169
+ # Format is `projects/`project``.
170
+ # @param [Fixnum] page_size
171
+ # Maximum number of snapshots to return.
172
+ # @param [String] page_token
173
+ # The value returned by the last `ListSnapshotsResponse`; indicates that this
174
+ # is a continuation of a prior `ListSnapshots` call, and that the system
175
+ # should return the next page of data.
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
178
+ # @param [String] quota_user
179
+ # Available to use for quota purposes for server-side applications. Can be any
180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
181
+ # @param [Google::Apis::RequestOptions] options
182
+ # Request-specific options
183
+ #
184
+ # @yield [result, err] Result & error if block supplied
185
+ # @yieldparam result [Google::Apis::PubsubV1::ListSnapshotsResponse] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::PubsubV1::ListSnapshotsResponse]
189
+ #
190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
193
+ def list_project_snapshots(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
194
+ command = make_simple_command(:get, 'v1/{+project}/snapshots', options)
195
+ command.response_representation = Google::Apis::PubsubV1::ListSnapshotsResponse::Representation
196
+ command.response_class = Google::Apis::PubsubV1::ListSnapshotsResponse
197
+ command.params['project'] = project unless project.nil?
198
+ command.query['pageSize'] = page_size unless page_size.nil?
199
+ command.query['pageToken'] = page_token unless page_token.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Updates an existing snapshot. Note that certain properties of a
206
+ # snapshot are not modifiable.
207
+ # @param [String] name
208
+ # The name of the snapshot.
209
+ # @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::PubsubV1::Snapshot] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::PubsubV1::Snapshot]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def patch_project_snapshot(name, update_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
228
+ command = make_simple_command(:patch, 'v1/{+name}', options)
229
+ command.request_representation = Google::Apis::PubsubV1::UpdateSnapshotRequest::Representation
230
+ command.request_object = update_snapshot_request_object
231
+ command.response_representation = Google::Apis::PubsubV1::Snapshot::Representation
232
+ command.response_class = Google::Apis::PubsubV1::Snapshot
233
+ command.params['name'] = name unless name.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
83
239
  # Sets the access control policy on the specified resource. Replaces any
84
240
  # existing policy.
85
241
  # @param [String] resource
@@ -453,6 +609,45 @@ module Google
453
609
  execute_or_queue_command(command, &block)
454
610
  end
455
611
 
612
+ # Updates an existing subscription. Note that certain properties of a
613
+ # subscription, such as its topic, are not modifiable.
614
+ # @param [String] name
615
+ # The name of the subscription. It must have the format
616
+ # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
617
+ # start with a letter, and contain only letters (`[A-Za-z]`), numbers
618
+ # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
619
+ # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
620
+ # in length, and it must not start with `"goog"`.
621
+ # @param [Google::Apis::PubsubV1::UpdateSubscriptionRequest] update_subscription_request_object
622
+ # @param [String] fields
623
+ # Selector specifying which fields to include in a partial response.
624
+ # @param [String] quota_user
625
+ # Available to use for quota purposes for server-side applications. Can be any
626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
627
+ # @param [Google::Apis::RequestOptions] options
628
+ # Request-specific options
629
+ #
630
+ # @yield [result, err] Result & error if block supplied
631
+ # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
632
+ # @yieldparam err [StandardError] error object if request failed
633
+ #
634
+ # @return [Google::Apis::PubsubV1::Subscription]
635
+ #
636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
639
+ def patch_project_subscription(name, update_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
640
+ command = make_simple_command(:patch, 'v1/{+name}', options)
641
+ command.request_representation = Google::Apis::PubsubV1::UpdateSubscriptionRequest::Representation
642
+ command.request_object = update_subscription_request_object
643
+ command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
644
+ command.response_class = Google::Apis::PubsubV1::Subscription
645
+ command.params['name'] = name unless name.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
+
456
651
  # Pulls messages from the server. Returns an empty list if there are no
457
652
  # messages available in the backlog. The server may return `UNAVAILABLE` if
458
653
  # there are too many concurrent pull requests pending for the given
@@ -490,6 +685,40 @@ module Google
490
685
  execute_or_queue_command(command, &block)
491
686
  end
492
687
 
688
+ # Seeks an existing subscription to a point in time or to a given snapshot,
689
+ # whichever is provided in the request.
690
+ # @param [String] subscription
691
+ # The subscription to affect.
692
+ # @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
693
+ # @param [String] fields
694
+ # Selector specifying which fields to include in a partial response.
695
+ # @param [String] quota_user
696
+ # Available to use for quota purposes for server-side applications. Can be any
697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
698
+ # @param [Google::Apis::RequestOptions] options
699
+ # Request-specific options
700
+ #
701
+ # @yield [result, err] Result & error if block supplied
702
+ # @yieldparam result [Google::Apis::PubsubV1::SeekResponse] parsed result object
703
+ # @yieldparam err [StandardError] error object if request failed
704
+ #
705
+ # @return [Google::Apis::PubsubV1::SeekResponse]
706
+ #
707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
710
+ def seek_subscription(subscription, seek_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
711
+ command = make_simple_command(:post, 'v1/{+subscription}:seek', options)
712
+ command.request_representation = Google::Apis::PubsubV1::SeekRequest::Representation
713
+ command.request_object = seek_request_object
714
+ command.response_representation = Google::Apis::PubsubV1::SeekResponse::Representation
715
+ command.response_class = Google::Apis::PubsubV1::SeekResponse
716
+ command.params['subscription'] = subscription unless subscription.nil?
717
+ command.query['fields'] = fields unless fields.nil?
718
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
719
+ execute_or_queue_command(command, &block)
720
+ end
721
+
493
722
  # Sets the access control policy on the specified resource. Replaces any
494
723
  # existing policy.
495
724
  # @param [String] resource
@@ -850,7 +1079,46 @@ module Google
850
1079
  execute_or_queue_command(command, &block)
851
1080
  end
852
1081
 
853
- # Lists the name of the subscriptions for this topic.
1082
+ # Lists the names of the snapshots on this topic.
1083
+ # @param [String] topic
1084
+ # The name of the topic that snapshots are attached to.
1085
+ # Format is `projects/`project`/topics/`topic``.
1086
+ # @param [Fixnum] page_size
1087
+ # Maximum number of snapshot names to return.
1088
+ # @param [String] page_token
1089
+ # The value returned by the last `ListTopicSnapshotsResponse`; indicates
1090
+ # that this is a continuation of a prior `ListTopicSnapshots` call, and
1091
+ # that the system should return the next page of data.
1092
+ # @param [String] fields
1093
+ # Selector specifying which fields to include in a partial response.
1094
+ # @param [String] quota_user
1095
+ # Available to use for quota purposes for server-side applications. Can be any
1096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1097
+ # @param [Google::Apis::RequestOptions] options
1098
+ # Request-specific options
1099
+ #
1100
+ # @yield [result, err] Result & error if block supplied
1101
+ # @yieldparam result [Google::Apis::PubsubV1::ListTopicSnapshotsResponse] parsed result object
1102
+ # @yieldparam err [StandardError] error object if request failed
1103
+ #
1104
+ # @return [Google::Apis::PubsubV1::ListTopicSnapshotsResponse]
1105
+ #
1106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1109
+ def list_project_topic_snapshots(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1110
+ command = make_simple_command(:get, 'v1/{+topic}/snapshots', options)
1111
+ command.response_representation = Google::Apis::PubsubV1::ListTopicSnapshotsResponse::Representation
1112
+ command.response_class = Google::Apis::PubsubV1::ListTopicSnapshotsResponse
1113
+ command.params['topic'] = topic unless topic.nil?
1114
+ command.query['pageSize'] = page_size unless page_size.nil?
1115
+ command.query['pageToken'] = page_token unless page_token.nil?
1116
+ command.query['fields'] = fields unless fields.nil?
1117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1118
+ execute_or_queue_command(command, &block)
1119
+ end
1120
+
1121
+ # Lists the names of the subscriptions on this topic.
854
1122
  # @param [String] topic
855
1123
  # The name of the topic that subscriptions are attached to.
856
1124
  # Format is `projects/`project`/topics/`topic``.
@@ -25,10 +25,13 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171018'
28
+ REVISION = '20171129'
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'
32
+
33
+ # Convert speech to text using Google speech recognition technology
34
+ AUTH_CLOUD_SPEECH = 'https://www.googleapis.com/auth/cloud-speech'
32
35
  end
33
36
  end
34
37
  end
@@ -25,10 +25,13 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170829'
28
+ REVISION = '20171129'
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'
32
+
33
+ # Convert speech to text using Google speech recognition technology
34
+ AUTH_CLOUD_SPEECH = 'https://www.googleapis.com/auth/cloud-speech'
32
35
  end
33
36
  end
34
37
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/cloud-test-lab/
27
27
  module TestingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20171012'
29
+ REVISION = '20171129'
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'
@@ -904,7 +904,7 @@ module Google
904
904
  # @return [String]
905
905
  attr_accessor :name
906
906
 
907
- # A human-friendy string representing the region for this locale.
907
+ # A human-friendly string representing the region for this locale.
908
908
  # Example: "United States"
909
909
  # Not present for every locale.
910
910
  # @OutputOnly
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171113'
28
+ REVISION = '20171127'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/v3
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20171101'
29
+ REVISION = '20171129'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -3747,6 +3747,12 @@ module Google
3747
3747
  # @return [String]
3748
3748
  attr_accessor :closed_captions_type
3749
3749
 
3750
+ # This setting indicates whether auto start is enabled for this broadcast.
3751
+ # Corresponds to the JSON property `enableAutoStart`
3752
+ # @return [Boolean]
3753
+ attr_accessor :enable_auto_start
3754
+ alias_method :enable_auto_start?, :enable_auto_start
3755
+
3750
3756
  # This setting indicates whether HTTP POST closed captioning is enabled for this
3751
3757
  # broadcast. The ingestion URL of the closed captions is returned through the
3752
3758
  # liveStreams API. This is mutually exclusive with using the
@@ -3845,6 +3851,7 @@ module Google
3845
3851
  @bound_stream_id = args[:bound_stream_id] if args.key?(:bound_stream_id)
3846
3852
  @bound_stream_last_update_time_ms = args[:bound_stream_last_update_time_ms] if args.key?(:bound_stream_last_update_time_ms)
3847
3853
  @closed_captions_type = args[:closed_captions_type] if args.key?(:closed_captions_type)
3854
+ @enable_auto_start = args[:enable_auto_start] if args.key?(:enable_auto_start)
3848
3855
  @enable_closed_captions = args[:enable_closed_captions] if args.key?(:enable_closed_captions)
3849
3856
  @enable_content_encryption = args[:enable_content_encryption] if args.key?(:enable_content_encryption)
3850
3857
  @enable_dvr = args[:enable_dvr] if args.key?(:enable_dvr)
@@ -6956,6 +6963,11 @@ module Google
6956
6963
  class Video
6957
6964
  include Google::Apis::Core::Hashable
6958
6965
 
6966
+ # The access token to uniquely identify a revocable unlisted video.
6967
+ # Corresponds to the JSON property `accessToken`
6968
+ # @return [String]
6969
+ attr_accessor :access_token
6970
+
6959
6971
  # Age restriction details related to a video. This data can only be retrieved by
6960
6972
  # the video owner.
6961
6973
  # Corresponds to the JSON property `ageGating`
@@ -7060,6 +7072,7 @@ module Google
7060
7072
 
7061
7073
  # Update properties of this object
7062
7074
  def update!(**args)
7075
+ @access_token = args[:access_token] if args.key?(:access_token)
7063
7076
  @age_gating = args[:age_gating] if args.key?(:age_gating)
7064
7077
  @content_details = args[:content_details] if args.key?(:content_details)
7065
7078
  @etag = args[:etag] if args.key?(:etag)
@@ -2035,6 +2035,7 @@ module Google
2035
2035
  property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs', type: DateTime
2036
2036
 
2037
2037
  property :closed_captions_type, as: 'closedCaptionsType'
2038
+ property :enable_auto_start, as: 'enableAutoStart'
2038
2039
  property :enable_closed_captions, as: 'enableClosedCaptions'
2039
2040
  property :enable_content_encryption, as: 'enableContentEncryption'
2040
2041
  property :enable_dvr, as: 'enableDvr'
@@ -2902,6 +2903,7 @@ module Google
2902
2903
  class Video
2903
2904
  # @private
2904
2905
  class Representation < Google::Apis::Core::JsonRepresentation
2906
+ property :access_token, as: 'accessToken'
2905
2907
  property :age_gating, as: 'ageGating', class: Google::Apis::YoutubeV3::VideoAgeGating, decorator: Google::Apis::YoutubeV3::VideoAgeGating::Representation
2906
2908
 
2907
2909
  property :content_details, as: 'contentDetails', class: Google::Apis::YoutubeV3::VideoContentDetails, decorator: Google::Apis::YoutubeV3::VideoContentDetails::Representation
@@ -400,7 +400,10 @@ module Google
400
400
  def new_client
401
401
  client = ::HTTPClient.new
402
402
 
403
- client.transparent_gzip_decompression = true
403
+ if client_options.transparent_gzip_decompression
404
+ client.transparent_gzip_decompression = client_options.transparent_gzip_decompression
405
+ end
406
+
404
407
  client.proxy = client_options.proxy_url if client_options.proxy_url
405
408
 
406
409
  if client_options.open_timeout_sec
@@ -22,7 +22,8 @@ module Google
22
22
  :open_timeout_sec,
23
23
  :read_timeout_sec,
24
24
  :send_timeout_sec,
25
- :log_http_requests)
25
+ :log_http_requests,
26
+ :transparent_gzip_decompression)
26
27
 
27
28
  RequestOptions = Struct.new(
28
29
  :authorization,
@@ -47,6 +48,8 @@ module Google
47
48
  # @return [Fixnum] How long, in seconds, before failed connections time out
48
49
  # @!attribute [rw] read_timeout_sec
49
50
  # @return [Fixnum] How long, in seconds, before requests time out
51
+ # @!attribute [rw] transparent_gzip_decompression
52
+ # @return [Boolean] True if gzip compression needs to be enabled
50
53
  # Get the default options
51
54
  # @return [Google::Apis::ClientOptions]
52
55
  def self.default
@@ -92,6 +95,7 @@ module Google
92
95
  ClientOptions.default.log_http_requests = false
93
96
  ClientOptions.default.application_name = 'unknown'
94
97
  ClientOptions.default.application_version = '0.0.0'
98
+ ClientOptions.default.transparent_gzip_decompression = true
95
99
  RequestOptions.default.retries = 0
96
100
  RequestOptions.default.normalize_unicode = false
97
101
  RequestOptions.default.skip_serialization = false