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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MetadataHistory

Returns a new instance of MetadataHistory



2286
2287
2288
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2286

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)


2268
2269
2270
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2268

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



2274
2275
2276
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2274

def 
  @metadata
end

#originationGoogle::Apis::YoutubePartnerV1::Origination

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



2279
2280
2281
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2279

def origination
  @origination
end

#time_providedDateTime

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

Returns:

  • (DateTime)


2284
2285
2286
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2284

def time_provided
  @time_provided
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2291
2292
2293
2294
2295
2296
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2291

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