Class: Google::Apis::GamesConfigurationV1configuration::ImageConfiguration

Inherits:
Object
  • Object
show all
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

An image configuration resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageConfiguration

Returns a new instance of ImageConfiguration.



280
281
282
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 280

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

Instance Attribute Details

#image_typeString

The image type for the image. Corresponds to the JSON property imageType

Returns:

  • (String)


262
263
264
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 262

def image_type
  @image_type
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#imageConfiguration. Corresponds to the JSON property kind

Returns:

  • (String)


268
269
270
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 268

def kind
  @kind
end

#resource_idString

The resource ID of resource which the image belongs to. Corresponds to the JSON property resourceId

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 273

def resource_id
  @resource_id
end

#urlString

The url for this image. Corresponds to the JSON property url

Returns:

  • (String)


278
279
280
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 278

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



285
286
287
288
289
290
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 285

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