Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Media
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Media
- 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
-
#content ⇒ String
URL of the media.
-
#title ⇒ String
Title of the media.
-
#type ⇒ String
Type of the media.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Media
constructor
A new instance of GoogleCloudChannelV1Media.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Media
Returns a new instance of GoogleCloudChannelV1Media.
2129 2130 2131 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
URL of the media.
Corresponds to the JSON property content
2117 2118 2119 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2117 def content @content end |
#title ⇒ String
Title of the media.
Corresponds to the JSON property title
2122 2123 2124 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2122 def title @title end |
#type ⇒ String
Type of the media.
Corresponds to the JSON property type
2127 2128 2129 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2127 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2134 2135 2136 2137 2138 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2134 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 |