diff --git a/api_names_out.yaml b/api_names_out.yaml
index 5027f30f8..07e66a99e 100644
--- a/api_names_out.yaml
+++ b/api_names_out.yaml
@@ -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
diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb
index 018114963..4c7b24dcd 100644
--- a/generated/google/apis/ml_v1.rb
+++ b/generated/google/apis/ml_v1.rb
@@ -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'
diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb
index aecfad8f6..ab6051d3f 100644
--- a/generated/google/apis/ml_v1/classes.rb
+++ b/generated/google/apis/ml_v1/classes.rb
@@ -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
+ # using labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash]
+ 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
+ # using labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash]
+ 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]
+ 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
+ # using labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash]
+ 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)
diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb
index e02ce1135..9874035f1 100644
--- a/generated/google/apis/ml_v1/representations.rb
+++ b/generated/google/apis/ml_v1/representations.rb
@@ -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
diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb
index edd4094ca..b4bbb8791 100644
--- a/generated/google/apis/ml_v1/service.rb
+++ b/generated/google/apis/ml_v1/service.rb
@@ -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
diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb
index ccc745707..fa9f9ca3e 100644
--- a/generated/google/apis/monitoring_v3.rb
+++ b/generated/google/apis/monitoring_v3.rb
@@ -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'
diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb
index 615ba7987..78706a3b2 100644
--- a/generated/google/apis/monitoring_v3/service.rb
+++ b/generated/google/apis/monitoring_v3/service.rb
@@ -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?