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

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

Instance Method Summary collapse

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_uriString

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`

Returns:

  • (String)


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