Class: Google::Apis::YoutubereportingV1::GdataObjectId

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtubereporting_v1/classes.rb,
generated/google/apis/youtubereporting_v1/representations.rb,
generated/google/apis/youtubereporting_v1/representations.rb

Overview

gdata

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) ⇒ GdataObjectId

Returns a new instance of GdataObjectId



608
609
610
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 608

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

Instance Attribute Details

#bucket_nameString

gdata Corresponds to the JSON property bucketName

Returns:

  • (String)


596
597
598
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 596

def bucket_name
  @bucket_name
end

#generationFixnum

gdata Corresponds to the JSON property generation

Returns:

  • (Fixnum)


601
602
603
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 601

def generation
  @generation
end

#object_nameString

gdata Corresponds to the JSON property objectName

Returns:

  • (String)


606
607
608
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 606

def object_name
  @object_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



613
614
615
616
617
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 613

def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @generation = args[:generation] if args.key?(:generation)
  @object_name = args[:object_name] if args.key?(:object_name)
end