google-apis-youtube_v3 0.53.0 → 0.54.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: 0aedaa0525cb7701278a2045aa51beacefe2ba1d1d213f9d4f8f6880c761ba1f
4
- data.tar.gz: 57fafac71661c184e2133f5a0a13650aab53799b40678c76de06847cfedcac4f
3
+ metadata.gz: e54ba375cc9bef60bad091586b9c280b8d115cd58ec72eeeb90100178a582d08
4
+ data.tar.gz: 196db15cd699324f7aba1f5aeda1e223ad0b7e3a17429105e09a3d77d3fee9a9
5
5
  SHA512:
6
- metadata.gz: 2ee3fd17dfdb5a127f0a0b5a20b0fa36897af828c5cc88d12d43b2de0c23e6dc252c9aaede64016907f6e355131378e6e042178bbc30e93c057c93af52d15727
7
- data.tar.gz: 786c3275dd1b3f56b1b48eea450902d2f1648ef9787977f7ad8712a114966d0bf59d86f9d12d82be2f7b721c7298058773d1f94dedb7eac244910681cb5e6234
6
+ metadata.gz: 3ed47a53d16215c1a613a2b4fd30a7d070bf1c699d08427b957b18f75b00bb78eef89c0c12d8ef9767041180814f050b8c6ae0fc6d4fef68eb8f1eb177fc5d86
7
+ data.tar.gz: 42718f39f53db1758bc559e837925163791e013b46a3cf8b76311f667c6be106336579bd2b75a51df4b14b21349754a9c6e4f1ba74aa393dd40c5a1dad628c67
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.54.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250224
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.53.0 (2025-01-05)
4
9
 
5
10
  * Regenerated from discovery document revision 20250101
@@ -1862,6 +1862,13 @@ module Google
1862
1862
  class ChannelStatus
1863
1863
  include Google::Apis::Core::Hashable
1864
1864
 
1865
+ # Whether the channel is considered ypp monetization enabled. See go/yppornot
1866
+ # for more details.
1867
+ # Corresponds to the JSON property `isChannelMonetizationEnabled`
1868
+ # @return [Boolean]
1869
+ attr_accessor :is_channel_monetization_enabled
1870
+ alias_method :is_channel_monetization_enabled?, :is_channel_monetization_enabled
1871
+
1865
1872
  # If true, then the user is linked to either a YouTube username or G+ account.
1866
1873
  # Otherwise, the user doesn't have a public YouTube identity.
1867
1874
  # Corresponds to the JSON property `isLinked`
@@ -1898,6 +1905,7 @@ module Google
1898
1905
 
1899
1906
  # Update properties of this object
1900
1907
  def update!(**args)
1908
+ @is_channel_monetization_enabled = args[:is_channel_monetization_enabled] if args.key?(:is_channel_monetization_enabled)
1901
1909
  @is_linked = args[:is_linked] if args.key?(:is_linked)
1902
1910
  @long_uploads_status = args[:long_uploads_status] if args.key?(:long_uploads_status)
1903
1911
  @made_for_kids = args[:made_for_kids] if args.key?(:made_for_kids)
@@ -9255,6 +9263,45 @@ module Google
9255
9263
  end
9256
9264
  end
9257
9265
 
9266
+ # Specifies who is allowed to train on the video.
9267
+ class VideoTrainability
9268
+ include Google::Apis::Core::Hashable
9269
+
9270
+ # Etag of this resource.
9271
+ # Corresponds to the JSON property `etag`
9272
+ # @return [String]
9273
+ attr_accessor :etag
9274
+
9275
+ # Identifies what kind of resource this is. Value: the fixed string "youtube#
9276
+ # videoTrainability".
9277
+ # Corresponds to the JSON property `kind`
9278
+ # @return [String]
9279
+ attr_accessor :kind
9280
+
9281
+ # Specifies who is allowed to train on the video. Valid values are: - a single
9282
+ # string "all" - a single string "none" - a list of allowed parties
9283
+ # Corresponds to the JSON property `permitted`
9284
+ # @return [Array<String>]
9285
+ attr_accessor :permitted
9286
+
9287
+ # The ID of the video.
9288
+ # Corresponds to the JSON property `videoId`
9289
+ # @return [String]
9290
+ attr_accessor :video_id
9291
+
9292
+ def initialize(**args)
9293
+ update!(**args)
9294
+ end
9295
+
9296
+ # Update properties of this object
9297
+ def update!(**args)
9298
+ @etag = args[:etag] if args.key?(:etag)
9299
+ @kind = args[:kind] if args.key?(:kind)
9300
+ @permitted = args[:permitted] if args.key?(:permitted)
9301
+ @video_id = args[:video_id] if args.key?(:video_id)
9302
+ end
9303
+ end
9304
+
9258
9305
  # Branding properties for the watch. All deprecated.
9259
9306
  class WatchSettings
9260
9307
  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.53.0"
19
+ GEM_VERSION = "0.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250101"
25
+ REVISION = "20250224"
26
26
  end
27
27
  end
28
28
  end
@@ -1204,6 +1204,12 @@ module Google
1204
1204
  include Google::Apis::Core::JsonObjectSupport
1205
1205
  end
1206
1206
 
1207
+ class VideoTrainability
1208
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1209
+
1210
+ include Google::Apis::Core::JsonObjectSupport
1211
+ end
1212
+
1207
1213
  class WatchSettings
1208
1214
  class Representation < Google::Apis::Core::JsonRepresentation; end
1209
1215
 
@@ -1731,6 +1737,7 @@ module Google
1731
1737
  class ChannelStatus
1732
1738
  # @private
1733
1739
  class Representation < Google::Apis::Core::JsonRepresentation
1740
+ property :is_channel_monetization_enabled, as: 'isChannelMonetizationEnabled'
1734
1741
  property :is_linked, as: 'isLinked'
1735
1742
  property :long_uploads_status, as: 'longUploadsStatus'
1736
1743
  property :made_for_kids, as: 'madeForKids'
@@ -3653,6 +3660,16 @@ module Google
3653
3660
  end
3654
3661
  end
3655
3662
 
3663
+ class VideoTrainability
3664
+ # @private
3665
+ class Representation < Google::Apis::Core::JsonRepresentation
3666
+ property :etag, as: 'etag'
3667
+ property :kind, as: 'kind'
3668
+ collection :permitted, as: 'permitted'
3669
+ property :video_id, as: 'videoId'
3670
+ end
3671
+ end
3672
+
3656
3673
  class WatchSettings
3657
3674
  # @private
3658
3675
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3651,6 +3651,36 @@ module Google
3651
3651
  execute_or_queue_command(command, &block)
3652
3652
  end
3653
3653
 
3654
+ # Returns the trainability status of a video.
3655
+ # @param [String] id
3656
+ # The ID of the video to retrieve.
3657
+ # @param [String] fields
3658
+ # Selector specifying which fields to include in a partial response.
3659
+ # @param [String] quota_user
3660
+ # Available to use for quota purposes for server-side applications. Can be any
3661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3662
+ # @param [Google::Apis::RequestOptions] options
3663
+ # Request-specific options
3664
+ #
3665
+ # @yield [result, err] Result & error if block supplied
3666
+ # @yieldparam result [Google::Apis::YoutubeV3::VideoTrainability] parsed result object
3667
+ # @yieldparam err [StandardError] error object if request failed
3668
+ #
3669
+ # @return [Google::Apis::YoutubeV3::VideoTrainability]
3670
+ #
3671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3674
+ def get_video_trainability(id: nil, fields: nil, quota_user: nil, options: nil, &block)
3675
+ command = make_simple_command(:get, 'youtube/v3/videoTrainability', options)
3676
+ command.response_representation = Google::Apis::YoutubeV3::VideoTrainability::Representation
3677
+ command.response_class = Google::Apis::YoutubeV3::VideoTrainability
3678
+ command.query['id'] = id unless id.nil?
3679
+ command.query['fields'] = fields unless fields.nil?
3680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3681
+ execute_or_queue_command(command, &block)
3682
+ end
3683
+
3654
3684
  # Deletes a resource.
3655
3685
  # @param [String] id
3656
3686
  # @param [String] on_behalf_of_content_owner
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-youtube_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.53.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.54.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for YouTube Data API v3 V3
82
79
  test_files: []