Class: Google::Apis::YoutubePartnerV1::Package
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Package
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
-
#content ⇒ String
The package's metadata file contents.
-
#custom_id ⇒ Array<String>
The list of customer IDs.
-
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the package.
-
#kind ⇒ String
The type of the API resource.
-
#locale ⇒ String
The desired locale of the error messages as defined in BCP 47 (http://tools. ietf.org/html/bcp47).
-
#name ⇒ String
The package name.
-
#status ⇒ String
The package status.
-
#time_created ⇒ DateTime
The package creation time.
-
#type ⇒ String
The package type.
-
#uploader_name ⇒ String
The uploader name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Package
constructor
A new instance of Package.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Package
Returns a new instance of Package
2670 2671 2672 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2670 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The package's metadata file contents.
Corresponds to the JSON property content
2619 2620 2621 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2619 def content @content end |
#custom_id ⇒ Array<String>
The list of customer IDs.
Corresponds to the JSON property custom_id
2624 2625 2626 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2624 def custom_id @custom_id end |
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the package.
Corresponds to the JSON property id
2629 2630 2631 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2629 def id @id end |
#kind ⇒ String
The type of the API resource. For package resources, this value is
youtubePartner#package.
Corresponds to the JSON property kind
2635 2636 2637 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2635 def kind @kind end |
#locale ⇒ String
The desired locale of the error messages as defined in BCP 47 (http://tools.
ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will
return the error messages in English ("en").
Corresponds to the JSON property locale
2642 2643 2644 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2642 def locale @locale end |
#name ⇒ String
The package name.
Corresponds to the JSON property name
2647 2648 2649 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2647 def name @name end |
#status ⇒ String
The package status.
Corresponds to the JSON property status
2652 2653 2654 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2652 def status @status end |
#time_created ⇒ DateTime
The package creation time. The value is specified in RFC 3339 (YYYY-MM-DDThh:
mm:ss.000Z) format.
Corresponds to the JSON property timeCreated
2658 2659 2660 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2658 def time_created @time_created end |
#type ⇒ String
The package type.
Corresponds to the JSON property type
2663 2664 2665 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2663 def type @type end |
#uploader_name ⇒ String
The uploader name.
Corresponds to the JSON property uploaderName
2668 2669 2670 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2668 def uploader_name @uploader_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2675 def update!(**args) @content = args[:content] if args.key?(:content) @custom_id = args[:custom_id] if args.key?(:custom_id) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @locale = args[:locale] if args.key?(:locale) @name = args[:name] if args.key?(:name) @status = args[:status] if args.key?(:status) @time_created = args[:time_created] if args.key?(:time_created) @type = args[:type] if args.key?(:type) @uploader_name = args[:uploader_name] if args.key?(:uploader_name) end |