google-apis-youtube_v3 0.4.0 → 0.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc97d446619aae24f4db4255213601f2fb430b668dd72d68e770f7e26c0ec930
4
- data.tar.gz: 9021d8296a8c73a63e203079ff50ccda01ccd33efef9c85956202ab79327e696
3
+ metadata.gz: bad9f40e377c4132aa7cc84ecdfd6220c64379f753594226bda70098d54ae163
4
+ data.tar.gz: 70d5633ceb8616ae9061aa83138decec3faf8f44bf255cb08b018c6c410699c4
5
5
  SHA512:
6
- metadata.gz: 791c6e5e71c1f72285f26580ece320a53dbf19cdae1f7313d5dd92e6a957f73ca860957c123fb9da35feeb38ec0cfaebd2b50c04689324bcd42250bd9169f634
7
- data.tar.gz: a274c4b79e922ab74a30ac5f364cda7feb9379e7935bd38a971d4b65346c03e57feea883eedf628f779910c84f7fa010e5b52680dda3f016f9da9efd99bee67a
6
+ metadata.gz: 9981fb0c397334cc4cccb2d880facd91c245564351a5d6f2669930cf2640d077df3c8a64376ade63f7630442cc2b9db0e33b7b2f4fc96490f831186772ff59eb
7
+ data.tar.gz: e7eb242dd144c0654aeef02b1982ca42ff9778353d895fbcab1d330d93b82529fd4346b48186ac3f49fedf41f3659eb072a0b894a6acefd198abb6df35f29c97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.5.0 (2021-04-09)
4
+
5
+ * Regenerated from discovery document revision 20210407
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.4.0 (2021-03-04)
4
9
 
5
10
  * Unspecified changes
@@ -3821,12 +3821,12 @@ module Google
3821
3821
  # @return [DateTime]
3822
3822
  attr_accessor :published_at
3823
3823
 
3824
- # The date and time that the broadcast is scheduled to start.
3824
+ # The date and time that the broadcast is scheduled to end.
3825
3825
  # Corresponds to the JSON property `scheduledEndTime`
3826
3826
  # @return [DateTime]
3827
3827
  attr_accessor :scheduled_end_time
3828
3828
 
3829
- # The date and time that the broadcast is scheduled to end.
3829
+ # The date and time that the broadcast is scheduled to start.
3830
3830
  # Corresponds to the JSON property `scheduledStartTime`
3831
3831
  # @return [DateTime]
3832
3832
  attr_accessor :scheduled_start_time
@@ -7823,6 +7823,50 @@ module Google
7823
7823
  end
7824
7824
  end
7825
7825
 
7826
+ #
7827
+ class GetVideoRatingResponse
7828
+ include Google::Apis::Core::Hashable
7829
+
7830
+ # Etag of this resource.
7831
+ # Corresponds to the JSON property `etag`
7832
+ # @return [String]
7833
+ attr_accessor :etag
7834
+
7835
+ # Serialized EventId of the request which produced this response.
7836
+ # Corresponds to the JSON property `eventId`
7837
+ # @return [String]
7838
+ attr_accessor :event_id
7839
+
7840
+ # A list of ratings that match the request criteria.
7841
+ # Corresponds to the JSON property `items`
7842
+ # @return [Array<Google::Apis::YoutubeV3::VideoRating>]
7843
+ attr_accessor :items
7844
+
7845
+ # Identifies what kind of resource this is. Value: the fixed string "youtube#
7846
+ # videoGetRatingResponse".
7847
+ # Corresponds to the JSON property `kind`
7848
+ # @return [String]
7849
+ attr_accessor :kind
7850
+
7851
+ # The visitorId identifies the visitor.
7852
+ # Corresponds to the JSON property `visitorId`
7853
+ # @return [String]
7854
+ attr_accessor :visitor_id
7855
+
7856
+ def initialize(**args)
7857
+ update!(**args)
7858
+ end
7859
+
7860
+ # Update properties of this object
7861
+ def update!(**args)
7862
+ @etag = args[:etag] if args.key?(:etag)
7863
+ @event_id = args[:event_id] if args.key?(:event_id)
7864
+ @items = args[:items] if args.key?(:items)
7865
+ @kind = args[:kind] if args.key?(:kind)
7866
+ @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
7867
+ end
7868
+ end
7869
+
7826
7870
  #
7827
7871
  class ListVideosResponse
7828
7872
  include Google::Apis::Core::Hashable
@@ -8194,50 +8238,6 @@ module Google
8194
8238
  end
8195
8239
  end
8196
8240
 
8197
- #
8198
- class VideoRatingListResponse
8199
- include Google::Apis::Core::Hashable
8200
-
8201
- # Etag of this resource.
8202
- # Corresponds to the JSON property `etag`
8203
- # @return [String]
8204
- attr_accessor :etag
8205
-
8206
- # Serialized EventId of the request which produced this response.
8207
- # Corresponds to the JSON property `eventId`
8208
- # @return [String]
8209
- attr_accessor :event_id
8210
-
8211
- # A list of ratings that match the request criteria.
8212
- # Corresponds to the JSON property `items`
8213
- # @return [Array<Google::Apis::YoutubeV3::VideoRating>]
8214
- attr_accessor :items
8215
-
8216
- # Identifies what kind of resource this is. Value: the fixed string "youtube#
8217
- # videoGetRatingResponse".
8218
- # Corresponds to the JSON property `kind`
8219
- # @return [String]
8220
- attr_accessor :kind
8221
-
8222
- # The visitorId identifies the visitor.
8223
- # Corresponds to the JSON property `visitorId`
8224
- # @return [String]
8225
- attr_accessor :visitor_id
8226
-
8227
- def initialize(**args)
8228
- update!(**args)
8229
- end
8230
-
8231
- # Update properties of this object
8232
- def update!(**args)
8233
- @etag = args[:etag] if args.key?(:etag)
8234
- @event_id = args[:event_id] if args.key?(:event_id)
8235
- @items = args[:items] if args.key?(:items)
8236
- @kind = args[:kind] if args.key?(:kind)
8237
- @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
8238
- end
8239
- end
8240
-
8241
8241
  # Recording information associated with the video.
8242
8242
  class VideoRecordingDetails
8243
8243
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module YoutubeV3
18
18
  # Version of the google-apis-youtube_v3 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210210"
25
+ REVISION = "20210407"
26
26
  end
27
27
  end
28
28
  end
@@ -1000,6 +1000,12 @@ module Google
1000
1000
  include Google::Apis::Core::JsonObjectSupport
1001
1001
  end
1002
1002
 
1003
+ class GetVideoRatingResponse
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
1003
1009
  class ListVideosResponse
1004
1010
  class Representation < Google::Apis::Core::JsonRepresentation; end
1005
1011
 
@@ -1054,12 +1060,6 @@ module Google
1054
1060
  include Google::Apis::Core::JsonObjectSupport
1055
1061
  end
1056
1062
 
1057
- class VideoRatingListResponse
1058
- class Representation < Google::Apis::Core::JsonRepresentation; end
1059
-
1060
- include Google::Apis::Core::JsonObjectSupport
1061
- end
1062
-
1063
1063
  class VideoRecordingDetails
1064
1064
  class Representation < Google::Apis::Core::JsonRepresentation; end
1065
1065
 
@@ -3175,6 +3175,18 @@ module Google
3175
3175
  end
3176
3176
  end
3177
3177
 
3178
+ class GetVideoRatingResponse
3179
+ # @private
3180
+ class Representation < Google::Apis::Core::JsonRepresentation
3181
+ property :etag, as: 'etag'
3182
+ property :event_id, as: 'eventId'
3183
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
3184
+
3185
+ property :kind, as: 'kind'
3186
+ property :visitor_id, as: 'visitorId'
3187
+ end
3188
+ end
3189
+
3178
3190
  class ListVideosResponse
3179
3191
  # @private
3180
3192
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3272,18 +3284,6 @@ module Google
3272
3284
  end
3273
3285
  end
3274
3286
 
3275
- class VideoRatingListResponse
3276
- # @private
3277
- class Representation < Google::Apis::Core::JsonRepresentation
3278
- property :etag, as: 'etag'
3279
- property :event_id, as: 'eventId'
3280
- collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
3281
-
3282
- property :kind, as: 'kind'
3283
- property :visitor_id, as: 'visitorId'
3284
- end
3285
- end
3286
-
3287
3287
  class VideoRecordingDetails
3288
3288
  # @private
3289
3289
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3393,18 +3393,18 @@ module Google
3393
3393
  # Request-specific options
3394
3394
  #
3395
3395
  # @yield [result, err] Result & error if block supplied
3396
- # @yieldparam result [Google::Apis::YoutubeV3::VideoRatingListResponse] parsed result object
3396
+ # @yieldparam result [Google::Apis::YoutubeV3::GetVideoRatingResponse] parsed result object
3397
3397
  # @yieldparam err [StandardError] error object if request failed
3398
3398
  #
3399
- # @return [Google::Apis::YoutubeV3::VideoRatingListResponse]
3399
+ # @return [Google::Apis::YoutubeV3::GetVideoRatingResponse]
3400
3400
  #
3401
3401
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3402
3402
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3403
3403
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3404
3404
  def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
3405
3405
  command = make_simple_command(:get, 'youtube/v3/videos/getRating', options)
3406
- command.response_representation = Google::Apis::YoutubeV3::VideoRatingListResponse::Representation
3407
- command.response_class = Google::Apis::YoutubeV3::VideoRatingListResponse
3406
+ command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation
3407
+ command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse
3408
3408
  command.query['id'] = id unless id.nil?
3409
3409
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
3410
3410
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-youtube_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.5.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for YouTube Data API v3 V3