Autogenerated update (2017-11-09)

Update:
- ml_v1
- monitoring_v3
This commit is contained in:
Google APIs 2017-11-09 00:35:37 +00:00
parent b7660bf329
commit c387e3f320
7 changed files with 153 additions and 10 deletions

View File

@ -47579,7 +47579,10 @@
"/ml:v1/GoogleCloudMlV1__Job/createTime": create_time
"/ml:v1/GoogleCloudMlV1__Job/endTime": end_time
"/ml:v1/GoogleCloudMlV1__Job/errorMessage": error_message
"/ml:v1/GoogleCloudMlV1__Job/etag": etag
"/ml:v1/GoogleCloudMlV1__Job/jobId": job_id
"/ml:v1/GoogleCloudMlV1__Job/labels": labels
"/ml:v1/GoogleCloudMlV1__Job/labels/label": label
"/ml:v1/GoogleCloudMlV1__Job/predictionInput": prediction_input
"/ml:v1/GoogleCloudMlV1__Job/predictionOutput": prediction_output
"/ml:v1/GoogleCloudMlV1__Job/startTime": start_time
@ -47603,6 +47606,9 @@
"/ml:v1/GoogleCloudMlV1__Model": google_cloud_ml_v1__model
"/ml:v1/GoogleCloudMlV1__Model/defaultVersion": default_version
"/ml:v1/GoogleCloudMlV1__Model/description": description
"/ml:v1/GoogleCloudMlV1__Model/etag": etag
"/ml:v1/GoogleCloudMlV1__Model/labels": labels
"/ml:v1/GoogleCloudMlV1__Model/labels/label": label
"/ml:v1/GoogleCloudMlV1__Model/name": name
"/ml:v1/GoogleCloudMlV1__Model/onlinePredictionLogging": online_prediction_logging
"/ml:v1/GoogleCloudMlV1__Model/regions": regions
@ -47611,6 +47617,8 @@
"/ml:v1/GoogleCloudMlV1__OperationMetadata/createTime": create_time
"/ml:v1/GoogleCloudMlV1__OperationMetadata/endTime": end_time
"/ml:v1/GoogleCloudMlV1__OperationMetadata/isCancellationRequested": is_cancellation_requested
"/ml:v1/GoogleCloudMlV1__OperationMetadata/labels": labels
"/ml:v1/GoogleCloudMlV1__OperationMetadata/labels/label": label
"/ml:v1/GoogleCloudMlV1__OperationMetadata/modelName": model_name
"/ml:v1/GoogleCloudMlV1__OperationMetadata/operationType": operation_type
"/ml:v1/GoogleCloudMlV1__OperationMetadata/startTime": start_time
@ -47673,7 +47681,10 @@
"/ml:v1/GoogleCloudMlV1__Version/deploymentUri": deployment_uri
"/ml:v1/GoogleCloudMlV1__Version/description": description
"/ml:v1/GoogleCloudMlV1__Version/errorMessage": error_message
"/ml:v1/GoogleCloudMlV1__Version/etag": etag
"/ml:v1/GoogleCloudMlV1__Version/isDefault": is_default
"/ml:v1/GoogleCloudMlV1__Version/labels": labels
"/ml:v1/GoogleCloudMlV1__Version/labels/label": label
"/ml:v1/GoogleCloudMlV1__Version/lastUseTime": last_use_time
"/ml:v1/GoogleCloudMlV1__Version/manualScaling": manual_scaling
"/ml:v1/GoogleCloudMlV1__Version/name": name
@ -47811,6 +47822,9 @@
"/ml:v1/ml.projects.jobs.list/pageSize": page_size
"/ml:v1/ml.projects.jobs.list/pageToken": page_token
"/ml:v1/ml.projects.jobs.list/parent": parent
"/ml:v1/ml.projects.jobs.patch": patch_project_job
"/ml:v1/ml.projects.jobs.patch/name": name
"/ml:v1/ml.projects.jobs.patch/updateMask": update_mask
"/ml:v1/ml.projects.jobs.setIamPolicy": set_project_job_iam_policy
"/ml:v1/ml.projects.jobs.setIamPolicy/resource": resource
"/ml:v1/ml.projects.jobs.testIamPermissions": test_project_job_iam_permissions

View File

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

View File

@ -297,11 +297,32 @@ module Google
# @return [String]
attr_accessor :error_message
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a job from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform job updates in order to avoid race
# conditions: An `etag` is returned in the response to `GetJob`, and
# systems are expected to put that etag in the request to `UpdateJob` to
# ensure that their change will be applied to the same version of the job.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Required. The user-specified id of the job.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id
# Optional. One or more labels that you can add, to organize your jobs.
# Each label is a key-value pair, where both the key and the value are
# arbitrary strings that you supply.
# For more information, see the documentation on
# <a href="/ml-engine/docs/how-tos/resource-labels">using labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Represents input parameters for a prediction job.
# Corresponds to the JSON property `predictionInput`
# @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
@ -341,7 +362,9 @@ module Google
@create_time = args[:create_time] if args.key?(:create_time)
@end_time = args[:end_time] if args.key?(:end_time)
@error_message = args[:error_message] if args.key?(:error_message)
@etag = args[:etag] if args.key?(:etag)
@job_id = args[:job_id] if args.key?(:job_id)
@labels = args[:labels] if args.key?(:labels)
@prediction_input = args[:prediction_input] if args.key?(:prediction_input)
@prediction_output = args[:prediction_output] if args.key?(:prediction_output)
@start_time = args[:start_time] if args.key?(:start_time)
@ -464,7 +487,6 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 19
# LINT.IfChange
# Corresponds to the JSON property `defaultVersion`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
@ -475,6 +497,27 @@ module Google
# @return [String]
attr_accessor :description
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a model from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform model updates in order to avoid race
# conditions: An `etag` is returned in the response to `GetModel`, and
# systems are expected to put that etag in the request to `UpdateModel` to
# ensure that their change will be applied to the model as intended.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Optional. One or more labels that you can add, to organize your models.
# Each label is a key-value pair, where both the key and the value are
# arbitrary strings that you supply.
# For more information, see the documentation on
# <a href="/ml-engine/docs/how-tos/resource-labels">using labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Required. The name specified for the model when it was created.
# The model name must be unique within the project it is created in.
# Corresponds to the JSON property `name`
@ -509,6 +552,8 @@ module Google
def update!(**args)
@default_version = args[:default_version] if args.key?(:default_version)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
@regions = args[:regions] if args.key?(:regions)
@ -535,6 +580,12 @@ module Google
attr_accessor :is_cancellation_requested
alias_method :is_cancellation_requested?, :is_cancellation_requested
# The user labels, inherited from the model or the model version being
# operated on.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Contains the name of the model associated with the operation.
# Corresponds to the JSON property `modelName`
# @return [String]
@ -556,7 +607,6 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 19
# LINT.IfChange
# Corresponds to the JSON property `version`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
@ -571,6 +621,7 @@ module Google
@create_time = args[:create_time] if args.key?(:create_time)
@end_time = args[:end_time] if args.key?(:end_time)
@is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
@labels = args[:labels] if args.key?(:labels)
@model_name = args[:model_name] if args.key?(:model_name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@start_time = args[:start_time] if args.key?(:start_time)
@ -1232,7 +1283,6 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 19
# LINT.IfChange
class GoogleCloudMlV1Version
include Google::Apis::Core::Hashable
@ -1273,6 +1323,18 @@ module Google
# @return [String]
attr_accessor :error_message
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a model from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform model updates in order to avoid race
# conditions: An `etag` is returned in the response to `GetVersion`, and
# systems are expected to put that etag in the request to `UpdateVersion` to
# ensure that their change will be applied to the model as intended.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Output only. If true, this version will be used to handle prediction
# requests that do not specify a version.
# You can change the default version by calling
@ -1283,6 +1345,15 @@ module Google
attr_accessor :is_default
alias_method :is_default?, :is_default
# Optional. One or more labels that you can add, to organize your model
# versions. Each label is a key-value pair, where both the key and the value
# are arbitrary strings that you supply.
# For more information, see the documentation on
# <a href="/ml-engine/docs/how-tos/resource-labels">using labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only. The time the version was last used for prediction.
# Corresponds to the JSON property `lastUseTime`
# @return [String]
@ -1321,7 +1392,9 @@ module Google
@deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
@description = args[:description] if args.key?(:description)
@error_message = args[:error_message] if args.key?(:error_message)
@etag = args[:etag] if args.key?(:etag)
@is_default = args[:is_default] if args.key?(:is_default)
@labels = args[:labels] if args.key?(:labels)
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
@name = args[:name] if args.key?(:name)

View File

@ -294,7 +294,9 @@ module Google
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :error_message, as: 'errorMessage'
property :etag, :base64 => true, as: 'etag'
property :job_id, as: 'jobId'
hash :labels, as: 'labels'
property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
@ -348,6 +350,8 @@ module Google
property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
property :description, as: 'description'
property :etag, :base64 => true, as: 'etag'
hash :labels, as: 'labels'
property :name, as: 'name'
property :online_prediction_logging, as: 'onlinePredictionLogging'
collection :regions, as: 'regions'
@ -360,6 +364,7 @@ module Google
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :is_cancellation_requested, as: 'isCancellationRequested'
hash :labels, as: 'labels'
property :model_name, as: 'modelName'
property :operation_type, as: 'operationType'
property :start_time, as: 'startTime'
@ -461,7 +466,9 @@ module Google
property :deployment_uri, as: 'deploymentUri'
property :description, as: 'description'
property :error_message, as: 'errorMessage'
property :etag, :base64 => true, as: 'etag'
property :is_default, as: 'isDefault'
hash :labels, as: 'labels'
property :last_use_time, as: 'lastUseTime'
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation

View File

@ -288,6 +288,59 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a specific job resource.
# Currently the only supported fields to update are `labels`.
# @param [String] name
# Required. The job name.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
# @param [String] update_mask
# Required. Specifies the path, relative to `Job`, of the field to update.
# To adopt etag mechanism, include `etag` field in the mask, and include the
# `etag` value in your job resource.
# For example, to change the labels of a job, the `update_mask` parameter
# would be specified as `labels`, `etag`, and the
# `PATCH` request body would specify the new value, as follows:
# `
# "labels": `
# "owner": "Google",
# "color": "Blue"
# `
# "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4"
# `
# If `etag` matches the one on the server, the labels of the job will be
# replaced with the given ones, and the server end `etag` will be
# recalculated.
# Currently the only supported update masks are `labels` and `etag`.
# @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::MlV1::GoogleCloudMlV1Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
#
# @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 patch_project_job(name, google_cloud_ml_v1__job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
command.request_object = google_cloud_ml_v1__job_object
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20171016'
REVISION = '20171105'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -846,9 +846,6 @@ module Google
# when creating the uptime check configuration; on create, the resource name is
# assigned by the server and included in the response.
# @param [Google::Apis::MonitoringV3::UptimeCheckConfig] uptime_check_config_object
# @param [String] name1
# The uptime check configuration to update. The format isprojects/[PROJECT_ID]/
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
# @param [String] update_mask
# Optional. If present, only the listed fields in the current uptime check
# configuration are updated with values from the new configuration. If this
@ -871,14 +868,13 @@ module Google
# @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 patch_project_uptime_check_config(name, uptime_check_config_object = nil, name1: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_uptime_check_config(name, uptime_check_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v3/{+name}', options)
command.request_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.request_object = uptime_check_config_object
command.response_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.response_class = Google::Apis::MonitoringV3::UptimeCheckConfig
command.params['name'] = name unless name.nil?
command.query['name1'] = name1 unless name1.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?