Class: Google::Apis::GamesConfigurationV1configuration::ImageConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::GamesConfigurationV1configuration::ImageConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_configuration_v1configuration/classes.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb
Overview
This is a JSON template for an image configuration resource.
Instance Attribute Summary collapse
-
#image_type ⇒ String
The image type for the image.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#resource_id ⇒ String
The resource ID of resource which the image belongs to.
-
#url ⇒ String
The url for this image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageConfiguration
constructor
A new instance of ImageConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ImageConfiguration
Returns a new instance of ImageConfiguration
293 294 295 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_type ⇒ String
The image type for the image.
Corresponds to the JSON property imageType
275 276 277 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 275 def image_type @image_type end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesConfiguration#imageConfiguration.
Corresponds to the JSON property kind
281 282 283 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 281 def kind @kind end |
#resource_id ⇒ String
The resource ID of resource which the image belongs to.
Corresponds to the JSON property resourceId
286 287 288 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 286 def resource_id @resource_id end |
#url ⇒ String
The url for this image.
Corresponds to the JSON property url
291 292 293 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 291 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
298 299 300 301 302 303 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 298 def update!(**args) @image_type = args[:image_type] if args.key?(:image_type) @kind = args[:kind] if args.key?(:kind) @resource_id = args[:resource_id] if args.key?(:resource_id) @url = args[:url] if args.key?(:url) end |