From 4844385713a5d2173dd4dfbdcd832cd13e7789b3 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 7 Nov 2019 00:37:37 +0000 Subject: [PATCH] Autogenerated update (2019-11-07) Update: - bigquery_v2 - vision_v1 - vision_v1p1beta1 --- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 33 ++++++++++ .../apis/bigquery_v2/representations.rb | 18 +++++ generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/classes.rb | 66 +++++++++++++++++++ .../google/apis/vision_v1/representations.rb | 32 +++++++++ generated/google/apis/vision_v1p1beta1.rb | 2 +- .../google/apis/vision_v1p1beta1/classes.rb | 66 +++++++++++++++++++ .../apis/vision_v1p1beta1/representations.rb | 32 +++++++++ 9 files changed, 250 insertions(+), 3 deletions(-) diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index b0a8bc52c..f8fc9b609 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20191011' + REVISION = '20191019' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 0ce3db52e..25779c087 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1038,6 +1038,32 @@ module Google end end + # Data split result. This contains references to the training and evaluation + # data tables that were used to train the model. + class DataSplitResult + include Google::Apis::Core::Hashable + + # Table reference of the evaluation data after split. + # Corresponds to the JSON property `evaluationTable` + # @return [Google::Apis::BigqueryV2::TableReference] + attr_accessor :evaluation_table + + # Table reference of the training data after split. + # Corresponds to the JSON property `trainingTable` + # @return [Google::Apis::BigqueryV2::TableReference] + attr_accessor :training_table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @evaluation_table = args[:evaluation_table] if args.key?(:evaluation_table) + @training_table = args[:training_table] if args.key?(:training_table) + end + end + # class Dataset include Google::Apis::Core::Hashable @@ -5740,6 +5766,12 @@ module Google class TrainingRun include Google::Apis::Core::Hashable + # Data split result. This contains references to the training and evaluation + # data tables that were used to train the model. + # Corresponds to the JSON property `dataSplitResult` + # @return [Google::Apis::BigqueryV2::DataSplitResult] + attr_accessor :data_split_result + # Evaluation metrics of a model. These are either computed on all training # data or just the eval data based on whether eval data was used during # training. These are not present for imported models. @@ -5769,6 +5801,7 @@ module Google # Update properties of this object def update!(**args) + @data_split_result = args[:data_split_result] if args.key?(:data_split_result) @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics) @results = args[:results] if args.key?(:results) @start_time = args[:start_time] if args.key?(:start_time) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 1a3d168fb..1383d3616 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DataSplitResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Dataset class Representation < Google::Apis::Core::JsonRepresentation; end @@ -941,6 +947,16 @@ module Google end end + class DataSplitResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :evaluation_table, as: 'evaluationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + + property :training_table, as: 'trainingTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + + end + end + class Dataset # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2083,6 +2099,8 @@ module Google class TrainingRun # @private class Representation < Google::Apis::Core::JsonRepresentation + property :data_split_result, as: 'dataSplitResult', class: Google::Apis::BigqueryV2::DataSplitResult, decorator: Google::Apis::BigqueryV2::DataSplitResult::Representation + property :evaluation_metrics, as: 'evaluationMetrics', class: Google::Apis::BigqueryV2::EvaluationMetrics, decorator: Google::Apis::BigqueryV2::EvaluationMetrics::Representation collection :results, as: 'results', class: Google::Apis::BigqueryV2::IterationResult, decorator: Google::Apis::BigqueryV2::IterationResult::Representation diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index f51334843..2a9523203 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20191011' + REVISION = '20191105' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index f69267666..9fe96ff6b 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -7251,6 +7251,38 @@ module Google end end + # A Celebrity is a group of Faces with an identity. + class GoogleCloudVisionV1p4beta1Celebrity + include Google::Apis::Core::Hashable + + # The Celebrity's description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The Celebrity's display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the preloaded Celebrity. Has the format + # `builtin/`mid``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + # Color information consists of RGB channels, score, and the fraction of # the image that the color occupies in the image. class GoogleCloudVisionV1p4beta1ColorInfo @@ -7595,6 +7627,14 @@ module Google # @return [Float] attr_accessor :pan_angle + # Additional recognition information. Only computed if + # image_context.face_recognition_params is provided, **and** a match is found + # to a Celebrity in the input CelebritySet. This field is + # sorted in order of decreasing confidence values. + # Corresponds to the JSON property `recognitionResult` + # @return [Array] + attr_accessor :recognition_result + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation # of the face relative to the image vertical about the axis perpendicular to # the face. Range [-180,180]. @@ -7639,6 +7679,7 @@ module Google @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) @landmarks = args[:landmarks] if args.key?(:landmarks) @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @recognition_result = args[:recognition_result] if args.key?(:recognition_result) @roll_angle = args[:roll_angle] if args.key?(:roll_angle) @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) @@ -7674,6 +7715,31 @@ module Google end end + # Information about a face's identity. + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + include Google::Apis::Core::Hashable + + # A Celebrity is a group of Faces with an identity. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # The Google Cloud Storage location where the output will be written to. class GoogleCloudVisionV1p4beta1GcsDestination include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index c7d4c5ae7..ee7ac9f63 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -1120,6 +1120,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p4beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p4beta1ColorInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1162,6 +1168,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p4beta1GcsDestination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3687,6 +3699,15 @@ module Google end end + class GoogleCloudVisionV1p4beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + class GoogleCloudVisionV1p4beta1ColorInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3757,6 +3778,8 @@ module Google collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark::Representation property :pan_angle, as: 'panAngle' + collection :recognition_result, as: 'recognitionResult', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult::Representation + property :roll_angle, as: 'rollAngle' property :sorrow_likelihood, as: 'sorrowLikelihood' property :surprise_likelihood, as: 'surpriseLikelihood' @@ -3774,6 +3797,15 @@ module Google end end + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVisionV1p4beta1GcsDestination # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index 851fd40a4..3b62168c6 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20191011' + REVISION = '20191105' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index 46bb2305b..038c2c979 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -7442,6 +7442,38 @@ module Google end end + # A Celebrity is a group of Faces with an identity. + class GoogleCloudVisionV1p4beta1Celebrity + include Google::Apis::Core::Hashable + + # The Celebrity's description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The Celebrity's display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the preloaded Celebrity. Has the format + # `builtin/`mid``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + # Color information consists of RGB channels, score, and the fraction of # the image that the color occupies in the image. class GoogleCloudVisionV1p4beta1ColorInfo @@ -7786,6 +7818,14 @@ module Google # @return [Float] attr_accessor :pan_angle + # Additional recognition information. Only computed if + # image_context.face_recognition_params is provided, **and** a match is found + # to a Celebrity in the input CelebritySet. This field is + # sorted in order of decreasing confidence values. + # Corresponds to the JSON property `recognitionResult` + # @return [Array] + attr_accessor :recognition_result + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation # of the face relative to the image vertical about the axis perpendicular to # the face. Range [-180,180]. @@ -7830,6 +7870,7 @@ module Google @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) @landmarks = args[:landmarks] if args.key?(:landmarks) @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @recognition_result = args[:recognition_result] if args.key?(:recognition_result) @roll_angle = args[:roll_angle] if args.key?(:roll_angle) @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) @@ -7865,6 +7906,31 @@ module Google end end + # Information about a face's identity. + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + include Google::Apis::Core::Hashable + + # A Celebrity is a group of Faces with an identity. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # The Google Cloud Storage location where the output will be written to. class GoogleCloudVisionV1p4beta1GcsDestination include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb index 4cd0e9f0e..9322aefed 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -1144,6 +1144,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p4beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p4beta1ColorInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1186,6 +1192,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p4beta1GcsDestination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3652,6 +3664,15 @@ module Google end end + class GoogleCloudVisionV1p4beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + class GoogleCloudVisionV1p4beta1ColorInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3722,6 +3743,8 @@ module Google collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark::Representation property :pan_angle, as: 'panAngle' + collection :recognition_result, as: 'recognitionResult', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult::Representation + property :roll_angle, as: 'rollAngle' property :sorrow_likelihood, as: 'sorrowLikelihood' property :surprise_likelihood, as: 'surpriseLikelihood' @@ -3739,6 +3762,15 @@ module Google end end + class GoogleCloudVisionV1p4beta1FaceRecognitionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVisionV1p4beta1GcsDestination # @private class Representation < Google::Apis::Core::JsonRepresentation