Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Media

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb

Overview

Represents media information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1Media

Returns a new instance of GoogleCloudChannelV1Media.



1736
1737
1738
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1736

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

Instance Attribute Details

#contentString

URL of the media. Corresponds to the JSON property content

Returns:

  • (String)


1724
1725
1726
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1724

def content
  @content
end

#titleString

Title of the media. Corresponds to the JSON property title

Returns:

  • (String)


1729
1730
1731
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1729

def title
  @title
end

#typeString

Type of the media. Corresponds to the JSON property type

Returns:

  • (String)


1734
1735
1736
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1734

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1741
1742
1743
1744
1745
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1741

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end