Autogenerated update (2018-11-14)

Update:
- pubsub_v1
- toolresults_v1beta3
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
This commit is contained in:
Google APIs 2018-11-14 00:36:33 +00:00
parent d246dedd60
commit 2b3c5faf5c
14 changed files with 254 additions and 77 deletions

View File

@ -91968,6 +91968,8 @@
"/vision:v1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph
"/vision:v1/GoogleCloudVisionV1p1beta1Block/property": property
"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly
"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices
"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices
"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex
"/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info
@ -92036,6 +92038,9 @@
"/vision:v1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score
"/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info
"/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng
"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex
"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x
"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y
"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata
"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time
"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state
@ -93086,6 +93091,8 @@
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Block/property": property
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info
@ -93177,6 +93184,9 @@
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state
@ -94095,6 +94105,8 @@
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/property": property
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info
@ -94163,6 +94175,9 @@
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time
"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs
module PubsubV1
VERSION = 'V1'
REVISION = '20181105'
REVISION = '20181107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -527,7 +527,11 @@ module Google
# A message that is published by publishers and consumed by subscribers. The
# message must contain either a non-empty data field or at least one attribute.
# See <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# Note that client libraries represent this object differently
# depending on the language. See the corresponding
# <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
# library documentation</a> for more information. See
# <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# for more information about message limits.
class Message
include Google::Apis::Core::Hashable
@ -676,7 +680,11 @@ module Google
# A message that is published by publishers and consumed by subscribers. The
# message must contain either a non-empty data field or at least one attribute.
# See <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# Note that client libraries represent this object differently
# depending on the language. See the corresponding
# <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
# library documentation</a> for more information. See
# <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# for more information about message limits.
# Corresponds to the JSON property `message`
# @return [Google::Apis::PubsubV1::Message]

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3
VERSION = 'V1beta3'
REVISION = '20181015'
REVISION = '20181112'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -544,16 +544,17 @@ module Google
class Execution
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -600,16 +601,17 @@ module Google
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
attr_accessor :completion_time
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -1397,16 +1399,17 @@ module Google
class PerfSample
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -1807,16 +1810,17 @@ module Google
class Step
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -1863,16 +1867,17 @@ module Google
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
attr_accessor :completion_time
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -2501,16 +2506,17 @@ module Google
end
end
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
@ -2676,16 +2682,17 @@ module Google
class ToolOutputReference
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or
# calendar, represented as seconds and fractions of seconds at nanosecond
# resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
# Calendar which extends the Gregorian calendar backwards to year one. It is
# encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "
# smeared" so that no leap second table is needed for interpretation. Range is
# from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to
# that range, we ensure that we can convert to and from RFC 3339 date strings.
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.
# txt).
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
# backwards to year one.
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
# second table is needed for interpretation, using a [24-hour linear smear](
# https://developers.google.com/time/smear).
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
# restricting to that range, we ensure that we can convert to and from [RFC 3339]
# (https://www.ietf.org/rfc/rfc3339.txt) date strings.
# # Examples
# Example 1: Compute Timestamp from POSIX `time()`.
# Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20181031'
REVISION = '20181112'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1469,6 +1469,11 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
include Google::Apis::Core::Hashable
# The bounding polygon normalized vertices.
# Corresponds to the JSON property `normalizedVertices`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1NormalizedVertex>]
attr_accessor :normalized_vertices
# The bounding polygon vertices.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex>]
@ -1480,6 +1485,7 @@ module Google
# Update properties of this object
def update!(**args)
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
@ -2093,6 +2099,33 @@ module Google
end
end
# A vertex represents a 2D point in the image.
# NOTE: the normalized vertex coordinates are relative to the original image
# and range from 0 to 1.
class GoogleCloudVisionV1p1beta1NormalizedVertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p1beta1OperationMetadata
include Google::Apis::Core::Hashable

View File

@ -310,6 +310,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1685,6 +1691,8 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex::Representation
end
@ -1836,6 +1844,14 @@ module Google
end
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
property :y, as: 'y'
end
end
class GoogleCloudVisionV1p1beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20181031'
REVISION = '20181112'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1356,6 +1356,11 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
include Google::Apis::Core::Hashable
# The bounding polygon normalized vertices.
# Corresponds to the JSON property `normalizedVertices`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1NormalizedVertex>]
attr_accessor :normalized_vertices
# The bounding polygon vertices.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Vertex>]
@ -1367,6 +1372,7 @@ module Google
# Update properties of this object
def update!(**args)
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
@ -2193,6 +2199,33 @@ module Google
end
end
# A vertex represents a 2D point in the image.
# NOTE: the normalized vertex coordinates are relative to the original image
# and range from 0 to 1.
class GoogleCloudVisionV1p1beta1NormalizedVertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p1beta1OperationMetadata
include Google::Apis::Core::Hashable

View File

@ -316,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1572,6 +1578,8 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Vertex::Representation
end
@ -1781,6 +1789,14 @@ module Google
end
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
property :y, as: 'y'
end
end
class GoogleCloudVisionV1p1beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20181031'
REVISION = '20181112'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1229,6 +1229,11 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
include Google::Apis::Core::Hashable
# The bounding polygon normalized vertices.
# Corresponds to the JSON property `normalizedVertices`
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1NormalizedVertex>]
attr_accessor :normalized_vertices
# The bounding polygon vertices.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex>]
@ -1240,6 +1245,7 @@ module Google
# Update properties of this object
def update!(**args)
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
@ -1853,6 +1859,33 @@ module Google
end
end
# A vertex represents a 2D point in the image.
# NOTE: the normalized vertex coordinates are relative to the original image
# and range from 0 to 1.
class GoogleCloudVisionV1p1beta1NormalizedVertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p1beta1OperationMetadata
include Google::Apis::Core::Hashable

View File

@ -250,6 +250,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1522,6 +1528,8 @@ module Google
class GoogleCloudVisionV1p1beta1BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex::Representation
end
@ -1673,6 +1681,14 @@ module Google
end
end
class GoogleCloudVisionV1p1beta1NormalizedVertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
property :y, as: 'y'
end
end
class GoogleCloudVisionV1p1beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation