Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb
Overview
Catalog item thumbnail/detail image.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
Optional.
-
#uri ⇒ String
Required.
-
#width ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1Image
constructor
A new instance of GoogleCloudRecommendationengineV1beta1Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1Image
Returns a new instance of GoogleCloudRecommendationengineV1beta1Image.
604 605 606 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Optional. Height of the image in number of pixels.
Corresponds to the JSON property height
592 593 594 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 592 def height @height end |
#uri ⇒ String
Required. URL of the image with a length limit of 5 KiB.
Corresponds to the JSON property uri
597 598 599 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 597 def uri @uri end |
#width ⇒ Fixnum
Optional. Width of the image in number of pixels.
Corresponds to the JSON property width
602 603 604 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 602 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
609 610 611 612 613 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 609 def update!(**args) @height = args[:height] if args.key?(:height) @uri = args[:uri] if args.key?(:uri) @width = args[:width] if args.key?(:width) end |