Autogenerated update (2017-10-03)

Delete:
- ml_v1beta1

Update:
- dataflow_v1b3
- sheets_v4
- streetviewpublish_v1
This commit is contained in:
Google APIs 2017-10-03 00:35:28 +00:00
parent 9eab574cdd
commit 6f6fec685d
14 changed files with 243 additions and 4196 deletions

View File

@ -52416,6 +52416,7 @@
"/sheets:v4/BasicChartAxis/format": format "/sheets:v4/BasicChartAxis/format": format
"/sheets:v4/BasicChartAxis/position": position "/sheets:v4/BasicChartAxis/position": position
"/sheets:v4/BasicChartAxis/title": title "/sheets:v4/BasicChartAxis/title": title
"/sheets:v4/BasicChartAxis/titleTextPosition": title_text_position
"/sheets:v4/BasicChartDomain": basic_chart_domain "/sheets:v4/BasicChartDomain": basic_chart_domain
"/sheets:v4/BasicChartDomain/domain": domain "/sheets:v4/BasicChartDomain/domain": domain
"/sheets:v4/BasicChartDomain/reversed": reversed "/sheets:v4/BasicChartDomain/reversed": reversed
@ -52427,6 +52428,7 @@
"/sheets:v4/BasicChartSpec/axis": axis "/sheets:v4/BasicChartSpec/axis": axis
"/sheets:v4/BasicChartSpec/axis/axis": axis "/sheets:v4/BasicChartSpec/axis/axis": axis
"/sheets:v4/BasicChartSpec/chartType": chart_type "/sheets:v4/BasicChartSpec/chartType": chart_type
"/sheets:v4/BasicChartSpec/compareMode": compare_mode
"/sheets:v4/BasicChartSpec/domains": domains "/sheets:v4/BasicChartSpec/domains": domains
"/sheets:v4/BasicChartSpec/domains/domain": domain "/sheets:v4/BasicChartSpec/domains/domain": domain
"/sheets:v4/BasicChartSpec/headerCount": header_count "/sheets:v4/BasicChartSpec/headerCount": header_count
@ -52596,8 +52598,12 @@
"/sheets:v4/ChartSpec/maximized": maximized "/sheets:v4/ChartSpec/maximized": maximized
"/sheets:v4/ChartSpec/orgChart": org_chart "/sheets:v4/ChartSpec/orgChart": org_chart
"/sheets:v4/ChartSpec/pieChart": pie_chart "/sheets:v4/ChartSpec/pieChart": pie_chart
"/sheets:v4/ChartSpec/subtitle": subtitle
"/sheets:v4/ChartSpec/subtitleTextFormat": subtitle_text_format
"/sheets:v4/ChartSpec/subtitleTextPosition": subtitle_text_position
"/sheets:v4/ChartSpec/title": title "/sheets:v4/ChartSpec/title": title
"/sheets:v4/ChartSpec/titleTextFormat": title_text_format "/sheets:v4/ChartSpec/titleTextFormat": title_text_format
"/sheets:v4/ChartSpec/titleTextPosition": title_text_position
"/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request "/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request
"/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id "/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id
"/sheets:v4/ClearValuesRequest": clear_values_request "/sheets:v4/ClearValuesRequest": clear_values_request
@ -53074,6 +53080,8 @@
"/sheets:v4/TextFormatRun": text_format_run "/sheets:v4/TextFormatRun": text_format_run
"/sheets:v4/TextFormatRun/format": format "/sheets:v4/TextFormatRun/format": format
"/sheets:v4/TextFormatRun/startIndex": start_index "/sheets:v4/TextFormatRun/startIndex": start_index
"/sheets:v4/TextPosition": text_position
"/sheets:v4/TextPosition/horizontalAlignment": horizontal_alignment
"/sheets:v4/TextRotation": text_rotation "/sheets:v4/TextRotation": text_rotation
"/sheets:v4/TextRotation/angle": angle "/sheets:v4/TextRotation/angle": angle
"/sheets:v4/TextRotation/vertical": vertical "/sheets:v4/TextRotation/vertical": vertical
@ -56481,6 +56489,14 @@
"/streetviewpublish:v1/ListPhotosResponse/nextPageToken": next_page_token "/streetviewpublish:v1/ListPhotosResponse/nextPageToken": next_page_token
"/streetviewpublish:v1/ListPhotosResponse/photos": photos "/streetviewpublish:v1/ListPhotosResponse/photos": photos
"/streetviewpublish:v1/ListPhotosResponse/photos/photo": photo "/streetviewpublish:v1/ListPhotosResponse/photos/photo": photo
"/streetviewpublish:v1/Operation": operation
"/streetviewpublish:v1/Operation/done": done
"/streetviewpublish:v1/Operation/error": error
"/streetviewpublish:v1/Operation/metadata": metadata
"/streetviewpublish:v1/Operation/metadata/metadatum": metadatum
"/streetviewpublish:v1/Operation/name": name
"/streetviewpublish:v1/Operation/response": response
"/streetviewpublish:v1/Operation/response/response": response
"/streetviewpublish:v1/Photo": photo "/streetviewpublish:v1/Photo": photo
"/streetviewpublish:v1/Photo/captureTime": capture_time "/streetviewpublish:v1/Photo/captureTime": capture_time
"/streetviewpublish:v1/Photo/connections": connections "/streetviewpublish:v1/Photo/connections": connections

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow # @see https://cloud.google.com/dataflow
module DataflowV1b3 module DataflowV1b3
VERSION = 'V1b3' VERSION = 'V1b3'
REVISION = '20170918' REVISION = '20170930'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5210,8 +5210,6 @@ module Google
# "UNKNOWN": shutdown reason is unknown. # "UNKNOWN": shutdown reason is unknown.
# "PREEMPTION": shutdown reason is preemption. # "PREEMPTION": shutdown reason is preemption.
# Other possible reasons may be added in the future. # Other possible reasons may be added in the future.
# Note that this must match the names of the enum specified in
# google3/cloud/dataflow/router/protos/cloud_worker_messages_service.proto.
# Corresponds to the JSON property `reason` # Corresponds to the JSON property `reason`
# @return [String] # @return [String]
attr_accessor :reason attr_accessor :reason

View File

@ -1,34 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/ml_v1beta1/service.rb'
require 'google/apis/ml_v1beta1/classes.rb'
require 'google/apis/ml_v1beta1/representations.rb'
module Google
module Apis
# Google Cloud Machine Learning Engine
#
# An API to enable creating and using machine learning models.
#
# @see https://cloud.google.com/ml/
module MlV1beta1
VERSION = 'V1beta1'
REVISION = '20170812'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,755 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module MlV1beta1
class GoogleApiHttpBody
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1AutoScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1AutoScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1CancelJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1GetConfigResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1HyperparameterOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1HyperparameterSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1Job
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1ListJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1ListModelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1Model
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1ParameterSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1PredictRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1PredictionInput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1PredictionOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1SetDefaultVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1TrainingInput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1TrainingOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1beta1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1LogConfigCloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1LogConfigCounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1LogConfigDataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleRpcStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleTypeExpr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleApiHttpBody
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_type, as: 'contentType'
property :data, :base64 => true, as: 'data'
collection :extensions, as: 'extensions'
end
end
class GoogleCloudMlV1AutoScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_nodes, as: 'minNodes'
end
end
class GoogleCloudMlV1ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :nodes, as: 'nodes'
end
end
class GoogleCloudMlV1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :is_cancellation_requested, as: 'isCancellationRequested'
property :model_name, as: 'modelName'
property :operation_type, as: 'operationType'
property :start_time, as: 'startTime'
property :version, as: 'version', class: Google::Apis::MlV1beta1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1Version::Representation
end
end
class GoogleCloudMlV1Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_scaling, as: 'autoScaling', class: Google::Apis::MlV1beta1::GoogleCloudMlV1AutoScaling, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1AutoScaling::Representation
property :create_time, as: 'createTime'
property :deployment_uri, as: 'deploymentUri'
property :description, as: 'description'
property :error_message, as: 'errorMessage'
property :is_default, as: 'isDefault'
property :last_use_time, as: 'lastUseTime'
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1beta1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1ManualScaling::Representation
property :name, as: 'name'
property :runtime_version, as: 'runtimeVersion'
property :state, as: 'state'
end
end
class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :objective_value, as: 'objectiveValue'
property :training_step, :numeric_string => true, as: 'trainingStep'
end
end
class GoogleCloudMlV1beta1AutoScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_nodes, as: 'minNodes'
end
end
class GoogleCloudMlV1beta1CancelJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudMlV1beta1GetConfigResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service_account, as: 'serviceAccount'
property :service_account_project, :numeric_string => true, as: 'serviceAccountProject'
end
end
class GoogleCloudMlV1beta1HyperparameterOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :all_metrics, as: 'allMetrics', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric::Representation
property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric::Representation
hash :hyperparameters, as: 'hyperparameters'
property :trial_id, as: 'trialId'
end
end
class GoogleCloudMlV1beta1HyperparameterSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :goal, as: 'goal'
property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag'
property :max_parallel_trials, as: 'maxParallelTrials'
property :max_trials, as: 'maxTrials'
collection :params, as: 'params', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ParameterSpec, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ParameterSpec::Representation
end
end
class GoogleCloudMlV1beta1Job
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :error_message, as: 'errorMessage'
property :job_id, as: 'jobId'
property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionInput, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionInput::Representation
property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionOutput, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionOutput::Representation
property :start_time, as: 'startTime'
property :state, as: 'state'
property :training_input, as: 'trainingInput', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingInput, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingInput::Representation
property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingOutput, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1TrainingOutput::Representation
end
end
class GoogleCloudMlV1beta1ListJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :jobs, as: 'jobs', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudMlV1beta1ListModelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :models, as: 'models', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudMlV1beta1ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :versions, as: 'versions', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
end
end
class GoogleCloudMlV1beta1ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :nodes, as: 'nodes'
end
end
class GoogleCloudMlV1beta1Model
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
property :description, as: 'description'
property :name, as: 'name'
property :online_prediction_logging, as: 'onlinePredictionLogging'
collection :regions, as: 'regions'
end
end
class GoogleCloudMlV1beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :is_cancellation_requested, as: 'isCancellationRequested'
property :model_name, as: 'modelName'
property :operation_type, as: 'operationType'
property :start_time, as: 'startTime'
property :version, as: 'version', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
end
end
class GoogleCloudMlV1beta1ParameterSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categorical_values, as: 'categoricalValues'
collection :discrete_values, as: 'discreteValues'
property :max_value, as: 'maxValue'
property :min_value, as: 'minValue'
property :parameter_name, as: 'parameterName'
property :scale_type, as: 'scaleType'
property :type, as: 'type'
end
end
class GoogleCloudMlV1beta1PredictRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_body, as: 'httpBody', class: Google::Apis::MlV1beta1::GoogleApiHttpBody, decorator: Google::Apis::MlV1beta1::GoogleApiHttpBody::Representation
end
end
class GoogleCloudMlV1beta1PredictionInput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_size, :numeric_string => true, as: 'batchSize'
property :data_format, as: 'dataFormat'
collection :input_paths, as: 'inputPaths'
property :max_worker_count, :numeric_string => true, as: 'maxWorkerCount'
property :model_name, as: 'modelName'
property :output_path, as: 'outputPath'
property :region, as: 'region'
property :runtime_version, as: 'runtimeVersion'
property :uri, as: 'uri'
property :version_name, as: 'versionName'
end
end
class GoogleCloudMlV1beta1PredictionOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_count, :numeric_string => true, as: 'errorCount'
property :node_hours, as: 'nodeHours'
property :output_path, as: 'outputPath'
property :prediction_count, :numeric_string => true, as: 'predictionCount'
end
end
class GoogleCloudMlV1beta1SetDefaultVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudMlV1beta1TrainingInput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args'
property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterSpec, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterSpec::Representation
property :job_dir, as: 'jobDir'
property :master_type, as: 'masterType'
collection :package_uris, as: 'packageUris'
property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
property :parameter_server_type, as: 'parameterServerType'
property :python_module, as: 'pythonModule'
property :region, as: 'region'
property :runtime_version, as: 'runtimeVersion'
property :scale_tier, as: 'scaleTier'
property :worker_count, :numeric_string => true, as: 'workerCount'
property :worker_type, as: 'workerType'
end
end
class GoogleCloudMlV1beta1TrainingOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount'
property :consumed_ml_units, as: 'consumedMLUnits'
property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob'
collection :trials, as: 'trials', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutput, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1HyperparameterOutput::Representation
end
end
class GoogleCloudMlV1beta1Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_scaling, as: 'autoScaling', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1AutoScaling, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1AutoScaling::Representation
property :create_time, as: 'createTime'
property :deployment_uri, as: 'deploymentUri'
property :description, as: 'description'
property :error_message, as: 'errorMessage'
property :is_default, as: 'isDefault'
property :last_use_time, as: 'lastUseTime'
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ManualScaling::Representation
property :name, as: 'name'
property :runtime_version, as: 'runtimeVersion'
property :state, as: 'state'
end
end
class GoogleIamV1LogConfigCloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
end
end
class GoogleIamV1LogConfigCounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field'
property :metric, as: 'metric'
end
end
class GoogleIamV1LogConfigDataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_mode, as: 'logMode'
end
end
class GoogleIamV1AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MlV1beta1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::MlV1beta1::GoogleIamV1AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class GoogleIamV1AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::MlV1beta1::GoogleTypeExpr, decorator: Google::Apis::MlV1beta1::GoogleTypeExpr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class GoogleIamV1LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::MlV1beta1::GoogleIamV1LogConfigCloudAuditOptions, decorator: Google::Apis::MlV1beta1::GoogleIamV1LogConfigCloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::MlV1beta1::GoogleIamV1LogConfigCounterOptions, decorator: Google::Apis::MlV1beta1::GoogleIamV1LogConfigCounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::MlV1beta1::GoogleIamV1LogConfigDataAccessOptions, decorator: Google::Apis::MlV1beta1::GoogleIamV1LogConfigDataAccessOptions::Representation
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MlV1beta1::GoogleIamV1AuditConfig, decorator: Google::Apis::MlV1beta1::GoogleIamV1AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::MlV1beta1::GoogleIamV1Binding, decorator: Google::Apis::MlV1beta1::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::MlV1beta1::GoogleIamV1Rule, decorator: Google::Apis::MlV1beta1::GoogleIamV1Rule::Representation
property :version, as: 'version'
end
end
class GoogleIamV1Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
collection :conditions, as: 'conditions', class: Google::Apis::MlV1beta1::GoogleIamV1Condition, decorator: Google::Apis::MlV1beta1::GoogleIamV1Condition::Representation
property :description, as: 'description'
collection :in, as: 'in'
collection :log_config, as: 'logConfig', class: Google::Apis::MlV1beta1::GoogleIamV1LogConfig, decorator: Google::Apis::MlV1beta1::GoogleIamV1LogConfig::Representation
collection :not_in, as: 'notIn'
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::MlV1beta1::GoogleIamV1Policy, decorator: Google::Apis::MlV1beta1::GoogleIamV1Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class GoogleIamV1TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleLongrunningListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::MlV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::MlV1beta1::GoogleLongrunningOperation::Representation
end
end
class GoogleLongrunningOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::MlV1beta1::GoogleRpcStatus, decorator: Google::Apis::MlV1beta1::GoogleRpcStatus::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleRpcStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class GoogleTypeExpr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
end
end
end

View File

@ -1,975 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module MlV1beta1
# Google Cloud Machine Learning Engine
#
# An API to enable creating and using machine learning models.
#
# @example
# require 'google/apis/ml_v1beta1'
#
# Ml = Google::Apis::MlV1beta1 # Alias the module
# service = Ml::CloudMachineLearningEngineService.new
#
# @see https://cloud.google.com/ml/
class CloudMachineLearningEngineService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://ml.googleapis.com/', '')
@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.
# @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::MlV1beta1::GoogleCloudMlV1beta1GetConfigResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1GetConfigResponse]
#
# @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, 'v1beta1/{+name}:getConfig', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1GetConfigResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1GetConfigResponse
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 the `predict` permission on the specified resource.
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictRequest] google_cloud_ml_v1beta1__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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleApiHttpBody] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleApiHttpBody]
#
# @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_v1beta1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:predict', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictRequest::Representation
command.request_object = google_cloud_ml_v1beta1__predict_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleApiHttpBody::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleApiHttpBody
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
# Cancels a running job.
# @param [String] name
# Required. The name of the job to cancel.
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1CancelJobRequest] google_cloud_ml_v1beta1__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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleProtobufEmpty]
#
# @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_v1beta1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1CancelJobRequest::Representation
command.request_object = google_cloud_ml_v1beta1__cancel_job_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleProtobufEmpty
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 training or a batch prediction job.
# @param [String] parent
# Required. The project name.
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job] google_cloud_ml_v1beta1__job_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::MlV1beta1::GoogleCloudMlV1beta1Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job]
#
# @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_v1beta1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/jobs', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job::Representation
command.request_object = google_cloud_ml_v1beta1__job_object
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job
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
# Describes a job.
# @param [String] name
# Required. The name of the job to get the description of.
# @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::MlV1beta1::GoogleCloudMlV1beta1Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job]
#
# @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)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Job
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
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @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::MlV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1Policy]
#
# @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_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the jobs in the project.
# @param [String] parent
# Required. The name of the project for which to list jobs.
# @param [String] filter
# Optional. Specifies the subset of jobs to retrieve.
# @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
# contain a valid value in the `next_page_token` field.
# The default value is 20, and the maximum page size is 100.
# @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] 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::MlV1beta1::GoogleCloudMlV1beta1ListJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListJobsResponse]
#
# @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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/jobs', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListJobsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListJobsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_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::MlV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1Policy]
#
# @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_job_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1__set_iam_policy_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_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::MlV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse]
#
# @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 test_project_job_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
command.request_object = google_iam_v1__test_iam_permissions_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse
command.params['resource'] = resource unless resource.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 model which will later contain one or more versions.
# You must add at least one version before you can request predictions from
# the model. Add versions by calling
# [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
# models.versions/create).
# @param [String] parent
# Required. The project name.
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model] google_cloud_ml_v1beta1__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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model]
#
# @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_v1beta1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/models', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model::Representation
command.request_object = google_cloud_ml_v1beta1__model_object
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model
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
# Deletes a model.
# You can only delete a model if there are no versions in it. You can delete
# versions by calling
# [projects.models.versions.delete](/ml-engine/reference/rest/v1beta1/projects.
# models.versions/delete).
# @param [String] name
# Required. The name of the model.
# @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::MlV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::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 delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::MlV1beta1::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
# Gets information about a model, including its name, the description (if
# set), and the default version (if at least one version of the model has
# been deployed).
# @param [String] name
# Required. The name of the model.
# @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::MlV1beta1::GoogleCloudMlV1beta1Model] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model]
#
# @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)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model
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
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @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::MlV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1Policy]
#
# @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_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the models in a project.
# Each project can contain multiple models, and each model can have multiple
# versions.
# @param [String] parent
# Required. The name of the project whose models are to be listed.
# @param [Fixnum] page_size
# Optional. The number of models to retrieve per "page" of results. If 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] 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] 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::MlV1beta1::GoogleCloudMlV1beta1ListModelsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListModelsResponse]
#
# @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_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/models', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListModelsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListModelsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_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::MlV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1Policy]
#
# @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_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1__set_iam_policy_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_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::MlV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse]
#
# @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 test_project_model_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
command.request_object = google_iam_v1__test_iam_permissions_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleIamV1TestIamPermissionsResponse
command.params['resource'] = resource unless resource.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/v1beta1/
# projects.models.versions/setDefault).
# @param [String] parent
# Required. The name of the model.
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version] google_cloud_ml_v1beta1__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::MlV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::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_v1beta1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
command.request_object = google_cloud_ml_v1beta1__version_object
command.response_representation = Google::Apis::MlV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::MlV1beta1::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
# Deletes a model version.
# Each model can have multiple versions deployed and in use at any given
# time. Use this method to remove a single version.
# Note: You cannot delete the version that is set as the default version
# of the model unless it is the only remaining version.
# @param [String] name
# Required. The name of the version. You can get the names of all the
# versions of a model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
# models.versions/list).
# @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::MlV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::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 delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::MlV1beta1::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
# Gets information about a model version.
# Models can have multiple versions. You can call
# [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
# models.versions/list)
# to get the same information that this method returns for all of the
# versions of a model.
# @param [String] name
# Required. The name of the version.
# @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::MlV1beta1::GoogleCloudMlV1beta1Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version]
#
# @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)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version
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
# Gets basic information about all the versions of a model.
# If you expect that a model has a lot of versions, or if you need to handle
# only a limited number of results at a time, you can request that the list
# be retrieved in batches (called pages):
# @param [String] parent
# Required. The name of the model for which to list the version.
# @param [Fixnum] page_size
# Optional. The number of versions to retrieve per "page" of results. If
# 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] 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] 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::MlV1beta1::GoogleCloudMlV1beta1ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListVersionsResponse]
#
# @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_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListVersionsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1ListVersionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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/v1beta1/projects.
# models.versions/list).
# @param [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1SetDefaultVersionRequest] google_cloud_ml_v1beta1__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::MlV1beta1::GoogleCloudMlV1beta1Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version]
#
# @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_v1beta1__set_default_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:setDefault', options)
command.request_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1SetDefaultVersionRequest::Representation
command.request_object = google_cloud_ml_v1beta1__set_default_version_request_object
command.response_representation = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version
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
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# 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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleProtobufEmpty]
#
# @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)
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleProtobufEmpty
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
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleProtobufEmpty]
#
# @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)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleProtobufEmpty
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
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# 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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MlV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::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 get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::MlV1beta1::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
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::MlV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1beta1::GoogleLongrunningListOperationsResponse]
#
# @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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
command.response_representation = Google::Apis::MlV1beta1::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::MlV1beta1::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/ # @see https://developers.google.com/sheets/
module SheetsV4 module SheetsV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20170915' REVISION = '20170929'
# View and manage the files in your Google Drive # View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -998,6 +998,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
# Position settings for text.
# Corresponds to the JSON property `titleTextPosition`
# @return [Google::Apis::SheetsV4::TextPosition]
attr_accessor :title_text_position
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1007,6 +1012,7 @@ module Google
@format = args[:format] if args.key?(:format) @format = args[:format] if args.key?(:format)
@position = args[:position] if args.key?(:position) @position = args[:position] if args.key?(:position)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
@title_text_position = args[:title_text_position] if args.key?(:title_text_position)
end end
end end
@ -1096,6 +1102,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :chart_type attr_accessor :chart_type
# The behavior of tooltips and data highlighting when hovering on data and
# chart area.
# Corresponds to the JSON property `compareMode`
# @return [String]
attr_accessor :compare_mode
# The domain of data this is charting. # The domain of data this is charting.
# Only a single domain is supported. # Only a single domain is supported.
# Corresponds to the JSON property `domains` # Corresponds to the JSON property `domains`
@ -1158,6 +1170,7 @@ module Google
def update!(**args) def update!(**args)
@axis = args[:axis] if args.key?(:axis) @axis = args[:axis] if args.key?(:axis)
@chart_type = args[:chart_type] if args.key?(:chart_type) @chart_type = args[:chart_type] if args.key?(:chart_type)
@compare_mode = args[:compare_mode] if args.key?(:compare_mode)
@domains = args[:domains] if args.key?(:domains) @domains = args[:domains] if args.key?(:domains)
@header_count = args[:header_count] if args.key?(:header_count) @header_count = args[:header_count] if args.key?(:header_count)
@interpolate_nulls = args[:interpolate_nulls] if args.key?(:interpolate_nulls) @interpolate_nulls = args[:interpolate_nulls] if args.key?(:interpolate_nulls)
@ -1504,7 +1517,7 @@ module Google
# The new values to apply to the spreadsheet. If more than one range is # The new values to apply to the spreadsheet. If more than one range is
# matched by the specified DataFilter the specified values will be # matched by the specified DataFilter the specified values will be
# applied to all of of those ranges. # applied to all of those ranges.
# Corresponds to the JSON property `data` # Corresponds to the JSON property `data`
# @return [Array<Google::Apis::SheetsV4::DataFilterValueRange>] # @return [Array<Google::Apis::SheetsV4::DataFilterValueRange>]
attr_accessor :data attr_accessor :data
@ -2722,6 +2735,22 @@ module Google
# @return [Google::Apis::SheetsV4::PieChartSpec] # @return [Google::Apis::SheetsV4::PieChartSpec]
attr_accessor :pie_chart attr_accessor :pie_chart
# The subtitle of the chart.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# The format of a run of text in a cell.
# Absent values indicate that the field isn't specified.
# Corresponds to the JSON property `subtitleTextFormat`
# @return [Google::Apis::SheetsV4::TextFormat]
attr_accessor :subtitle_text_format
# Position settings for text.
# Corresponds to the JSON property `subtitleTextPosition`
# @return [Google::Apis::SheetsV4::TextPosition]
attr_accessor :subtitle_text_position
# The title of the chart. # The title of the chart.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
@ -2733,6 +2762,11 @@ module Google
# @return [Google::Apis::SheetsV4::TextFormat] # @return [Google::Apis::SheetsV4::TextFormat]
attr_accessor :title_text_format attr_accessor :title_text_format
# Position settings for text.
# Corresponds to the JSON property `titleTextPosition`
# @return [Google::Apis::SheetsV4::TextPosition]
attr_accessor :title_text_position
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2750,8 +2784,12 @@ module Google
@maximized = args[:maximized] if args.key?(:maximized) @maximized = args[:maximized] if args.key?(:maximized)
@org_chart = args[:org_chart] if args.key?(:org_chart) @org_chart = args[:org_chart] if args.key?(:org_chart)
@pie_chart = args[:pie_chart] if args.key?(:pie_chart) @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@subtitle_text_format = args[:subtitle_text_format] if args.key?(:subtitle_text_format)
@subtitle_text_position = args[:subtitle_text_position] if args.key?(:subtitle_text_position)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
@title_text_format = args[:title_text_format] if args.key?(:title_text_format) @title_text_format = args[:title_text_format] if args.key?(:title_text_format)
@title_text_position = args[:title_text_position] if args.key?(:title_text_position)
end end
end end
@ -3243,12 +3281,12 @@ module Google
attr_accessor :a1_range attr_accessor :a1_range
# Selects DeveloperMetadata that matches all of the specified fields. For # Selects DeveloperMetadata that matches all of the specified fields. For
# example, if only a metadata ID is specified this will consider the # example, if only a metadata ID is specified this considers the
# DeveloperMetadata with that particular unique ID. If a metadata key is # DeveloperMetadata with that particular unique ID. If a metadata key is
# specified, all developer metadata with that key will be considered. If a # specified, this considers all developer metadata with that key. If a
# key, visibility, and location type are all specified, then all # key, visibility, and location type are all specified, this considers all
# developer metadata with that key, visibility, and associated with a # developer metadata with that key and visibility that are associated with a
# location of that type will be considered. In general, this # location of that type. In general, this
# selects all DeveloperMetadata that matches the intersection of all the # selects all DeveloperMetadata that matches the intersection of all the
# specified fields; any field or combination of fields may be specified. # specified fields; any field or combination of fields may be specified.
# Corresponds to the JSON property `developerMetadataLookup` # Corresponds to the JSON property `developerMetadataLookup`
@ -3737,12 +3775,12 @@ module Google
end end
# Selects DeveloperMetadata that matches all of the specified fields. For # Selects DeveloperMetadata that matches all of the specified fields. For
# example, if only a metadata ID is specified this will consider the # example, if only a metadata ID is specified this considers the
# DeveloperMetadata with that particular unique ID. If a metadata key is # DeveloperMetadata with that particular unique ID. If a metadata key is
# specified, all developer metadata with that key will be considered. If a # specified, this considers all developer metadata with that key. If a
# key, visibility, and location type are all specified, then all # key, visibility, and location type are all specified, this considers all
# developer metadata with that key, visibility, and associated with a # developer metadata with that key and visibility that are associated with a
# location of that type will be considered. In general, this # location of that type. In general, this
# selects all DeveloperMetadata that matches the intersection of all the # selects all DeveloperMetadata that matches the intersection of all the
# specified fields; any field or combination of fields may be specified. # specified fields; any field or combination of fields may be specified.
class DeveloperMetadataLookup class DeveloperMetadataLookup
@ -3750,10 +3788,9 @@ module Google
# Determines how this lookup matches the location. If this field is # Determines how this lookup matches the location. If this field is
# specified as EXACT, only developer metadata associated on the exact # specified as EXACT, only developer metadata associated on the exact
# location specified will be matched. If this field is specified to # location specified is matched. If this field is specified to INTERSECTING,
# INTERSECTING, # developer metadata associated on intersecting locations is also
# developer metadata associated on intersecting locations will also be # matched. If left unspecified, this field assumes a default value of
# matched. If left unspecified, this field will assume a default value of
# INTERSECTING. # INTERSECTING.
# If this field is specified, a metadataLocation # If this field is specified, a metadataLocation
# must also be specified. # must also be specified.
@ -3762,19 +3799,18 @@ module Google
attr_accessor :location_matching_strategy attr_accessor :location_matching_strategy
# Limits the selected developer metadata to those entries which are # Limits the selected developer metadata to those entries which are
# associated with locations of the specified type. For example, specifying # associated with locations of the specified type. For example, when this
# this as ROW will only consider # field is specified as ROW this lookup
# developer metadata associated on rows. If left unspecified, all location # only considers developer metadata associated on rows. If the field is left
# types will be considered. This field cannot be specified as # unspecified, all location types are considered. This field cannot be
# SPREADSHEET when the # specified as SPREADSHEET when
# locationMatchingStrategy is # the locationMatchingStrategy
# specified as INTERSECTING or when the # is specified as INTERSECTING or when the
# metadataLocation is specified as a # metadataLocation is specified as a
# non-spreadsheet location: spreadsheet metadata cannot intersect any other # non-spreadsheet location: spreadsheet metadata cannot intersect any other
# developer metadata location. This field also must be left unspecified when # developer metadata location. This field also must be left unspecified when
# the # the locationMatchingStrategy
# locationMatchingStrategy is # is specified as EXACT.
# specified as EXACT.
# Corresponds to the JSON property `locationType` # Corresponds to the JSON property `locationType`
# @return [String] # @return [String]
attr_accessor :location_type attr_accessor :location_type
@ -3804,7 +3840,7 @@ module Google
# Limits the selected developer metadata to that which has a matching # Limits the selected developer metadata to that which has a matching
# DeveloperMetadata.visibility. If left unspecified, all developer # DeveloperMetadata.visibility. If left unspecified, all developer
# metadata visibile to the requesting project will be considered. # metadata visibile to the requesting project is considered.
# Corresponds to the JSON property `visibility` # Corresponds to the JSON property `visibility`
# @return [String] # @return [String]
attr_accessor :visibility attr_accessor :visibility
@ -7487,6 +7523,25 @@ module Google
end end
end end
# Position settings for text.
class TextPosition
include Google::Apis::Core::Hashable
# Horizontal alignment setting for the piece of text.
# Corresponds to the JSON property `horizontalAlignment`
# @return [String]
attr_accessor :horizontal_alignment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
end
end
# The rotation applied to text in a cell. # The rotation applied to text in a cell.
class TextRotation class TextRotation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -886,6 +886,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TextPosition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextRotation class TextRotation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1205,6 +1211,8 @@ module Google
property :position, as: 'position' property :position, as: 'position'
property :title, as: 'title' property :title, as: 'title'
property :title_text_position, as: 'titleTextPosition', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation
end end
end end
@ -1233,6 +1241,7 @@ module Google
collection :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation collection :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation
property :chart_type, as: 'chartType' property :chart_type, as: 'chartType'
property :compare_mode, as: 'compareMode'
collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation
property :header_count, as: 'headerCount' property :header_count, as: 'headerCount'
@ -1581,9 +1590,16 @@ module Google
property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation
property :subtitle, as: 'subtitle'
property :subtitle_text_format, as: 'subtitleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
property :subtitle_text_position, as: 'subtitleTextPosition', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation
property :title, as: 'title' property :title, as: 'title'
property :title_text_format, as: 'titleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation property :title_text_format, as: 'titleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
property :title_text_position, as: 'titleTextPosition', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation
end end
end end
@ -2661,6 +2677,13 @@ module Google
end end
end end
class TextPosition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :horizontal_alignment, as: 'horizontalAlignment'
end
end
class TextRotation class TextRotation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -226,7 +226,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns the developer metadata with the specified id. # Returns the developer metadata with the specified ID.
# The caller must specify the spreadsheet ID and the developer metadata's # The caller must specify the spreadsheet ID and the developer metadata's
# unique metadataId. # unique metadataId.
# @param [String] spreadsheet_id # @param [String] spreadsheet_id
@ -530,10 +530,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns one or more ranges of values from a spreadsheet that match the # Returns one or more ranges of values that match the specified data filters.
# specified data filters. The caller must specify the spreadsheet ID and # The caller must specify the spreadsheet ID and one or more
# one or more DataFilters. Ranges that match any of the data # DataFilters. Ranges that match any of the data filters in
# filters in the request will be returned. # the request will be returned.
# @param [String] spreadsheet_id # @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from. # The ID of the spreadsheet to retrieve data from.
# @param [Google::Apis::SheetsV4::BatchGetValuesByDataFilterRequest] batch_get_values_by_data_filter_request_object # @param [Google::Apis::SheetsV4::BatchGetValuesByDataFilterRequest] batch_get_values_by_data_filter_request_object

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/ # @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1 module StreetviewpublishV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170927' REVISION = '20170930'
# Publish and manage your 360 photos on Google Street View # Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'

View File

@ -283,6 +283,103 @@ module Google
end end
end end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::StreetviewpublishV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@response = args[:response] if args.key?(:response)
end
end
# Photo is used to store 360 photos along with photo metadata. # Photo is used to store 360 photos along with photo metadata.
class Photo class Photo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -82,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Photo class Photo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,6 +214,18 @@ module Google
end end
end end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::StreetviewpublishV1::Status, decorator: Google::Apis::StreetviewpublishV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class Photo class Photo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation