Class: Google::Apis::WalletobjectsV1::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Overview

Wrapping type for Google hosted images.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



4428
4429
4430
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4428

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

Instance Attribute Details

#content_descriptionGoogle::Apis::WalletobjectsV1::LocalizedString

Description of the image used for accessibility. Corresponds to the JSON property contentDescription



4407
4408
4409
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4407

def content_description
  @content_description
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#image". Corresponds to the JSON property kind

Returns:

  • (String)


4413
4414
4415
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4413

def kind
  @kind
end

#private_image_idString

An ID for an already uploaded private image. Either this or source_uri should be set. Requests setting both or neither will be rejected. Please contact support to use private images. Corresponds to the JSON property privateImageId

Returns:

  • (String)


4420
4421
4422
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4420

def private_image_id
  @private_image_id
end

#source_uriGoogle::Apis::WalletobjectsV1::ImageUri

A URI for the image. Either this or private_image_id should be set. Requests setting both or neither will be rejected. Corresponds to the JSON property sourceUri



4426
4427
4428
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4426

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4433
4434
4435
4436
4437
4438
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4433

def update!(**args)
  @content_description = args[:content_description] if args.key?(:content_description)
  @kind = args[:kind] if args.key?(:kind)
  @private_image_id = args[:private_image_id] if args.key?(:private_image_id)
  @source_uri = args[:source_uri] if args.key?(:source_uri)
end