Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb,
generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb,
generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest

Returns a new instance of GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest.



496
497
498
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 496

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

Instance Attribute Details

#iconString

The raw icon bytes user-supplied to be uploaded to the product. The format of the icon can only be PNG or JPEG. The minimum allowed dimensions are 130x130 pixels and the maximum dimensions are 10000x10000 pixels. Required. Corresponds to the JSON property icon NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


494
495
496
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 494

def icon
  @icon
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



501
502
503
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 501

def update!(**args)
  @icon = args[:icon] if args.key?(:icon)
end