Bump version, regen APIs
This commit is contained in:
1 parent
b8f6f7c2fe
commit
9237ba59cb
241 files changed
+53894
-50212
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -22,37 +22,19 @@ module Google
|
||||
module Apis
|
||||
module MlV1
|
||||
|
||||
class GoogleCloudMlV1ListModelsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1TrainingInput
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1Job
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiHttpBody
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1beta1Version
|
||||
class GoogleCloudMlV1GetConfigResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1GetConfigResponse
|
||||
class GoogleCloudMlV1beta1Version
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -166,13 +148,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1CancelJobRequest
|
||||
class GoogleCloudMlV1ListVersionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ListVersionsResponse
|
||||
class GoogleCloudMlV1CancelJobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -191,74 +173,29 @@ module Google
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ListModelsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :models, as: 'models', class: Google::Apis::MlV1::GoogleCloudMlV1Model, decorator: Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1TrainingInput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
|
||||
collection :package_uris, as: 'packageUris'
|
||||
property :worker_count, :numeric_string => true, as: 'workerCount'
|
||||
property :master_type, as: 'masterType'
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
property :python_module, as: 'pythonModule'
|
||||
property :worker_type, as: 'workerType'
|
||||
collection :args, as: 'args'
|
||||
property :region, as: 'region'
|
||||
property :parameter_server_type, as: 'parameterServerType'
|
||||
property :scale_tier, as: 'scaleTier'
|
||||
property :job_dir, as: 'jobDir'
|
||||
property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1Job
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
|
||||
|
||||
property :error_message, as: 'errorMessage'
|
||||
property :job_id, as: 'jobId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiHttpBody
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data, :base64 => true, as: 'data'
|
||||
property :content_type, as: 'contentType'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1beta1Version
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
property :last_use_time, as: 'lastUseTime'
|
||||
property :description, as: 'description'
|
||||
property :deployment_uri, as: 'deploymentUri'
|
||||
property :is_default, as: 'isDefault'
|
||||
property :create_time, as: 'createTime'
|
||||
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
collection :extensions, as: 'extensions'
|
||||
property :data, :base64 => true, as: 'data'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -270,6 +207,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1beta1Version
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :is_default, as: 'isDefault'
|
||||
property :create_time, as: 'createTime'
|
||||
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :last_use_time, as: 'lastUseTime'
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
property :description, as: 'description'
|
||||
property :deployment_uri, as: 'deploymentUri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1HyperparameterOutput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -285,19 +237,19 @@ module Google
|
||||
class GoogleCloudMlV1PredictionOutput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :prediction_count, :numeric_string => true, as: 'predictionCount'
|
||||
property :error_count, :numeric_string => true, as: 'errorCount'
|
||||
property :output_path, as: 'outputPath'
|
||||
property :node_hours, as: 'nodeHours'
|
||||
property :prediction_count, :numeric_string => true, as: 'predictionCount'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleLongrunningListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::MlV1::GoogleLongrunningOperation, decorator: Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -311,11 +263,11 @@ module Google
|
||||
class GoogleCloudMlV1TrainingOutput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation
|
||||
|
||||
property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount'
|
||||
property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob'
|
||||
property :consumed_ml_units, as: 'consumedMLUnits'
|
||||
collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -330,8 +282,8 @@ module Google
|
||||
class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :objective_value, as: 'objectiveValue'
|
||||
property :training_step, :numeric_string => true, as: 'trainingStep'
|
||||
property :objective_value, as: 'objectiveValue'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -366,15 +318,15 @@ module Google
|
||||
class GoogleCloudMlV1PredictionInput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data_format, as: 'dataFormat'
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
collection :input_paths, as: 'inputPaths'
|
||||
property :region, as: 'region'
|
||||
property :version_name, as: 'versionName'
|
||||
property :model_name, as: 'modelName'
|
||||
property :output_path, as: 'outputPath'
|
||||
property :max_worker_count, :numeric_string => true, as: 'maxWorkerCount'
|
||||
property :uri, as: 'uri'
|
||||
property :data_format, as: 'dataFormat'
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
collection :input_paths, as: 'inputPaths'
|
||||
property :region, as: 'region'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -409,21 +361,21 @@ module Google
|
||||
class GoogleCloudMlV1HyperparameterSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :goal, as: 'goal'
|
||||
property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag'
|
||||
collection :params, as: 'params', class: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec::Representation
|
||||
|
||||
property :max_trials, as: 'maxTrials'
|
||||
property :max_parallel_trials, as: 'maxParallelTrials'
|
||||
property :goal, as: 'goal'
|
||||
property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ListJobsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :jobs, as: 'jobs', class: Google::Apis::MlV1::GoogleCloudMlV1Job, decorator: Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -448,12 +400,12 @@ module Google
|
||||
class GoogleCloudMlV1Model
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :regions, as: 'regions'
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
property :online_prediction_logging, as: 'onlinePredictionLogging'
|
||||
property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
|
||||
collection :regions, as: 'regions'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -463,18 +415,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1CancelJobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ListVersionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :versions, as: 'versions', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1CancelJobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
@@ -488,9 +440,58 @@ module Google
|
||||
class GoogleRpcStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ListModelsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :models, as: 'models', class: Google::Apis::MlV1::GoogleCloudMlV1Model, decorator: Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1TrainingInput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
property :python_module, as: 'pythonModule'
|
||||
property :worker_type, as: 'workerType'
|
||||
collection :args, as: 'args'
|
||||
property :region, as: 'region'
|
||||
property :parameter_server_type, as: 'parameterServerType'
|
||||
property :scale_tier, as: 'scaleTier'
|
||||
property :job_dir, as: 'jobDir'
|
||||
property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
|
||||
|
||||
property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
|
||||
collection :package_uris, as: 'packageUris'
|
||||
property :worker_count, :numeric_string => true, as: 'workerCount'
|
||||
property :master_type, as: 'masterType'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1Job
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
|
||||
|
||||
property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation
|
||||
|
||||
property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :error_message, as: 'errorMessage'
|
||||
property :job_id, as: 'jobId'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,51 +47,17 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Get the service account information associated with your project. You need
|
||||
# this information in order to grant the service account persmissions for
|
||||
# the Google Cloud Storage location where you put your model training code
|
||||
# for training the model with Google Cloud Machine Learning.
|
||||
# @param [String] name
|
||||
# Required. The project name.
|
||||
# Authorization: requires `Viewer` role on the specified project.
|
||||
# @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::GoogleCloudMlV1GetConfigResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
|
||||
#
|
||||
# @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 get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs prediction on the data in the request.
|
||||
# **** REMOVE FROM GENERATED DOCUMENTATION
|
||||
# @param [String] name
|
||||
# Required. The resource name of a model or a version.
|
||||
# Authorization: requires `Viewer` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -104,15 +70,49 @@ 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 predict_project(name, google_cloud_ml_v1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:predict', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
|
||||
command.request_object = google_cloud_ml_v1__predict_request_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get the service account information associated with your project. You need
|
||||
# this information in order to grant the service account persmissions for
|
||||
# the Google Cloud Storage location where you put your model training code
|
||||
# for training the model with Google Cloud Machine Learning.
|
||||
# @param [String] name
|
||||
# Required. The project name.
|
||||
# Authorization: requires `Viewer` role on the specified project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
|
||||
#
|
||||
# @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 get_project_config(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -128,11 +128,11 @@ module Google
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -145,13 +145,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 cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def cancel_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -161,11 +161,11 @@ module Google
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -178,13 +178,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 delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -194,17 +194,17 @@ module Google
|
||||
# to use different resource name schemes, such as `users/*/operations`.
|
||||
# @param [String] name
|
||||
# The name of the operation collection.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -217,16 +217,16 @@ 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 list_project_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -235,11 +235,11 @@ module Google
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -252,13 +252,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 get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -277,11 +277,11 @@ module Google
|
||||
# are more remaining results than this number, the response message will
|
||||
# contain a valid value in the `next_page_token` field.
|
||||
# The default value is 20, and the maximum page size is 100.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -294,15 +294,15 @@ 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 list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_models(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/models', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -312,11 +312,11 @@ module Google
|
||||
# @param [String] name
|
||||
# Required. The name of the model.
|
||||
# Authorization: requires `Viewer` role on the parent project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -329,13 +329,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 get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -348,11 +348,11 @@ module Google
|
||||
# Required. The project name.
|
||||
# Authorization: requires `Editor` role on the specified project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -365,15 +365,15 @@ 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 create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def create_project_model(parent, google_cloud_ml_v1__model_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/models', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
||||
command.request_object = google_cloud_ml_v1__model_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -385,11 +385,11 @@ module Google
|
||||
# @param [String] name
|
||||
# Required. The name of the model.
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -402,96 +402,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 delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.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 new version of a model from a trained TensorFlow model.
|
||||
# If the version created in the cloud by this call is the first deployed
|
||||
# version of the specified model, it will be made the default version of the
|
||||
# model. When you add a version to a model that already has one or more
|
||||
# versions, the default version does not automatically change. If you want a
|
||||
# new version to be the default, you must call
|
||||
# [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
|
||||
# models.versions/setDefault).
|
||||
# @param [String] parent
|
||||
# Required. The name of the model.
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_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::MlV1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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 create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/versions', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
command.request_object = google_cloud_ml_v1__version_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Designates a version to be the default for the model.
|
||||
# The default version is used for prediction requests made against the model
|
||||
# that don't specify a version.
|
||||
# The first version to be created for a model is automatically set as the
|
||||
# default. You must make any subsequent changes to the default version
|
||||
# setting manually using this method.
|
||||
# @param [String] name
|
||||
# Required. The name of the version to make the default for the model. You
|
||||
# can get the names of all the versions of a model by calling
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_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::MlV1::GoogleCloudMlV1Version] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
||||
#
|
||||
# @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 set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
|
||||
command.request_object = google_cloud_ml_v1__set_default_version_request_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -506,11 +423,11 @@ module Google
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -523,13 +440,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 delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -549,11 +466,11 @@ module Google
|
||||
# there are more remaining results than this number, the response message
|
||||
# will contain a valid value in the `next_page_token` field.
|
||||
# The default value is 20, and the maximum page size is 100.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -566,15 +483,15 @@ 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 list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_model_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/versions', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -587,11 +504,11 @@ module Google
|
||||
# @param [String] name
|
||||
# Required. The name of the version.
|
||||
# Authorization: requires `Viewer` role on the parent project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -604,47 +521,96 @@ 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 get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a training or a batch prediction job.
|
||||
# Creates a new version of a model from a trained TensorFlow model.
|
||||
# If the version created in the cloud by this call is the first deployed
|
||||
# version of the specified model, it will be made the default version of the
|
||||
# model. When you add a version to a model that already has one or more
|
||||
# versions, the default version does not automatically change. If you want a
|
||||
# new version to be the default, you must call
|
||||
# [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
|
||||
# models.versions/setDefault).
|
||||
# @param [String] parent
|
||||
# Required. The project name.
|
||||
# Authorization: requires `Editor` role on the specified project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# Required. The name of the model.
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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 result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
||||
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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 create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/jobs', 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
|
||||
def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/versions', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
command.request_object = google_cloud_ml_v1__version_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Designates a version to be the default for the model.
|
||||
# The default version is used for prediction requests made against the model
|
||||
# that don't specify a version.
|
||||
# The first version to be created for a model is automatically set as the
|
||||
# default. You must make any subsequent changes to the default version
|
||||
# setting manually using this method.
|
||||
# @param [String] name
|
||||
# Required. The name of the version to make the default for the model. You
|
||||
# can get the names of all the versions of a model by calling
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
||||
#
|
||||
# @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 set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
|
||||
command.request_object = google_cloud_ml_v1__set_default_version_request_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -653,11 +619,11 @@ module Google
|
||||
# Required. The name of the job to cancel.
|
||||
# Authorization: requires `Editor` role on the parent project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -670,15 +636,15 @@ 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 cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
|
||||
command.request_object = google_cloud_ml_v1__cancel_job_request_object
|
||||
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -686,10 +652,6 @@ module Google
|
||||
# @param [String] parent
|
||||
# Required. The name of the project for which to list jobs.
|
||||
# Authorization: requires `Viewer` role on the specified project.
|
||||
# @param [String] page_token
|
||||
# Optional. A page token to request the next page of results.
|
||||
# You get the token from the `next_page_token` field of the response from
|
||||
# the previous call.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The number of jobs to retrieve per "page" of results. If there
|
||||
# are more remaining results than this number, the response message will
|
||||
@@ -697,11 +659,15 @@ module Google
|
||||
# The default value is 20, and the maximum page size is 100.
|
||||
# @param [String] filter
|
||||
# Optional. Specifies the subset of jobs to retrieve.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] page_token
|
||||
# Optional. A page token to request the next page of results.
|
||||
# You get the token from the `next_page_token` field of the response from
|
||||
# the previous call.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -714,16 +680,16 @@ 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 list_project_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -731,11 +697,11 @@ module Google
|
||||
# @param [String] name
|
||||
# Required. The name of the job to get the description of.
|
||||
# Authorization: requires `Viewer` role on the parent project.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -748,13 +714,47 @@ 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 get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
||||
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a training or a batch prediction job.
|
||||
# @param [String] parent
|
||||
# Required. The project name.
|
||||
# Authorization: requires `Editor` role on the specified project.
|
||||
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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 create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/jobs', 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['parent'] = parent unless parent.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user