2016-01-29 22:32:46 +00:00
|
|
|
# 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 DataprocV1
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class YarnApplication
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class QueryList
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class HadoopJob
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterRequest
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class DiskConfig
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterOperationMetadata
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Empty
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class HiveJob
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterResults
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterConfig
|
2016-11-08 23:43:14 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class PySparkJob
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class GceClusterConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterMetrics
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class LoggingConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterOutputLocation
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Operation
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class OperationStatus
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobReference
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SubmitJobRequest
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Status
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobScheduling
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class InstanceGroupConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListJobsResponse
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class NodeInitializationAction
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class CancelJobRequest
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class SparkSqlJob
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Cluster
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListOperationsResponse
|
2016-11-08 23:43:14 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class OperationMetadata
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobPlacement
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SoftwareConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class PigJob
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterStatus
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListClustersResponse
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Job
|
2016-02-25 23:16:53 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SparkJob
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobStatus
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ManagedGroupConfig
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterOperationStatus
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-11-08 23:43:14 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class YarnApplication
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :tracking_url, as: 'trackingUrl'
|
|
|
|
property :progress, as: 'progress'
|
|
|
|
property :state, as: 'state'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class QueryList
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :queries, as: 'queries'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class HadoopJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :properties, as: 'properties'
|
|
|
|
collection :args, as: 'args'
|
|
|
|
collection :file_uris, as: 'fileUris'
|
|
|
|
property :main_class, as: 'mainClass'
|
|
|
|
collection :archive_uris, as: 'archiveUris'
|
|
|
|
property :main_jar_file_uri, as: 'mainJarFileUri'
|
|
|
|
end
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class DiskConfig
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :num_local_ssds, as: 'numLocalSsds'
|
2017-02-13 23:28:52 +00:00
|
|
|
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterOperationMetadata
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :warnings, as: 'warnings'
|
|
|
|
hash :labels, as: 'labels'
|
|
|
|
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
|
|
|
|
|
|
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
|
|
|
|
|
|
|
property :cluster_name, as: 'clusterName'
|
|
|
|
property :cluster_uuid, as: 'clusterUuid'
|
|
|
|
property :operation_type, as: 'operationType'
|
|
|
|
property :description, as: 'description'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Empty
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class HiveJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
|
|
|
|
|
|
property :query_file_uri, as: 'queryFileUri'
|
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
hash :script_variables, as: 'scriptVariables'
|
|
|
|
hash :properties, as: 'properties'
|
|
|
|
property :continue_on_failure, as: 'continueOnFailure'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterResults
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :output_uri, as: 'outputUri'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterConfig
|
2016-11-08 23:43:14 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :gce_cluster_config, as: 'gceClusterConfig', class: Google::Apis::DataprocV1::GceClusterConfig, decorator: Google::Apis::DataprocV1::GceClusterConfig::Representation
|
|
|
|
|
|
|
|
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
|
|
|
|
|
|
|
|
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
|
|
|
|
|
|
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
|
|
|
|
|
|
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
|
|
|
|
|
|
|
property :config_bucket, as: 'configBucket'
|
|
|
|
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
|
|
|
2016-11-08 23:43:14 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class PySparkJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :main_python_file_uri, as: 'mainPythonFileUri'
|
|
|
|
collection :archive_uris, as: 'archiveUris'
|
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :properties, as: 'properties'
|
|
|
|
collection :args, as: 'args'
|
|
|
|
collection :file_uris, as: 'fileUris'
|
|
|
|
collection :python_file_uris, as: 'pythonFileUris'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class GceClusterConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :tags, as: 'tags'
|
|
|
|
property :service_account, as: 'serviceAccount'
|
|
|
|
property :subnetwork_uri, as: 'subnetworkUri'
|
|
|
|
property :network_uri, as: 'networkUri'
|
|
|
|
property :zone_uri, as: 'zoneUri'
|
|
|
|
property :internal_ip_only, as: 'internalIpOnly'
|
|
|
|
hash :metadata, as: 'metadata'
|
|
|
|
collection :service_account_scopes, as: 'serviceAccountScopes'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterMetrics
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :hdfs_metrics, as: 'hdfsMetrics'
|
|
|
|
hash :yarn_metrics, as: 'yarnMetrics'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class LoggingConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :driver_log_levels, as: 'driverLogLevels'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class DiagnoseClusterOutputLocation
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :output_uri, as: 'outputUri'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Operation
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :done, as: 'done'
|
|
|
|
hash :response, as: 'response'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :metadata, as: 'metadata'
|
|
|
|
end
|
|
|
|
end
|
2016-11-08 23:43:14 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class OperationStatus
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :state, as: 'state'
|
|
|
|
property :details, as: 'details'
|
|
|
|
property :inner_state, as: 'innerState'
|
|
|
|
property :state_start_time, as: 'stateStartTime'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobReference
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :job_id, as: 'jobId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SubmitJobRequest
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Status
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :code, as: 'code'
|
|
|
|
property :message, as: 'message'
|
|
|
|
collection :details, as: 'details'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobScheduling
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class InstanceGroupConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
|
|
|
|
|
|
|
property :machine_type_uri, as: 'machineTypeUri'
|
|
|
|
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
property :is_preemptible, as: 'isPreemptible'
|
|
|
|
property :image_uri, as: 'imageUri'
|
|
|
|
collection :instance_names, as: 'instanceNames'
|
|
|
|
property :num_instances, as: 'numInstances'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListJobsResponse
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class NodeInitializationAction
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :executable_file, as: 'executableFile'
|
|
|
|
property :execution_timeout, as: 'executionTimeout'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class CancelJobRequest
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SparkSqlJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :query_file_uri, as: 'queryFileUri'
|
|
|
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
|
|
|
|
|
|
hash :script_variables, as: 'scriptVariables'
|
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :properties, as: 'properties'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Cluster
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :labels, as: 'labels'
|
|
|
|
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
|
|
|
|
|
|
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
|
|
|
|
|
|
|
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
property :cluster_uuid, as: 'clusterUuid'
|
|
|
|
property :cluster_name, as: 'clusterName'
|
|
|
|
property :project_id, as: 'projectId'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListOperationsResponse
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class OperationMetadata
|
2016-11-08 23:43:14 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :operation_type, as: 'operationType'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
|
|
|
|
|
|
|
property :details, as: 'details'
|
2016-11-08 23:43:14 +00:00
|
|
|
property :state, as: 'state'
|
2017-02-13 23:28:52 +00:00
|
|
|
property :cluster_name, as: 'clusterName'
|
|
|
|
property :cluster_uuid, as: 'clusterUuid'
|
|
|
|
property :inner_state, as: 'innerState'
|
|
|
|
property :end_time, as: 'endTime'
|
|
|
|
property :start_time, as: 'startTime'
|
|
|
|
collection :warnings, as: 'warnings'
|
|
|
|
property :insert_time, as: 'insertTime'
|
|
|
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
|
|
|
|
2016-11-08 23:43:14 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobPlacement
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :cluster_name, as: 'clusterName'
|
|
|
|
property :cluster_uuid, as: 'clusterUuid'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SoftwareConfig
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :image_version, as: 'imageVersion'
|
|
|
|
hash :properties, as: 'properties'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class PigJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
|
|
|
|
|
|
property :query_file_uri, as: 'queryFileUri'
|
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
hash :script_variables, as: 'scriptVariables'
|
|
|
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
|
|
|
|
|
|
hash :properties, as: 'properties'
|
|
|
|
property :continue_on_failure, as: 'continueOnFailure'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterStatus
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :state_start_time, as: 'stateStartTime'
|
|
|
|
property :detail, as: 'detail'
|
|
|
|
property :state, as: 'state'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListClustersResponse
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :clusters, as: 'clusters', class: Google::Apis::DataprocV1::Cluster, decorator: Google::Apis::DataprocV1::Cluster::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class Job
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
|
|
|
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
|
|
|
|
|
|
|
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2016-11-08 23:43:14 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-02-13 23:28:52 +00:00
|
|
|
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
|
|
|
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
|
|
|
|
|
|
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
|
|
|
|
|
|
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
|
|
|
|
|
|
|
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
|
|
|
|
|
|
|
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
|
|
|
|
|
|
|
property :reference, as: 'reference', class: Google::Apis::DataprocV1::JobReference, decorator: Google::Apis::DataprocV1::JobReference::Representation
|
|
|
|
|
|
|
|
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
|
|
|
|
|
|
|
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
|
|
|
|
|
|
property :placement, as: 'placement', class: Google::Apis::DataprocV1::JobPlacement, decorator: Google::Apis::DataprocV1::JobPlacement::Representation
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class SparkJob
|
2016-02-25 23:16:53 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
|
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
|
|
|
|
|
|
hash :properties, as: 'properties'
|
|
|
|
collection :args, as: 'args'
|
|
|
|
collection :file_uris, as: 'fileUris'
|
|
|
|
property :main_class, as: 'mainClass'
|
|
|
|
collection :archive_uris, as: 'archiveUris'
|
|
|
|
property :main_jar_file_uri, as: 'mainJarFileUri'
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class JobStatus
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :state, as: 'state'
|
|
|
|
property :details, as: 'details'
|
|
|
|
property :state_start_time, as: 'stateStartTime'
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ManagedGroupConfig
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :instance_group_manager_name, as: 'instanceGroupManagerName'
|
|
|
|
property :instance_template_name, as: 'instanceTemplateName'
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ClusterOperationStatus
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :state, as: 'state'
|
|
|
|
property :details, as: 'details'
|
2017-02-13 23:28:52 +00:00
|
|
|
property :inner_state, as: 'innerState'
|
2016-01-29 22:32:46 +00:00
|
|
|
property :state_start_time, as: 'stateStartTime'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|