Autogenerated update (2019-10-30)
Update: - cloudidentity_v1beta1 - dlp_v2 - firebasehosting_v1beta1 - ml_v1
This commit is contained in:
parent
c0cbe7060d
commit
0353dbc892
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/identity/
|
||||
module CloudidentityV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191023'
|
||||
REVISION = '20191027'
|
||||
|
||||
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
||||
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190929'
|
||||
REVISION = '20191027'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -611,17 +611,18 @@ module Google
|
|||
class GooglePrivacyDlpV2CharacterMaskConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# When masking a string, items in this list will be skipped when replacing.
|
||||
# For example, if your string is 555-555-5555 and you ask us to skip `-` and
|
||||
# mask 5 chars with * we would produce ***-*55-5555.
|
||||
# When masking a string, items in this list will be skipped when replacing
|
||||
# characters. For example, if the input string is `555-555-5555` and you
|
||||
# instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
|
||||
# returns `***-**5-5555`.
|
||||
# Corresponds to the JSON property `charactersToIgnore`
|
||||
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2CharsToIgnore>]
|
||||
attr_accessor :characters_to_ignore
|
||||
|
||||
# Character to mask the sensitive values—for example, "*" for an
|
||||
# alphabetic string such as name, or "0" for a numeric string such as ZIP
|
||||
# code or credit card number. String must have length 1. If not supplied, we
|
||||
# will default to "*" for strings, 0 for digits.
|
||||
# Character to use to mask the sensitive values—for example, `*` for an
|
||||
# alphabetic string such as a name, or `0` for a numeric string such as ZIP
|
||||
# code or credit card number. This string must have a length of 1. If not
|
||||
# supplied, this value defaults to `*` for strings, and `0` for digits.
|
||||
# Corresponds to the JSON property `maskingCharacter`
|
||||
# @return [String]
|
||||
attr_accessor :masking_character
|
||||
|
@ -633,10 +634,10 @@ module Google
|
|||
attr_accessor :number_to_mask
|
||||
|
||||
# Mask characters in reverse order. For example, if `masking_character` is
|
||||
# '0', number_to_mask is 14, and `reverse_order` is false, then
|
||||
# 1234-5678-9012-3456 -> 00000000000000-3456
|
||||
# If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order`
|
||||
# is true, then 12345 -> 12***
|
||||
# `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
|
||||
# input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
|
||||
# If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
|
||||
# is `true`, then the string `12345` is masked as `12***`.
|
||||
# Corresponds to the JSON property `reverseOrder`
|
||||
# @return [Boolean]
|
||||
attr_accessor :reverse_order
|
||||
|
@ -4743,6 +4744,12 @@ module Google
|
|||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig]
|
||||
attr_accessor :inspect_config
|
||||
|
||||
# The geographic location to process the request. Reserved for future
|
||||
# extensions.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -4753,6 +4760,7 @@ module Google
|
|||
@image_redaction_configs = args[:image_redaction_configs] if args.key?(:image_redaction_configs)
|
||||
@include_findings = args[:include_findings] if args.key?(:include_findings)
|
||||
@inspect_config = args[:inspect_config] if args.key?(:inspect_config)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -2435,6 +2435,7 @@ module Google
|
|||
property :include_findings, as: 'includeFindings'
|
||||
property :inspect_config, as: 'inspectConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig::Representation
|
||||
|
||||
property :location, as: 'location'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1842,6 +1842,49 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Redacts potentially sensitive info from an image.
|
||||
# This method has limits on input size, processing time, and output size.
|
||||
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
||||
# learn more.
|
||||
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
||||
# 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.
|
||||
# @param [String] location
|
||||
# The geographic location to process the request. Reserved for future
|
||||
# extensions.
|
||||
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse]
|
||||
#
|
||||
# @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 redact_project_location_image(parent, location, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/{+parent}/locations/{location}/image:redact', options)
|
||||
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
||||
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
||||
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
||||
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a pre-built stored infoType to be used for inspection.
|
||||
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
||||
# learn more.
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://firebase.google.com/docs/hosting/
|
||||
module FirebasehostingV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190813'
|
||||
REVISION = '20191029'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -457,6 +457,35 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Version preview configuration. If active and unexpired,
|
||||
# this version will be accessible via a custom URL even
|
||||
# if it is not the currently released version.
|
||||
class PreviewConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If true, preview URLs are enabled for this version.
|
||||
# Corresponds to the JSON property `active`
|
||||
# @return [Boolean]
|
||||
attr_accessor :active
|
||||
alias_method :active?, :active
|
||||
|
||||
# Indicates the expiration time for previewing this
|
||||
# version; preview URL requests received after this time will 404.
|
||||
# Corresponds to the JSON property `expireTime`
|
||||
# @return [String]
|
||||
attr_accessor :expire_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@active = args[:active] if args.key?(:active)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
end
|
||||
end
|
||||
|
||||
# A [`redirect`](/docs/hosting/full-config#redirects) represents the
|
||||
# configuration for returning an HTTP redirect response given a matching
|
||||
# request URL path.
|
||||
|
@ -772,6 +801,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Version preview configuration. If active and unexpired,
|
||||
# this version will be accessible via a custom URL even
|
||||
# if it is not the currently released version.
|
||||
# Corresponds to the JSON property `preview`
|
||||
# @return [Google::Apis::FirebasehostingV1beta1::PreviewConfig]
|
||||
attr_accessor :preview
|
||||
|
||||
# The deploy status of a version.
|
||||
# <br>
|
||||
# <br>For a successful deploy, call the
|
||||
|
@ -812,6 +848,7 @@ module Google
|
|||
@finalize_user = args[:finalize_user] if args.key?(:finalize_user)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@preview = args[:preview] if args.key?(:preview)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@version_bytes = args[:version_bytes] if args.key?(:version_bytes)
|
||||
end
|
||||
|
|
|
@ -106,6 +106,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PreviewConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Redirect
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -275,6 +281,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class PreviewConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active, as: 'active'
|
||||
property :expire_time, as: 'expireTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Redirect
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -351,6 +365,8 @@ module Google
|
|||
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :preview, as: 'preview', class: Google::Apis::FirebasehostingV1beta1::PreviewConfig, decorator: Google::Apis::FirebasehostingV1beta1::PreviewConfig::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
property :version_bytes, :numeric_string => true, as: 'versionBytes'
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/ml/
|
||||
module MlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191021'
|
||||
REVISION = '20191025'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -109,7 +109,10 @@ module Google
|
|||
end
|
||||
|
||||
# Represents a hardware accelerator request config.
|
||||
# Note that the AcceleratorConfig could be used in both Jobs and Versions.
|
||||
# Note that the AcceleratorConfig can be used in both Jobs and Versions.
|
||||
# Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and
|
||||
# [accelerators for online
|
||||
# prediction](/ml-engine/docs/machine-types-online-prediction#gpus).
|
||||
class GoogleCloudMlV1AcceleratorConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -151,9 +154,18 @@ module Google
|
|||
# increased load as well as scale back as traffic drops, always maintaining
|
||||
# at least `min_nodes`. You will be charged for the time in which additional
|
||||
# nodes are used.
|
||||
# If not specified, `min_nodes` defaults to 0, in which case, when traffic
|
||||
# to a model stops (and after a cool-down period), nodes will be shut down
|
||||
# and no charges will be incurred until traffic to the model resumes.
|
||||
# If `min_nodes` is not specified and AutoScaling is used with a [legacy
|
||||
# (MLS1) machine type](/ml-engine/docs/machine-types-online-prediction),
|
||||
# `min_nodes` defaults to 0, in which case, when traffic to a model stops
|
||||
# (and after a cool-down period), nodes will be shut down and no charges will
|
||||
# be incurred until traffic to the model resumes.
|
||||
# If `min_nodes` is not specified and AutoScaling is used with a [Compute
|
||||
# Engine (N1) machine type](/ml-engine/docs/machine-types-online-prediction),
|
||||
# `min_nodes` defaults to 1. `min_nodes` must be at least 1 for use with a
|
||||
# Compute Engine machine type.
|
||||
# Note that you cannot use AutoScaling if your version uses
|
||||
# [GPUs](#Version.FIELDS.accelerator_config). Instead, you must use
|
||||
# ManualScaling.
|
||||
# You can set `min_nodes` when creating the model version, and you can also
|
||||
# update `min_nodes` for an existing version:
|
||||
# <pre>
|
||||
|
@ -165,7 +177,7 @@ module Google
|
|||
# `
|
||||
# </pre>
|
||||
# HTTP request:
|
||||
# <pre>
|
||||
# <pre style="max-width: 626px;">
|
||||
# PATCH
|
||||
# https://ml.googleapis.com/v1/`name=projects/*/models/*/versions/*`?update_mask=
|
||||
# autoScaling.minNodes
|
||||
|
@ -1176,7 +1188,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a hardware accelerator request config.
|
||||
# Note that the AcceleratorConfig could be used in both Jobs and Versions.
|
||||
# Note that the AcceleratorConfig can be used in both Jobs and Versions.
|
||||
# Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and
|
||||
# [accelerators for online
|
||||
# prediction](/ml-engine/docs/machine-types-online-prediction#gpus).
|
||||
# Corresponds to the JSON property `acceleratorConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig]
|
||||
attr_accessor :accelerator_config
|
||||
|
@ -1636,7 +1651,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a hardware accelerator request config.
|
||||
# Note that the AcceleratorConfig could be used in both Jobs and Versions.
|
||||
# Note that the AcceleratorConfig can be used in both Jobs and Versions.
|
||||
# Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and
|
||||
# [accelerators for online
|
||||
# prediction](/ml-engine/docs/machine-types-online-prediction#gpus).
|
||||
# Corresponds to the JSON property `acceleratorConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig]
|
||||
attr_accessor :accelerator_config
|
||||
|
@ -1697,6 +1715,10 @@ module Google
|
|||
# of the model to 1.4 or greater.
|
||||
# Do **not** specify a framework if you're deploying a [custom
|
||||
# prediction routine](/ml-engine/docs/tensorflow/custom-prediction-routines).
|
||||
# If you specify a [Compute Engine (N1) machine
|
||||
# type](/ml-engine/docs/machine-types-online-prediction) in the
|
||||
# `machineType` field, you must specify `TENSORFLOW`
|
||||
# for the framework.
|
||||
# Corresponds to the JSON property `framework`
|
||||
# @return [String]
|
||||
attr_accessor :framework
|
||||
|
@ -1726,19 +1748,29 @@ module Google
|
|||
attr_accessor :last_use_time
|
||||
|
||||
# Optional. The type of machine on which to serve the model. Currently only
|
||||
# applies to online prediction service.
|
||||
# <dl>
|
||||
# <dt>mls1-c1-m2</dt>
|
||||
# <dd>
|
||||
# The <b>default</b> machine type, with 1 core and 2 GB RAM. The deprecated
|
||||
# name for this machine type is "mls1-highmem-1".
|
||||
# </dd>
|
||||
# <dt>mls1-c4-m2</dt>
|
||||
# <dd>
|
||||
# In <b>Beta</b>. This machine type has 4 cores and 2 GB RAM. The
|
||||
# deprecated name for this machine type is "mls1-highcpu-4".
|
||||
# </dd>
|
||||
# </dl>
|
||||
# applies to online prediction service. If this field is not specified, it
|
||||
# defaults to `mls1-c1-m2`.
|
||||
# Online prediction supports the following machine types:
|
||||
# * `mls1-c1-m2`
|
||||
# * `mls1-c4-m2`
|
||||
# * `n1-standard-2`
|
||||
# * `n1-standard-4`
|
||||
# * `n1-standard-8`
|
||||
# * `n1-standard-16`
|
||||
# * `n1-standard-32`
|
||||
# * `n1-highmem-2`
|
||||
# * `n1-highmem-4`
|
||||
# * `n1-highmem-8`
|
||||
# * `n1-highmem-16`
|
||||
# * `n1-highmem-32`
|
||||
# * `n1-highcpu-2`
|
||||
# * `n1-highcpu-4`
|
||||
# * `n1-highcpu-8`
|
||||
# * `n1-highcpu-16`
|
||||
# * `n1-highcpu-32`
|
||||
# `mls1-c1-m2` is generally available. All other machine types are available
|
||||
# in beta. Learn more about the [differences between machine
|
||||
# types](/ml-engine/docs/machine-types-online-prediction).
|
||||
# Corresponds to the JSON property `machineType`
|
||||
# @return [String]
|
||||
attr_accessor :machine_type
|
||||
|
@ -1778,9 +1810,11 @@ module Google
|
|||
# Specify this field if and only if you are deploying a [custom prediction
|
||||
# routine (beta)](/ml-engine/docs/tensorflow/custom-prediction-routines).
|
||||
# If you specify this field, you must set
|
||||
# [`runtimeVersion`](#Version.FIELDS.runtime_version) to 1.4 or greater.
|
||||
# [`runtimeVersion`](#Version.FIELDS.runtime_version) to 1.4 or greater and
|
||||
# you must set `machineType` to a [legacy (MLS1)
|
||||
# machine type](/ml-engine/docs/machine-types-online-prediction).
|
||||
# The following code sample provides the Predictor interface:
|
||||
# ```py
|
||||
# <pre style="max-width: 626px;">
|
||||
# class Predictor(object):
|
||||
# """Interface for constructing custom predictors."""
|
||||
# def predict(self, instances, **kwargs):
|
||||
|
@ -1808,7 +1842,7 @@ module Google
|
|||
# An instance implementing this Predictor class.
|
||||
# """
|
||||
# raise NotImplementedError()
|
||||
# ```
|
||||
# </pre>
|
||||
# Learn more about [the Predictor interface and custom prediction
|
||||
# routines](/ml-engine/docs/tensorflow/custom-prediction-routines).
|
||||
# Corresponds to the JSON property `predictionClass`
|
||||
|
|
|
@ -999,11 +999,15 @@ module Google
|
|||
# For example, to change the description of a version to "foo", the
|
||||
# `update_mask` parameter would be specified as `description`, and the
|
||||
# `PATCH` request body would specify the new value, as follows:
|
||||
# ```
|
||||
# `
|
||||
# "description": "foo"
|
||||
# `
|
||||
# Currently the only supported update mask fields are `description` and
|
||||
# `autoScaling.minNodes`.
|
||||
# ```
|
||||
# Currently the only supported update mask fields are `description`,
|
||||
# `autoScaling.minNodes`, and `manualScaling.nodes`. However, you can only
|
||||
# update `manualScaling.nodes` if the version uses a [Compute Engine (N1)
|
||||
# machine type](/ml-engine/docs/machine-types-online-prediction).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
Loading…
Reference in New Issue