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.
1346 1347 1348 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1346 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
URL of the media.
Corresponds to the JSON property content
1334 1335 1336 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1334 def content @content end |
#title ⇒ String
Title of the media.
Corresponds to the JSON property title
1339 1340 1341 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1339 def title @title end |
#type ⇒ String
Type of the media.
Corresponds to the JSON property type
1344 1345 1346 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1344 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1351 1352 1353 1354 1355 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1351 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 |