Class: Google::Apis::VisionV1::ImageSource
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::ImageSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
External image source (Google Cloud Storage image location).
Instance Attribute Summary collapse
-
#gcs_image_uri ⇒ String
Google Cloud Storage image URI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageSource
constructor
A new instance of ImageSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ImageSource
Returns a new instance of ImageSource.
37 38 39 |
# File 'generated/google/apis/vision_v1/classes.rb', line 37 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_image_uri ⇒ String
Google Cloud Storage image URI. It must be in the following form:
gs://bucket_name/object_name
. For more
details, please see: https://cloud.google.com/storage/docs/reference-uris.
NOTE: Cloud Storage object versioning is not supported!
Corresponds to the JSON property gcsImageUri
35 36 37 |
# File 'generated/google/apis/vision_v1/classes.rb', line 35 def gcs_image_uri @gcs_image_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
42 43 44 |
# File 'generated/google/apis/vision_v1/classes.rb', line 42 def update!(**args) @gcs_image_uri = args[:gcs_image_uri] if args.key?(:gcs_image_uri) end |