Autogenerated update (2017-11-05)

Update:
- vision_v1
This commit is contained in:
Google APIs committed 2017-11-05 00:34:55 +00:00
1 parent 552c2fa71e
commit 4d029c8b30
5 files changed
+949 -881

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20171003'
REVISION = '20171102'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
File diff suppressed because it is too large. Load diff
+181 -181
View File
@@ -22,424 +22,398 @@ module Google
module Apis
module VisionV1
class AnnotateImageRequest
class GoogleCloudVisionV1AnnotateImageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotateImageResponse
class GoogleCloudVisionV1AnnotateImageResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchAnnotateImagesRequest
class GoogleCloudVisionV1BatchAnnotateImagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchAnnotateImagesResponse
class GoogleCloudVisionV1BatchAnnotateImagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Block
class GoogleCloudVisionV1Block
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BoundingPoly
class GoogleCloudVisionV1BoundingPoly
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Color
class GoogleCloudVisionV1ColorInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ColorInfo
class GoogleCloudVisionV1CropHint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CropHint
class GoogleCloudVisionV1CropHintsAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CropHintsAnnotation
class GoogleCloudVisionV1CropHintsParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CropHintsParams
class GoogleCloudVisionV1DominantColorsAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DetectedBreak
class GoogleCloudVisionV1EntityAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DetectedLanguage
class GoogleCloudVisionV1FaceAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DominantColorsAnnotation
class GoogleCloudVisionV1FaceAnnotationLandmark
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityAnnotation
class GoogleCloudVisionV1Feature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FaceAnnotation
class GoogleCloudVisionV1Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Feature
class GoogleCloudVisionV1ImageContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class GoogleCloudVisionV1ImageProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageContext
class GoogleCloudVisionV1ImageSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageProperties
class GoogleCloudVisionV1LatLongRect
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageSource
class GoogleCloudVisionV1LocationInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Landmark
class GoogleCloudVisionV1Page
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LatLng
class GoogleCloudVisionV1Paragraph
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LatLongRect
class GoogleCloudVisionV1Position
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationInfo
class GoogleCloudVisionV1Property
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Page
class GoogleCloudVisionV1SafeSearchAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Paragraph
class GoogleCloudVisionV1Symbol
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Position
class GoogleCloudVisionV1TextAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Property
class GoogleCloudVisionV1TextAnnotationDetectedBreak
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SafeSearchAnnotation
class GoogleCloudVisionV1TextAnnotationDetectedLanguage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class GoogleCloudVisionV1TextAnnotationTextProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Symbol
class GoogleCloudVisionV1Vertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextAnnotation
class GoogleCloudVisionV1WebDetection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextProperty
class GoogleCloudVisionV1WebDetectionWebEntity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Vertex
class GoogleCloudVisionV1WebDetectionWebImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebDetection
class GoogleCloudVisionV1WebDetectionWebPage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebEntity
class GoogleCloudVisionV1Word
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebImage
class GoogleRpcStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebPage
class GoogleTypeColor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Word
class GoogleTypeLatLng
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotateImageRequest
class GoogleCloudVisionV1AnnotateImageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :features, as: 'features', class: Google::Apis::VisionV1::Feature, decorator: Google::Apis::VisionV1::Feature::Representation
collection :features, as: 'features', class: Google::Apis::VisionV1::GoogleCloudVisionV1Feature, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Feature::Representation
property :image, as: 'image', class: Google::Apis::VisionV1::Image, decorator: Google::Apis::VisionV1::Image::Representation
property :image, as: 'image', class: Google::Apis::VisionV1::GoogleCloudVisionV1Image, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Image::Representation
property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation
property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::GoogleCloudVisionV1ImageContext, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1ImageContext::Representation
end
end
class AnnotateImageResponse
class GoogleCloudVisionV1AnnotateImageResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::CropHintsAnnotation, decorator: Google::Apis::VisionV1::CropHintsAnnotation::Representation
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1CropHintsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1CropHintsAnnotation::Representation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :error, as: 'error', class: Google::Apis::VisionV1::GoogleRpcStatus, decorator: Google::Apis::VisionV1::GoogleRpcStatus::Representation
collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::FaceAnnotation, decorator: Google::Apis::VisionV1::FaceAnnotation::Representation
collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1FaceAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1FaceAnnotation::Representation
property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::TextAnnotation, decorator: Google::Apis::VisionV1::TextAnnotation::Representation
property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotation::Representation
property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::ImageProperties, decorator: Google::Apis::VisionV1::ImageProperties::Representation
property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1ImageProperties::Representation
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation::Representation
collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation::Representation
collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation::Representation
property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1::SafeSearchAnnotation::Representation
property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1SafeSearchAnnotation::Representation
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1EntityAnnotation::Representation
property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::WebDetection, decorator: Google::Apis::VisionV1::WebDetection::Representation
property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetection, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetection::Representation
end
end
class BatchAnnotateImagesRequest
class GoogleCloudVisionV1BatchAnnotateImagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation
collection :requests, as: 'requests', class: Google::Apis::VisionV1::GoogleCloudVisionV1AnnotateImageRequest, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1AnnotateImageRequest::Representation
end
end
class BatchAnnotateImagesResponse
class GoogleCloudVisionV1BatchAnnotateImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1AnnotateImageResponse::Representation
end
end
class Block
class GoogleCloudVisionV1Block
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :block_type, as: 'blockType'
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::Paragraph, decorator: Google::Apis::VisionV1::Paragraph::Representation
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::GoogleCloudVisionV1Paragraph, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Paragraph::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty::Representation
end
end
class BoundingPoly
class GoogleCloudVisionV1BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::Vertex, decorator: Google::Apis::VisionV1::Vertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Vertex::Representation
end
end
class Color
class GoogleCloudVisionV1ColorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alpha, as: 'alpha'
property :blue, as: 'blue'
property :green, as: 'green'
property :red, as: 'red'
end
end
class ColorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation
property :color, as: 'color', class: Google::Apis::VisionV1::GoogleTypeColor, decorator: Google::Apis::VisionV1::GoogleTypeColor::Representation
property :pixel_fraction, as: 'pixelFraction'
property :score, as: 'score'
end
end
class CropHint
class GoogleCloudVisionV1CropHint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :confidence, as: 'confidence'
property :importance_fraction, as: 'importanceFraction'
end
end
class CropHintsAnnotation
class GoogleCloudVisionV1CropHintsAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::CropHint, decorator: Google::Apis::VisionV1::CropHint::Representation
collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::GoogleCloudVisionV1CropHint, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1CropHint::Representation
end
end
class CropHintsParams
class GoogleCloudVisionV1CropHintsParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :aspect_ratios, as: 'aspectRatios'
end
end
class DetectedBreak
class GoogleCloudVisionV1DominantColorsAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_prefix, as: 'isPrefix'
property :type, as: 'type'
end
end
class DetectedLanguage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :language_code, as: 'languageCode'
end
end
class DominantColorsAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :colors, as: 'colors', class: Google::Apis::VisionV1::ColorInfo, decorator: Google::Apis::VisionV1::ColorInfo::Representation
collection :colors, as: 'colors', class: Google::Apis::VisionV1::GoogleCloudVisionV1ColorInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1ColorInfo::Representation
end
end
class EntityAnnotation
class GoogleCloudVisionV1EntityAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :confidence, as: 'confidence'
property :description, as: 'description'
property :locale, as: 'locale'
collection :locations, as: 'locations', class: Google::Apis::VisionV1::LocationInfo, decorator: Google::Apis::VisionV1::LocationInfo::Representation
collection :locations, as: 'locations', class: Google::Apis::VisionV1::GoogleCloudVisionV1LocationInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1LocationInfo::Representation
property :mid, as: 'mid'
collection :properties, as: 'properties', class: Google::Apis::VisionV1::Property, decorator: Google::Apis::VisionV1::Property::Representation
collection :properties, as: 'properties', class: Google::Apis::VisionV1::GoogleCloudVisionV1Property, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Property::Representation
property :score, as: 'score'
property :topicality, as: 'topicality'
end
end
class FaceAnnotation
class GoogleCloudVisionV1FaceAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :anger_likelihood, as: 'angerLikelihood'
property :blurred_likelihood, as: 'blurredLikelihood'
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :detection_confidence, as: 'detectionConfidence'
property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :headwear_likelihood, as: 'headwearLikelihood'
property :joy_likelihood, as: 'joyLikelihood'
property :landmarking_confidence, as: 'landmarkingConfidence'
collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation
collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1FaceAnnotationLandmark::Representation
property :pan_angle, as: 'panAngle'
property :roll_angle, as: 'rollAngle'
@@ -450,7 +424,16 @@ module Google
end
end
class Feature
class GoogleCloudVisionV1FaceAnnotationLandmark
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :position, as: 'position', class: Google::Apis::VisionV1::GoogleCloudVisionV1Position, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Position::Representation
property :type, as: 'type'
end
end
class GoogleCloudVisionV1Feature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_results, as: 'maxResults'
@@ -458,35 +441,35 @@ module Google
end
end
class Image
class GoogleCloudVisionV1Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, :base64 => true, as: 'content'
property :source, as: 'source', class: Google::Apis::VisionV1::ImageSource, decorator: Google::Apis::VisionV1::ImageSource::Representation
property :source, as: 'source', class: Google::Apis::VisionV1::GoogleCloudVisionV1ImageSource, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1ImageSource::Representation
end
end
class ImageContext
class GoogleCloudVisionV1ImageContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::CropHintsParams, decorator: Google::Apis::VisionV1::CropHintsParams::Representation
property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::GoogleCloudVisionV1CropHintsParams, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1CropHintsParams::Representation
collection :language_hints, as: 'languageHints'
property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation
property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::GoogleCloudVisionV1LatLongRect, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1LatLongRect::Representation
end
end
class ImageProperties
class GoogleCloudVisionV1ImageProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1::DominantColorsAnnotation::Representation
property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::GoogleCloudVisionV1DominantColorsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1DominantColorsAnnotation::Representation
end
end
class ImageSource
class GoogleCloudVisionV1ImageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_image_uri, as: 'gcsImageUri'
@@ -494,66 +477,49 @@ module Google
end
end
class Landmark
class GoogleCloudVisionV1LatLongRect
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :position, as: 'position', class: Google::Apis::VisionV1::Position, decorator: Google::Apis::VisionV1::Position::Representation
property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1::GoogleTypeLatLng, decorator: Google::Apis::VisionV1::GoogleTypeLatLng::Representation
property :type, as: 'type'
end
end
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
class LatLongRect
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1::GoogleTypeLatLng, decorator: Google::Apis::VisionV1::GoogleTypeLatLng::Representation
end
end
class LocationInfo
class GoogleCloudVisionV1LocationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::GoogleTypeLatLng, decorator: Google::Apis::VisionV1::GoogleTypeLatLng::Representation
end
end
class Page
class GoogleCloudVisionV1Page
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::GoogleCloudVisionV1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Block::Representation
property :height, as: 'height'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty::Representation
property :width, as: 'width'
end
end
class Paragraph
class GoogleCloudVisionV1Paragraph
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty::Representation
collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation
collection :words, as: 'words', class: Google::Apis::VisionV1::GoogleCloudVisionV1Word, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Word::Representation
end
end
class Position
class GoogleCloudVisionV1Position
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
@@ -562,7 +528,7 @@ module Google
end
end
class Property
class GoogleCloudVisionV1Property
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
@@ -571,7 +537,7 @@ module Google
end
end
class SafeSearchAnnotation
class GoogleCloudVisionV1SafeSearchAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :adult, as: 'adult'
@@ -581,46 +547,53 @@ module Google
end
end
class Status
class GoogleCloudVisionV1Symbol
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
class Symbol
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty::Representation
property :text, as: 'text'
end
end
class TextAnnotation
class GoogleCloudVisionV1TextAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :pages, as: 'pages', class: Google::Apis::VisionV1::Page, decorator: Google::Apis::VisionV1::Page::Representation
collection :pages, as: 'pages', class: Google::Apis::VisionV1::GoogleCloudVisionV1Page, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Page::Representation
property :text, as: 'text'
end
end
class TextProperty
class GoogleCloudVisionV1TextAnnotationDetectedBreak
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::DetectedBreak, decorator: Google::Apis::VisionV1::DetectedBreak::Representation
property :is_prefix, as: 'isPrefix'
property :type, as: 'type'
end
end
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::DetectedLanguage, decorator: Google::Apis::VisionV1::DetectedLanguage::Representation
class GoogleCloudVisionV1TextAnnotationDetectedLanguage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :language_code, as: 'languageCode'
end
end
class GoogleCloudVisionV1TextAnnotationTextProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationDetectedBreak::Representation
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationDetectedLanguage::Representation
end
end
class Vertex
class GoogleCloudVisionV1Vertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
@@ -628,23 +601,23 @@ module Google
end
end
class WebDetection
class GoogleCloudVisionV1WebDetection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage::Representation
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebPage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebPage::Representation
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage::Representation
collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebImage::Representation
collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::WebEntity, decorator: Google::Apis::VisionV1::WebEntity::Representation
collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebEntity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1WebDetectionWebEntity::Representation
end
end
class WebEntity
class GoogleCloudVisionV1WebDetectionWebEntity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
@@ -653,7 +626,7 @@ module Google
end
end
class WebImage
class GoogleCloudVisionV1WebDetectionWebImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :score, as: 'score'
@@ -661,7 +634,7 @@ module Google
end
end
class WebPage
class GoogleCloudVisionV1WebDetectionWebPage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :score, as: 'score'
@@ -669,17 +642,44 @@ module Google
end
end
class Word
class GoogleCloudVisionV1Word
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1BoundingPoly::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty::Representation
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::GoogleCloudVisionV1Symbol, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1Symbol::Representation
end
end
class GoogleRpcStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class GoogleTypeColor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alpha, as: 'alpha'
property :blue, as: 'blue'
property :green, as: 'green'
property :red, as: 'red'
end
end
class GoogleTypeLatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
end
end
end
+8 -8
View File
@@ -50,7 +50,7 @@ module Google
end
# Run image detection and annotation for a batch of images.
# @param [Google::Apis::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
# @param [Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesRequest] google_cloud_vision_v1_batch_annotate_images_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -60,20 +60,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VisionV1::BatchAnnotateImagesResponse] parsed result object
# @yieldparam result [Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VisionV1::BatchAnnotateImagesResponse]
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def annotate_image(batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def annotate_image(google_cloud_vision_v1_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/images:annotate', options)
command.request_representation = Google::Apis::VisionV1::BatchAnnotateImagesRequest::Representation
command.request_object = batch_annotate_images_request_object
command.response_representation = Google::Apis::VisionV1::BatchAnnotateImagesResponse::Representation
command.response_class = Google::Apis::VisionV1::BatchAnnotateImagesResponse
command.request_representation = Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesRequest::Representation
command.request_object = google_cloud_vision_v1_batch_annotate_images_request_object
command.response_representation = Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesResponse::Representation
command.response_class = Google::Apis::VisionV1::GoogleCloudVisionV1BatchAnnotateImagesResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)