Class: Google::Apis::AndroidpublisherV3::Image
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb
Overview
An uploaded image. The resource for ImagesService.
Instance Attribute Summary collapse
-
#id ⇒ String
A unique id representing this image.
-
#sha1 ⇒ String
A sha1 hash of the image.
-
#sha256 ⇒ String
A sha256 hash of the image.
-
#url ⇒ String
A URL that will serve a preview of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
1576 1577 1578 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1576 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
A unique id representing this image.
Corresponds to the JSON property id
1559 1560 1561 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1559 def id @id end |
#sha1 ⇒ String
A sha1 hash of the image.
Corresponds to the JSON property sha1
1564 1565 1566 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1564 def sha1 @sha1 end |
#sha256 ⇒ String
A sha256 hash of the image.
Corresponds to the JSON property sha256
1569 1570 1571 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1569 def sha256 @sha256 end |
#url ⇒ String
A URL that will serve a preview of the image.
Corresponds to the JSON property url
1574 1575 1576 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1574 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1581 1582 1583 1584 1585 1586 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1581 def update!(**args) @id = args[:id] if args.key?(:id) @sha1 = args[:sha1] if args.key?(:sha1) @sha256 = args[:sha256] if args.key?(:sha256) @url = args[:url] if args.key?(:url) end |