From 1f467e9f09677b92791c4d0fb18ad0389805d9f5 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 6 Nov 2019 00:37:09 +0000 Subject: [PATCH] Autogenerated update (2019-11-06) Update: - dlp_v2 - recommender_v1beta1 - redis_v1 - vision_v1p2beta1 --- generated/google/apis/dlp_v2.rb | 2 +- generated/google/apis/dlp_v2/classes.rb | 25 +++++ .../google/apis/dlp_v2/representations.rb | 14 +++ generated/google/apis/dlp_v2/service.rb | 98 +++++++++++-------- generated/google/apis/recommender_v1beta1.rb | 2 +- generated/google/apis/redis_v1.rb | 2 +- generated/google/apis/redis_v1/classes.rb | 22 ++--- generated/google/apis/redis_v1/service.rb | 10 +- generated/google/apis/vision_v1p2beta1.rb | 2 +- .../google/apis/vision_v1p2beta1/classes.rb | 66 +++++++++++++ .../apis/vision_v1p2beta1/representations.rb | 32 ++++++ 11 files changed, 212 insertions(+), 63 deletions(-) diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 7de3af72b..046db8e4c 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20191027' + REVISION = '20191102' # 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/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 6331fe01c..07e23cb5e 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -70,6 +70,14 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc] attr_accessor :publish_summary_to_cscc + # Enable Stackdriver metric dlp.googleapis.com/finding_count. This + # will publish a metric to stack driver on each infotype requested and + # how many findings were found for it. CustomDetectors will be bucketed + # as 'Custom' under the Stackdriver label 'info_type'. + # Corresponds to the JSON property `publishToStackdriver` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver] + attr_accessor :publish_to_stackdriver + # If set, the detailed findings will be persisted to the specified # OutputStorageConfig. Only a single instance of this action can be # specified. @@ -88,6 +96,7 @@ module Google @pub_sub = args[:pub_sub] if args.key?(:pub_sub) @publish_findings_to_cloud_data_catalog = args[:publish_findings_to_cloud_data_catalog] if args.key?(:publish_findings_to_cloud_data_catalog) @publish_summary_to_cscc = args[:publish_summary_to_cscc] if args.key?(:publish_summary_to_cscc) + @publish_to_stackdriver = args[:publish_to_stackdriver] if args.key?(:publish_to_stackdriver) @save_findings = args[:save_findings] if args.key?(:save_findings) end end @@ -4427,6 +4436,22 @@ module Google end end + # Enable Stackdriver metric dlp.googleapis.com/finding_count. This + # will publish a metric to stack driver on each infotype requested and + # how many findings were found for it. CustomDetectors will be bucketed + # as 'Custom' under the Stackdriver label 'info_type'. + class GooglePrivacyDlpV2PublishToStackdriver + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A column with a semantic tag attached. class GooglePrivacyDlpV2QuasiId include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index e57f7c8bb..082038582 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -742,6 +742,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2PublishToStackdriver + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2QuasiId class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1083,6 +1089,8 @@ module Google property :publish_summary_to_cscc, as: 'publishSummaryToCscc', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc::Representation + property :publish_to_stackdriver, as: 'publishToStackdriver', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver::Representation + property :save_findings, as: 'saveFindings', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings::Representation end @@ -2323,6 +2331,12 @@ module Google end end + class GooglePrivacyDlpV2PublishToStackdriver + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GooglePrivacyDlpV2QuasiId # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dlp_v2/service.rb b/generated/google/apis/dlp_v2/service.rb index 4041e12e8..d6410c05d 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -138,7 +138,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields @@ -174,7 +174,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of the organization and deidentify template to be deleted, + # Required. Resource name of the organization and deidentify template to be + # deleted, # for example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [String] fields @@ -208,7 +209,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of the organization and deidentify template to be read, for + # Required. Resource name of the organization and deidentify template to be read, + # for # example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [String] fields @@ -242,7 +244,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -295,7 +297,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of organization and deidentify template to be updated, for + # Required. Resource name of organization and deidentify template to be updated, + # for # example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object @@ -332,7 +335,7 @@ module Google # for inspecting content, images, and storage. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields @@ -367,7 +370,8 @@ module Google # Deletes an InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of the organization and inspectTemplate to be deleted, for + # Required. Resource name of the organization and inspectTemplate to be deleted, + # for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [String] fields @@ -400,7 +404,8 @@ module Google # Gets an InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of the organization and inspectTemplate to be read, for + # Required. Resource name of the organization and inspectTemplate to be read, + # for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [String] fields @@ -433,7 +438,7 @@ module Google # Lists InspectTemplates. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -485,7 +490,7 @@ module Google # Updates the InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of organization and inspectTemplate to be updated, for + # Required. Resource name of organization and inspectTemplate to be updated, for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object @@ -522,7 +527,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields @@ -558,7 +563,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of the organization and storedInfoType to be deleted, for + # Required. Resource name of the organization and storedInfoType to be deleted, + # for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [String] fields @@ -592,7 +598,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of the organization and storedInfoType to be read, for + # Required. Resource name of the organization and storedInfoType to be read, for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [String] fields @@ -626,7 +632,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -681,7 +687,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of organization and storedInfoType to be updated, for + # Required. Resource name of organization and storedInfoType to be updated, for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object @@ -798,7 +804,7 @@ module Google # identification_in_free_text_code_example # to learn more. # @param [String] parent - # The parent resource name. + # Required. The parent resource name. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -834,7 +840,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields @@ -870,7 +876,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of the organization and deidentify template to be deleted, + # Required. Resource name of the organization and deidentify template to be + # deleted, # for example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [String] fields @@ -904,7 +911,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of the organization and deidentify template to be read, for + # Required. Resource name of the organization and deidentify template to be read, + # for # example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [String] fields @@ -938,7 +946,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -991,7 +999,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # more. # @param [String] name - # Resource name of organization and deidentify template to be updated, for + # Required. Resource name of organization and deidentify template to be updated, + # for # example `organizations/433245324/deidentifyTemplates/432452342` or # projects/project-id/deidentifyTemplates/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object @@ -1030,7 +1039,7 @@ module Google # See https://cloud.google.com/dlp/docs/inspecting-storage and # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # @param [String] name - # The name of the DlpJob resource to be cancelled. + # Required. The name of the DlpJob resource to be cancelled. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1068,7 +1077,7 @@ module Google # system will automatically choose what detectors to run. By default this may # be all types, but may change over time as detectors are updated. # @param [String] parent - # The parent resource name, for example projects/my-project-id. + # Required. The parent resource name, for example projects/my-project-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1105,7 +1114,7 @@ module Google # See https://cloud.google.com/dlp/docs/inspecting-storage and # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # @param [String] name - # The name of the DlpJob resource to be deleted. + # Required. The name of the DlpJob resource to be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1137,7 +1146,7 @@ module Google # See https://cloud.google.com/dlp/docs/inspecting-storage and # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # @param [String] name - # The name of the DlpJob resource. + # Required. The name of the DlpJob resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1169,7 +1178,7 @@ module Google # See https://cloud.google.com/dlp/docs/inspecting-storage and # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id. + # Required. The parent resource name, for example projects/my-project-id. # @param [String] filter # Optional. Allows filtering. # Supported syntax: @@ -1286,7 +1295,7 @@ module Google # for inspecting content, images, and storage. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields @@ -1321,7 +1330,8 @@ module Google # Deletes an InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of the organization and inspectTemplate to be deleted, for + # Required. Resource name of the organization and inspectTemplate to be deleted, + # for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [String] fields @@ -1354,7 +1364,8 @@ module Google # Gets an InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of the organization and inspectTemplate to be read, for + # Required. Resource name of the organization and inspectTemplate to be read, + # for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [String] fields @@ -1387,7 +1398,7 @@ module Google # Lists InspectTemplates. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -1439,7 +1450,7 @@ module Google # Updates the InspectTemplate. # See https://cloud.google.com/dlp/docs/creating-templates to learn more. # @param [String] name - # Resource name of organization and inspectTemplate to be updated, for + # Required. Resource name of organization and inspectTemplate to be updated, for # example `organizations/433245324/inspectTemplates/432452342` or # projects/project-id/inspectTemplates/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object @@ -1475,7 +1486,7 @@ module Google # Activate a job trigger. Causes the immediate execute of a trigger # instead of waiting on the trigger event to occur. # @param [String] name - # Resource name of the trigger to activate, for example + # Required. Resource name of the trigger to activate, for example # `projects/dlp-test-project/jobTriggers/53234423`. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object # @param [String] fields @@ -1511,7 +1522,7 @@ module Google # sensitive information on a set schedule. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id. + # Required. The parent resource name, for example projects/my-project-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1545,7 +1556,7 @@ module Google # Deletes a job trigger. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # @param [String] name - # Resource name of the project and the triggeredJob, for example + # Required. Resource name of the project and the triggeredJob, for example # `projects/dlp-test-project/jobTriggers/53234423`. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1577,7 +1588,7 @@ module Google # Gets a job trigger. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # @param [String] name - # Resource name of the project and the triggeredJob, for example + # Required. Resource name of the project and the triggeredJob, for example # `projects/dlp-test-project/jobTriggers/53234423`. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1609,7 +1620,7 @@ module Google # Lists job triggers. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # @param [String] parent - # The parent resource name, for example `projects/my-project-id`. + # Required. The parent resource name, for example `projects/my-project-id`. # @param [String] filter # Optional. Allows filtering. # Supported syntax: @@ -1683,7 +1694,7 @@ module Google # Updates a job trigger. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # @param [String] name - # Resource name of the project and the triggeredJob, for example + # Required. Resource name of the project and the triggeredJob, for example # `projects/dlp-test-project/jobTriggers/53234423`. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object # @param [String] fields @@ -1807,7 +1818,7 @@ module Google # identification_in_free_text_code_example # to learn more. # @param [String] parent - # The parent resource name. + # Required. The parent resource name. # @param [String] location # The geographic location to process content reidentification. Reserved for # future extensions. @@ -1889,7 +1900,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields @@ -1925,7 +1936,8 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of the organization and storedInfoType to be deleted, for + # Required. Resource name of the organization and storedInfoType to be deleted, + # for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [String] fields @@ -1959,7 +1971,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of the organization and storedInfoType to be read, for + # Required. Resource name of the organization and storedInfoType to be read, for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [String] fields @@ -1993,7 +2005,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] parent - # The parent resource name, for example projects/my-project-id or + # Required. The parent resource name, for example projects/my-project-id or # organizations/my-org-id. # @param [String] order_by # Optional comma separated list of fields to order by, @@ -2048,7 +2060,7 @@ module Google # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. # @param [String] name - # Resource name of organization and storedInfoType to be updated, for + # Required. Resource name of organization and storedInfoType to be updated, for # example `organizations/433245324/storedInfoTypes/432452342` or # projects/project-id/storedInfoTypes/432452342. # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object diff --git a/generated/google/apis/recommender_v1beta1.rb b/generated/google/apis/recommender_v1beta1.rb index 8a4effd68..91ccd1c21 100644 --- a/generated/google/apis/recommender_v1beta1.rb +++ b/generated/google/apis/recommender_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/recommender/docs/ module RecommenderV1beta1 VERSION = 'V1beta1' - REVISION = '20190922' + REVISION = '20191102' # 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/redis_v1.rb b/generated/google/apis/redis_v1.rb index c846c8cc5..47ffe4fda 100644 --- a/generated/google/apis/redis_v1.rb +++ b/generated/google/apis/redis_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1 VERSION = 'V1' - REVISION = '20190620' + REVISION = '20191104' # 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/redis_v1/classes.rb b/generated/google/apis/redis_v1/classes.rb index ed55dca3b..1c85157b9 100644 --- a/generated/google/apis/redis_v1/classes.rb +++ b/generated/google/apis/redis_v1/classes.rb @@ -258,7 +258,7 @@ module Google # Optional. Only applicable to STANDARD_HA tier which protects the instance # against zonal failures by provisioning it across two zones. If provided, it - # must be a different zone from the one provided in [location_id]. + # must be a different zone from the one provided in location_id. # Corresponds to the JSON property `alternativeLocationId` # @return [String] attr_accessor :alternative_location_id @@ -277,9 +277,9 @@ module Google attr_accessor :create_time # Output only. The current zone where the Redis endpoint is placed. For Basic - # Tier instances, this will always be the same as the [location_id] + # Tier instances, this will always be the same as the location_id # provided by the user at creation time. For Standard Tier instances, - # this can be either [location_id] or [alternative_location_id] and can + # this can be either location_id or alternative_location_id and can # change after a failover event. # Corresponds to the JSON property `currentLocationId` # @return [String] @@ -304,8 +304,8 @@ module Google # Optional. The zone where the instance will be provisioned. If not provided, # the service will choose a zone for the instance. For STANDARD_HA tier, # instances will be created across two zones for protection against zonal - # failures. If [alternative_location_id] is also provided, it must be - # different from [location_id]. + # failures. If alternative_location_id is also provided, it must be + # different from location_id. # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id @@ -321,8 +321,8 @@ module Google # Note: Redis instances are managed and addressed at regional level so # location_id here refers to a GCP region; however, users may choose which # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to [location_id] and - # [alternative_location_id] fields for more details. + # should be provisioned in. Refer to location_id and + # alternative_location_id fields for more details. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -425,10 +425,10 @@ module Google # If the `location_id` in the parent field of the request is "-", all regions # available to the project are queried, and the results aggregated. # If in such an aggregated query a location is unavailable, a dummy Redis - # entry is included in the response with the "name" field set to a value of - # the form projects/`project_id`/locations/`location_id`/instances/- and the - # "status" field set to ERROR and "status_message" field set to "location not - # available for ListInstances". + # entry is included in the response with the `name` field set to a value of + # the form `projects/`project_id`/locations/`location_id`/instances/`- and + # the `status` field set to ERROR and `status_message` field set to "location + # not available for ListInstances". # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances diff --git a/generated/google/apis/redis_v1/service.rb b/generated/google/apis/redis_v1/service.rb index 64edc51bd..b2e4a2af6 100644 --- a/generated/google/apis/redis_v1/service.rb +++ b/generated/google/apis/redis_v1/service.rb @@ -362,11 +362,11 @@ module Google # If not specified, a default value of 1000 will be used by the service. # Regardless of the page_size value, the response may include a partial list # and a caller should only rely on response's - # next_page_token + # `next_page_token` # to determine if there are more instances left to be queried. # @param [String] page_token - # The next_page_token value returned from a previous List request, - # if any. + # The `next_page_token` value returned from a previous + # ListInstances request, if any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -407,8 +407,8 @@ module Google # Note: Redis instances are managed and addressed at regional level so # location_id here refers to a GCP region; however, users may choose which # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to [location_id] and - # [alternative_location_id] fields for more details. + # should be provisioned in. Refer to location_id and + # alternative_location_id fields for more details. # @param [Google::Apis::RedisV1::Instance] instance_object # @param [String] update_mask # Required. Mask of fields to update. At least one path must be supplied in diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index 941d6dced..e3349dc7b 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - 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_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb index 415b069ce..7ef3a553d 100644 --- a/generated/google/apis/vision_v1p2beta1/classes.rb +++ b/generated/google/apis/vision_v1p2beta1/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::VisionV1p2beta1::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_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb index 5732a90d1..7916528fc 100644 --- a/generated/google/apis/vision_v1p2beta1/representations.rb +++ b/generated/google/apis/vision_v1p2beta1/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::VisionV1p2beta1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark::Representation property :pan_angle, as: 'panAngle' + collection :recognition_result, as: 'recognitionResult', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Celebrity, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVisionV1p4beta1GcsDestination # @private class Representation < Google::Apis::Core::JsonRepresentation