Class: Google::Apis::VisionV1::ImageSource
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::ImageSource
- Includes:
- Core::Hashable
- Defined in:
- lib/google/apis/vision_v1/classes.rb,
lib/google/apis/vision_v1/representations.rb,
lib/google/apis/vision_v1/representations.rb
Overview
External image source (i.e. Google Cloud Storage image location).
Defined Under Namespace
Classes: Representation
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.
Constructor Details
#initialize(**args) ⇒ ImageSource
Returns a new instance of ImageSource.
37 38 39 |
# File 'lib/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: 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 'lib/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 'lib/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 |