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_ids ⇒ 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.
-
#status_reports ⇒ Array<Google::Apis::YoutubePartnerV1::StatusReport>
The package status reports.
-
#time_created ⇒ String
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.
Constructor Details
#initialize(**args) ⇒ Package
Returns a new instance of Package.
3022 3023 3024 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3022 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The package's metadata file contents.
Corresponds to the JSON property content
2966 2967 2968 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2966 def content @content end |
#custom_ids ⇒ Array<String>
The list of customer IDs.
Corresponds to the JSON property customIds
2971 2972 2973 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2971 def custom_ids @custom_ids end |
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the package.
Corresponds to the JSON property id
2976 2977 2978 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2976 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
2982 2983 2984 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2982 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
2989 2990 2991 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2989 def locale @locale end |
#name ⇒ String
The package name.
Corresponds to the JSON property name
2994 2995 2996 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2994 def name @name end |
#status ⇒ String
The package status.
Corresponds to the JSON property status
2999 3000 3001 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2999 def status @status end |
#status_reports ⇒ Array<Google::Apis::YoutubePartnerV1::StatusReport>
The package status reports.
Corresponds to the JSON property statusReports
3004 3005 3006 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3004 def status_reports @status_reports end |
#time_created ⇒ String
The package creation time. The value is specified in RFC 3339 ( YYYY-MM-DDThh:
mm:ss.000Z) format.
Corresponds to the JSON property timeCreated
3010 3011 3012 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3010 def time_created @time_created end |
#type ⇒ String
The package type.
Corresponds to the JSON property type
3015 3016 3017 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3015 def type @type end |
#uploader_name ⇒ String
The uploader name.
Corresponds to the JSON property uploaderName
3020 3021 3022 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3020 def uploader_name @uploader_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3027 def update!(**args) @content = args[:content] if args.key?(:content) @custom_ids = args[:custom_ids] if args.key?(:custom_ids) @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) @status_reports = args[:status_reports] if args.key?(:status_reports) @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 |