Class: Google::Apis::YoutubePartnerV1::Package

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Package

Returns a new instance of Package.


2650
2651
2652
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2650

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentString

The package's metadata file contents. Corresponds to the JSON property content

Returns:

  • (String)

2594
2595
2596
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2594

def content
  @content
end

#custom_idsArray<String>

The list of customer IDs. Corresponds to the JSON property customIds

Returns:

  • (Array<String>)

2599
2600
2601
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2599

def custom_ids
  @custom_ids
end

#idString

An ID that YouTube assigns and uses to uniquely identify the package. Corresponds to the JSON property id

Returns:

  • (String)

2604
2605
2606
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2604

def id
  @id
end

#kindString

The type of the API resource. For package resources, this value is youtubePartner#package. Corresponds to the JSON property kind

Returns:

  • (String)

2610
2611
2612
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2610

def kind
  @kind
end

#localeString

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

Returns:

  • (String)

2617
2618
2619
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2617

def locale
  @locale
end

#nameString

The package name. Corresponds to the JSON property name

Returns:

  • (String)

2622
2623
2624
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2622

def name
  @name
end

#statusString

The package status. Corresponds to the JSON property status

Returns:

  • (String)

2627
2628
2629
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2627

def status
  @status
end

#status_reportsArray<Google::Apis::YoutubePartnerV1::StatusReport>

The package status reports. Corresponds to the JSON property statusReports


2632
2633
2634
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2632

def status_reports
  @status_reports
end

#time_createdDateTime

The package creation time. The value is specified in RFC 3339 (YYYY-MM-DDThh: mm:ss.000Z) format. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)

2638
2639
2640
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2638

def time_created
  @time_created
end

#typeString

The package type. Corresponds to the JSON property type

Returns:

  • (String)

2643
2644
2645
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2643

def type
  @type
end

#uploader_nameString

The uploader name. Corresponds to the JSON property uploaderName

Returns:

  • (String)

2648
2649
2650
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2648

def uploader_name
  @uploader_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2655

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