Class: Google::Apis::YoutubePartnerV1::MetadataHistory

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

Constructor Details

#initialize(**args) ⇒ MetadataHistory

Returns a new instance of MetadataHistory.



2763
2764
2765
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2763

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

Instance Attribute Details

#kindString

The type of the API resource. For metadata history resources, the value is youtubePartner#metadataHistory. Corresponds to the JSON property kind

Returns:

  • (String)


2745
2746
2747
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2745

def kind
  @kind
end

#metadataGoogle::Apis::YoutubePartnerV1::Metadata

The metadata object contains the metadata provided by the specified source ( origination) at the specified time (timeProvided). Corresponds to the JSON property metadata



2751
2752
2753
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2751

def 
  @metadata
end

#originationGoogle::Apis::YoutubePartnerV1::Origination

The origination object contains information that describes the metadata source. Corresponds to the JSON property origination



2756
2757
2758
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2756

def origination
  @origination
end

#time_providedString

The time the metadata was provided. Corresponds to the JSON property timeProvided

Returns:

  • (String)


2761
2762
2763
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2761

def time_provided
  @time_provided
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2768
2769
2770
2771
2772
2773
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2768

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @origination = args[:origination] if args.key?(:origination)
  @time_provided = args[:time_provided] if args.key?(:time_provided)
end