Class: Google::Apis::VisionV1::ImageSource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_uriString

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

Returns:

  • (String)


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