Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageSource
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1p1beta1/classes.rb,
generated/google/apis/vision_v1p1beta1/representations.rb,
generated/google/apis/vision_v1p1beta1/representations.rb
Overview
External image source (Google Cloud Storage image location).
Instance Attribute Summary collapse
-
#gcs_image_uri ⇒ String
NOTE: For new code
image_uri
below is preferred. -
#image_uri ⇒ String
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form:
gs://bucket_name/object_name
(for details, see Google Cloud Storage Request URIs).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1ImageSource
constructor
A new instance of GoogleCloudVisionV1p1beta1ImageSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1ImageSource
Returns a new instance of GoogleCloudVisionV1p1beta1ImageSource
1022 1023 1024 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1022 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_image_uri ⇒ String
NOTE: For new code image_uri
below is preferred.
Google Cloud Storage image URI, which must be in the following form:
gs://bucket_name/object_name
(for details, see
Google Cloud Storage Request
URIs).
NOTE: Cloud Storage object versioning is not supported.
Corresponds to the JSON property gcsImageUri
1006 1007 1008 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1006 def gcs_image_uri @gcs_image_uri end |
#image_uri ⇒ String
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
gs://bucket_name/object_name
(for details, see
Google Cloud Storage Request
URIs).
NOTE: Cloud Storage object versioning is not supported.
2) Publicly accessible image HTTP/HTTPS URL.
This is preferred over the legacy gcs_image_uri
above. When both
gcs_image_uri
and image_uri
are specified, image_uri
takes
precedence.
Corresponds to the JSON property imageUri
1020 1021 1022 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1020 def image_uri @image_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1027 1028 1029 1030 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1027 def update!(**args) @gcs_image_uri = args[:gcs_image_uri] if args.key?(:gcs_image_uri) @image_uri = args[:image_uri] if args.key?(:image_uri) end |