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

This is a JSON template for an image configuration resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_typeString

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

Returns:

  • (String)


275
276
277
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 275

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)


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

def kind
  @kind
end

#resource_idString

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

Returns:

  • (String)


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

def resource_id
  @resource_id
end

#urlString

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

Returns:

  • (String)


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