Documentation ¶
Overview ¶
Package dataproc provides access to the Google Cloud Dataproc API.
See https://cloud.google.com/dataproc/
Usage example:
import "google.golang.org/api/dataproc/v1beta1" ... dataprocService, err := dataproc.New(oauthHttpClient)
Index ¶
- Constants
- type CancelJobRequest
- type CancelOperationRequest
- type Cluster
- type ClusterConfiguration
- type ClusterStatus
- type DiagnoseClusterOutputLocation
- type DiagnoseClusterRequest
- type DiskConfiguration
- type Empty
- type GceClusterConfiguration
- type HadoopJob
- type HiveJob
- type InstanceGroupConfiguration
- type Job
- type JobPlacement
- type JobReference
- type JobStatus
- type ListClustersResponse
- type ListJobsResponse
- type ListOperationsResponse
- type LoggingConfiguration
- type ManagedGroupConfiguration
- type NodeInitializationAction
- type Operation
- type OperationMetadata
- type OperationMetadata1
- type OperationResponse
- type OperationStatus
- type OperationsCancelCall
- type OperationsDeleteCall
- type OperationsGetCall
- func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
- func (c *OperationsGetCall) Do() (*Operation, error)
- func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
- func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
- func (c *OperationsGetCall) QuotaUser(quotaUser string) *OperationsGetCall
- type OperationsListCall
- func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
- func (c *OperationsListCall) Do() (*ListOperationsResponse, error)
- func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
- func (c *OperationsListCall) Filter(filter string) *OperationsListCall
- func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
- func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall
- func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
- func (c *OperationsListCall) QuotaUser(quotaUser string) *OperationsListCall
- type OperationsService
- func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall
- func (r *OperationsService) Delete(name string) *OperationsDeleteCall
- func (r *OperationsService) Get(name string) *OperationsGetCall
- func (r *OperationsService) List(name string) *OperationsListCall
- type PigJob
- type ProjectsClustersCreateCall
- func (c *ProjectsClustersCreateCall) Context(ctx context.Context) *ProjectsClustersCreateCall
- func (c *ProjectsClustersCreateCall) Do() (*Operation, error)
- func (c *ProjectsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsClustersCreateCall
- func (c *ProjectsClustersCreateCall) QuotaUser(quotaUser string) *ProjectsClustersCreateCall
- type ProjectsClustersDeleteCall
- func (c *ProjectsClustersDeleteCall) Context(ctx context.Context) *ProjectsClustersDeleteCall
- func (c *ProjectsClustersDeleteCall) Do() (*Operation, error)
- func (c *ProjectsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsClustersDeleteCall
- func (c *ProjectsClustersDeleteCall) QuotaUser(quotaUser string) *ProjectsClustersDeleteCall
- type ProjectsClustersDiagnoseCall
- func (c *ProjectsClustersDiagnoseCall) Context(ctx context.Context) *ProjectsClustersDiagnoseCall
- func (c *ProjectsClustersDiagnoseCall) Do() (*Operation, error)
- func (c *ProjectsClustersDiagnoseCall) Fields(s ...googleapi.Field) *ProjectsClustersDiagnoseCall
- func (c *ProjectsClustersDiagnoseCall) QuotaUser(quotaUser string) *ProjectsClustersDiagnoseCall
- type ProjectsClustersGetCall
- func (c *ProjectsClustersGetCall) Context(ctx context.Context) *ProjectsClustersGetCall
- func (c *ProjectsClustersGetCall) Do() (*Cluster, error)
- func (c *ProjectsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsClustersGetCall
- func (c *ProjectsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsClustersGetCall
- func (c *ProjectsClustersGetCall) QuotaUser(quotaUser string) *ProjectsClustersGetCall
- type ProjectsClustersListCall
- func (c *ProjectsClustersListCall) Context(ctx context.Context) *ProjectsClustersListCall
- func (c *ProjectsClustersListCall) Do() (*ListClustersResponse, error)
- func (c *ProjectsClustersListCall) Fields(s ...googleapi.Field) *ProjectsClustersListCall
- func (c *ProjectsClustersListCall) IfNoneMatch(entityTag string) *ProjectsClustersListCall
- func (c *ProjectsClustersListCall) PageSize(pageSize int64) *ProjectsClustersListCall
- func (c *ProjectsClustersListCall) PageToken(pageToken string) *ProjectsClustersListCall
- func (c *ProjectsClustersListCall) QuotaUser(quotaUser string) *ProjectsClustersListCall
- type ProjectsClustersPatchCall
- func (c *ProjectsClustersPatchCall) Context(ctx context.Context) *ProjectsClustersPatchCall
- func (c *ProjectsClustersPatchCall) Do() (*Operation, error)
- func (c *ProjectsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsClustersPatchCall
- func (c *ProjectsClustersPatchCall) QuotaUser(quotaUser string) *ProjectsClustersPatchCall
- func (c *ProjectsClustersPatchCall) UpdateMask(updateMask string) *ProjectsClustersPatchCall
- type ProjectsClustersService
- func (r *ProjectsClustersService) Create(projectId string, cluster *Cluster) *ProjectsClustersCreateCall
- func (r *ProjectsClustersService) Delete(projectId string, clusterName string) *ProjectsClustersDeleteCall
- func (r *ProjectsClustersService) Diagnose(projectId string, clusterName string, ...) *ProjectsClustersDiagnoseCall
- func (r *ProjectsClustersService) Get(projectId string, clusterName string) *ProjectsClustersGetCall
- func (r *ProjectsClustersService) List(projectId string) *ProjectsClustersListCall
- func (r *ProjectsClustersService) Patch(projectId string, clusterName string, cluster *Cluster) *ProjectsClustersPatchCall
- type ProjectsJobsCancelCall
- func (c *ProjectsJobsCancelCall) Context(ctx context.Context) *ProjectsJobsCancelCall
- func (c *ProjectsJobsCancelCall) Do() (*Job, error)
- func (c *ProjectsJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsJobsCancelCall
- func (c *ProjectsJobsCancelCall) QuotaUser(quotaUser string) *ProjectsJobsCancelCall
- type ProjectsJobsDeleteCall
- func (c *ProjectsJobsDeleteCall) Context(ctx context.Context) *ProjectsJobsDeleteCall
- func (c *ProjectsJobsDeleteCall) Do() (*Empty, error)
- func (c *ProjectsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsJobsDeleteCall
- func (c *ProjectsJobsDeleteCall) QuotaUser(quotaUser string) *ProjectsJobsDeleteCall
- type ProjectsJobsGetCall
- func (c *ProjectsJobsGetCall) Context(ctx context.Context) *ProjectsJobsGetCall
- func (c *ProjectsJobsGetCall) Do() (*Job, error)
- func (c *ProjectsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsJobsGetCall
- func (c *ProjectsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsJobsGetCall
- func (c *ProjectsJobsGetCall) QuotaUser(quotaUser string) *ProjectsJobsGetCall
- type ProjectsJobsListCall
- func (c *ProjectsJobsListCall) ClusterName(clusterName string) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) Context(ctx context.Context) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) Do() (*ListJobsResponse, error)
- func (c *ProjectsJobsListCall) Fields(s ...googleapi.Field) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) IfNoneMatch(entityTag string) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) JobStateMatcher(jobStateMatcher string) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) PageSize(pageSize int64) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) PageToken(pageToken string) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) QuotaUser(quotaUser string) *ProjectsJobsListCall
- type ProjectsJobsService
- func (r *ProjectsJobsService) Cancel(projectId string, jobId string, canceljobrequest *CancelJobRequest) *ProjectsJobsCancelCall
- func (r *ProjectsJobsService) Delete(projectId string, jobId string) *ProjectsJobsDeleteCall
- func (r *ProjectsJobsService) Get(projectId string, jobId string) *ProjectsJobsGetCall
- func (r *ProjectsJobsService) List(projectId string) *ProjectsJobsListCall
- func (r *ProjectsJobsService) Submit(projectId string, submitjobrequest *SubmitJobRequest) *ProjectsJobsSubmitCall
- type ProjectsJobsSubmitCall
- func (c *ProjectsJobsSubmitCall) Context(ctx context.Context) *ProjectsJobsSubmitCall
- func (c *ProjectsJobsSubmitCall) Do() (*Job, error)
- func (c *ProjectsJobsSubmitCall) Fields(s ...googleapi.Field) *ProjectsJobsSubmitCall
- func (c *ProjectsJobsSubmitCall) QuotaUser(quotaUser string) *ProjectsJobsSubmitCall
- type ProjectsService
- type PySparkJob
- type QueryList
- type Service
- type SoftwareConfiguration
- type SparkJob
- type SparkSqlJob
- type Status
- type StatusDetails
- type SubmitJobRequest
- type YarnApplication
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelJobRequest ¶
type CancelJobRequest struct { }
CancelJobRequest: A request to cancel a job.
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Cluster ¶
type Cluster struct { // ClusterName: [Required] The cluster name. Cluster names within a // project must be unique. Names from deleted clusters can be reused. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: [Output-only] A cluster UUID (Unique Universal // Identifier). Cloud Dataproc generates this value when it creates the // cluster. ClusterUuid string `json:"clusterUuid,omitempty"` // Configuration: [Required] The cluster configuration. Note that Cloud // Dataproc may set default values, and values may change when clusters // are updated. Configuration *ClusterConfiguration `json:"configuration,omitempty"` // ProjectId: [Required] The Google Cloud Platform project ID that the // cluster belongs to. ProjectId string `json:"projectId,omitempty"` // Status: [Output-only] Cluster status. Status *ClusterStatus `json:"status,omitempty"` // StatusHistory: [Output-only] Previous cluster statuses. StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Cluster: Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
func (*Cluster) MarshalJSON ¶
type ClusterConfiguration ¶
type ClusterConfiguration struct { // ConfigurationBucket: [Optional] A Google Cloud Storage staging bucket // used for sharing generated SSH keys and configuration. If you do not // specify a staging bucket, Cloud Dataproc will determine an // appropriate Cloud Storage location (US, ASIA, or EU) for your // cluster's staging bucket according to the Google Compute Engine zone // where your cluster is deployed, and then it will create and manage // this project-level, per-location bucket for you. ConfigurationBucket string `json:"configurationBucket,omitempty"` // GceClusterConfiguration: [Optional] The shared Google Compute Engine // configuration settings for all instances in a cluster. GceClusterConfiguration *GceClusterConfiguration `json:"gceClusterConfiguration,omitempty"` // InitializationActions: [Optional] Commands to execute on each node // after configuration is completed. By default, executables are run on // master and all worker nodes. You can test a node's role metadata to // run an executable on a master or worker node, as shown below: // ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ // "${ROLE}" == 'Master' ]]; then ... master specific actions ... else // ... worker specific actions ... fi InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` // MasterConfiguration: [Optional] The Google Compute Engine // configuration settings for the master instance in a cluster. MasterConfiguration *InstanceGroupConfiguration `json:"masterConfiguration,omitempty"` // SecondaryWorkerConfiguration: [Optional] The Google Compute Engine // configuration settings for additional worker instances in a cluster. SecondaryWorkerConfiguration *InstanceGroupConfiguration `json:"secondaryWorkerConfiguration,omitempty"` // SoftwareConfiguration: [Optional] The configuration settings for // software inside the cluster. SoftwareConfiguration *SoftwareConfiguration `json:"softwareConfiguration,omitempty"` // WorkerConfiguration: [Optional] The Google Compute Engine // configuration settings for worker instances in a cluster. WorkerConfiguration *InstanceGroupConfiguration `json:"workerConfiguration,omitempty"` // ForceSendFields is a list of field names (e.g. "ConfigurationBucket") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ClusterConfiguration: The cluster configuration.
func (*ClusterConfiguration) MarshalJSON ¶
func (s *ClusterConfiguration) MarshalJSON() ([]byte, error)
type ClusterStatus ¶
type ClusterStatus struct { // Detail: Optional details of cluster's state. Detail string `json:"detail,omitempty"` // State: The cluster's state. // // Possible values: // "UNKNOWN" // "CREATING" // "RUNNING" // "ERROR" // "DELETING" // "UPDATING" State string `json:"state,omitempty"` // StateStartTime: Time when this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ClusterStatus: The status of a cluster and its instances.
func (*ClusterStatus) MarshalJSON ¶
func (s *ClusterStatus) MarshalJSON() ([]byte, error)
type DiagnoseClusterOutputLocation ¶
type DiagnoseClusterOutputLocation struct { // OutputUri: [Output-only] The Google Cloud Storage URI of the // diagnostic output. This will be a plain text file with summary of // collected diagnostics. OutputUri string `json:"outputUri,omitempty"` // ForceSendFields is a list of field names (e.g. "OutputUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
DiagnoseClusterOutputLocation: The location where output from diagnostic command can be found.
func (*DiagnoseClusterOutputLocation) MarshalJSON ¶
func (s *DiagnoseClusterOutputLocation) MarshalJSON() ([]byte, error)
type DiagnoseClusterRequest ¶
type DiagnoseClusterRequest struct { }
DiagnoseClusterRequest: A request to collect cluster diagnostic information.
type DiskConfiguration ¶
type DiskConfiguration struct { // BootDiskSizeGb: [Optional] Size in GB of the boot disk (default is // 500GB). BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` // NumLocalSsds: [Optional] Number of attached SSDs, from 0 to 4 // (default is 0). If SSDs are not attached, the boot disk is used to // store runtime logs and HDFS data. If one or more SSDs are attached, // this runtime bulk data is spread across them, and the boot disk // contains only basic configuration and installed binaries. NumLocalSsds int64 `json:"numLocalSsds,omitempty"` // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
DiskConfiguration: Specifies the configuration of disk options for a group of VM instances.
func (*DiskConfiguration) MarshalJSON ¶
func (s *DiskConfiguration) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type GceClusterConfiguration ¶
type GceClusterConfiguration struct { // NetworkUri: The Google Compute Engine network to be used for machine // communications. Inbound SSH connections are necessary to complete // cluster configuration. Example: // `compute.googleapis.com/projects/[project_id]/zones/us-east1-a/default // `. NetworkUri string `json:"networkUri,omitempty"` // ServiceAccountScopes: The URIs of service account scopes to be // included in Google Compute Engine instances. The following base set // of scopes is always included: - // https://www.googleapis.com/auth/cloud.useraccounts.readonly - // https://www.googleapis.com/auth/devstorage.read_write - // https://www.googleapis.com/auth/logging.write If no scopes are // specfied, the following defaults are also provided: - // https://www.googleapis.com/auth/bigquery - // https://www.googleapis.com/auth/bigtable.admin.table - // https://www.googleapis.com/auth/bigtable.data - // https://www.googleapis.com/auth/devstorage.full_control ServiceAccountScopes []string `json:"serviceAccountScopes,omitempty"` // ZoneUri: [Required] The zone where the Google Compute Engine cluster // will be located. Example: // `compute.googleapis.com/projects/[project_id]/zones/us-east1-a`. ZoneUri string `json:"zoneUri,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
GceClusterConfiguration: Common configuration settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster.
func (*GceClusterConfiguration) MarshalJSON ¶
func (s *GceClusterConfiguration) MarshalJSON() ([]byte, error)
type HadoopJob ¶
type HadoopJob struct { // ArchiveUris: [Optional] HCFS URIs of archives to be extracted in the // working directory of Hadoop drivers and tasks. Supported file types: // .jar, .tar, .tar.gz, .tgz, or .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: [Optional] The arguments to pass to the driver. Do not include // arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job // properties, since a collision may occur that causes an incorrect job // submission. Args []string `json:"args,omitempty"` // FileUris: [Optional] HCFS URIs of files to be copied to the working // directory of Hadoop drivers and distributed tasks. Useful for naively // parallel tasks. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: [Optional] Jar file URIs to add to the CLASSPATHs of the // Hadoop driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfiguration: [Optional] The runtime log configuration for // job execution. LoggingConfiguration *LoggingConfiguration `json:"loggingConfiguration,omitempty"` // MainClass: The name of the driver's main class. The jar file // containing the class must be in the default CLASSPATH or specified in // `jar_file_uris`. MainClass string `json:"mainClass,omitempty"` // MainJarFileUri: The Hadoop Compatible Filesystem (HCFS) URI of the // jar file containing the main class. Examples: // 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' // 'hdfs:/tmp/test-samples/custom-wordcount.jar' // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' MainJarFileUri string `json:"mainJarFileUri,omitempty"` // Properties: [Optional] A mapping of property names to values, used to // configure Hadoop. Properties that conflict with values set by the // Cloud Dataproc API may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site and classes in user code. Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HadoopJob: A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN.
func (*HadoopJob) MarshalJSON ¶
type HiveJob ¶
type HiveJob struct { // ContinueOnFailure: [Optional] Whether to continue executing queries // if a query fails. The default value is `false`. Setting to `true` can // be useful when executing independent parallel queries. ContinueOnFailure bool `json:"continueOnFailure,omitempty"` // JarFileUris: [Optional] HCFS URIs of jar files to add to the // CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can // contain Hive SerDes and UDFs. JarFileUris []string `json:"jarFileUris,omitempty"` // Properties: [Optional] A mapping of property names and values, used // to configure Hive. Properties that conflict with values set by the // Cloud Dataproc API may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and // classes in user code. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains Hive queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: [Optional] Mapping of query variable names to values // (equivalent to the Hive command: `SET name="value";`). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HiveJob: A Cloud Dataproc job for running Hive queries on YARN.
func (*HiveJob) MarshalJSON ¶
type InstanceGroupConfiguration ¶
type InstanceGroupConfiguration struct { // DiskConfiguration: Disk option configuration settings. DiskConfiguration *DiskConfiguration `json:"diskConfiguration,omitempty"` // ImageUri: [Output-only] The Google Compute Engine image resource used // for cluster instances. Inferred from // `SoftwareConfiguration.image_version`. Example: // `compute.googleapis.com/projects/debian-cloud/global/images/backports- // debian-7-wheezy-v20140904`. ImageUri string `json:"imageUri,omitempty"` // InstanceNames: The list of instance names. Dataproc derives the names // from `cluster_name`, `num_instances`, and the instance group if not // set by user (recommended practice is to let Dataproc derive the // name). InstanceNames []string `json:"instanceNames,omitempty"` // IsPreemptible: Specifies that this instance group contains // Preemptible Instances. IsPreemptible bool `json:"isPreemptible,omitempty"` // MachineTypeUri: The Google Compute Engine machine type used for // cluster instances. Example: // `compute.googleapis.com/projects/[project_id]/zones/us-east1-a/machine // Types/n1-standard-2`. MachineTypeUri string `json:"machineTypeUri,omitempty"` // ManagedGroupConfiguration: [Output-only] The configuration for Google // Compute Engine Instance Group Manager that manages this group. This // is only used for preemptible instance groups. ManagedGroupConfiguration *ManagedGroupConfiguration `json:"managedGroupConfiguration,omitempty"` // NumInstances: The number of VM instances in the instance group. For // master instance groups, must be set to 1. NumInstances int64 `json:"numInstances,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskConfiguration") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
InstanceGroupConfiguration: The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group.
func (*InstanceGroupConfiguration) MarshalJSON ¶
func (s *InstanceGroupConfiguration) MarshalJSON() ([]byte, error)
type Job ¶
type Job struct { // DriverControlFilesUri: [Output-only] If present, the location of // miscellaneous control files which may be used as part of job setup // and handling. If not present, control files may be placed in the same // location as `driver_output_uri`. DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` // DriverInputResourceUri: [Output-only] A URI pointing to the location // of the stdin of the job's driver program, only set if the job is // interactive. DriverInputResourceUri string `json:"driverInputResourceUri,omitempty"` // DriverOutputResourceUri: [Output-only] A URI pointing to the location // of the stdout of the job's driver program. DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` // HadoopJob: Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` // HiveJob: Job is a Hive job. HiveJob *HiveJob `json:"hiveJob,omitempty"` // Interactive: [Optional] If set to `true`, the driver's stdin will be // kept open and `driver_input_uri` will be set to provide a path at // which additional input can be sent to the driver. Interactive bool `json:"interactive,omitempty"` // PigJob: Job is a Pig job. PigJob *PigJob `json:"pigJob,omitempty"` // Placement: [Required] Job information, including how, when, and where // to run the job. Placement *JobPlacement `json:"placement,omitempty"` // PysparkJob: Job is a Pyspark job. PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` // Reference: [Optional] The fully qualified reference to the job, which // can be used to obtain the equivalent REST path of the job resource. // If this property is not specified when a job is created, the server // generates a job_id. Reference *JobReference `json:"reference,omitempty"` // SparkJob: Job is a Spark job. SparkJob *SparkJob `json:"sparkJob,omitempty"` // SparkSqlJob: Job is a SparkSql job. SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` // Status: [Output-only] The job status. Additional application-specific // status information may be contained in the type_job and // yarn_applications fields. Status *JobStatus `json:"status,omitempty"` // StatusHistory: [Output-only] The previous job status. StatusHistory []*JobStatus `json:"statusHistory,omitempty"` // SubmittedBy: [Output-only] The email address of the user submitting // the job. For jobs submitted on the cluster, the address is // username@hostname. SubmittedBy string `json:"submittedBy,omitempty"` // YarnApplications: [Output-only] The collection of YARN applications // spun up by this job. YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "DriverControlFilesUri") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
Job: A Cloud Dataproc job resource.
func (*Job) MarshalJSON ¶
type JobPlacement ¶
type JobPlacement struct { // ClusterName: [Required] The name of the cluster where the job will be // submitted. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: [Output-only] A cluster UUID generated by the Dataproc // service when the job is submitted. ClusterUuid string `json:"clusterUuid,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
JobPlacement: Cloud Dataproc job configuration.
func (*JobPlacement) MarshalJSON ¶
func (s *JobPlacement) MarshalJSON() ([]byte, error)
type JobReference ¶
type JobReference struct { // JobId: [Required] The job ID, which must be unique within the // project. The job ID is generated by the server upon job submission or // provided by the user as a means to perform retries without creating // duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers // (0-9), underscores (_), or hyphens (-). The maximum length is 512 // characters. JobId string `json:"jobId,omitempty"` // ProjectId: [Required] The ID of the Google Cloud Platform project // that the job belongs to. ProjectId string `json:"projectId,omitempty"` // ForceSendFields is a list of field names (e.g. "JobId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
JobReference: Encapsulates the full scoping used to reference a job.
func (*JobReference) MarshalJSON ¶
func (s *JobReference) MarshalJSON() ([]byte, error)
type JobStatus ¶
type JobStatus struct { // Details: [Optional] Job state details, such as an error description // if the state is ERROR. Details string `json:"details,omitempty"` // State: [Required] A state message specifying the overall job state. // // Possible values: // "STATE_UNSPECIFIED" // "PENDING" // "SETUP_DONE" // "RUNNING" // "CANCEL_PENDING" // "CANCEL_STARTED" // "CANCELLED" // "DONE" // "ERROR" State string `json:"state,omitempty"` // StateStartTime: [Output-only] The time when this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
JobStatus: Cloud Dataproc job status.
func (*JobStatus) MarshalJSON ¶
type ListClustersResponse ¶
type ListClustersResponse struct { // Clusters: [Output-only] The clusters in the project. Clusters []*Cluster `json:"clusters,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Clusters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListClustersResponse: The list of all clusters in a project.
func (*ListClustersResponse) MarshalJSON ¶
func (s *ListClustersResponse) MarshalJSON() ([]byte, error)
type ListJobsResponse ¶
type ListJobsResponse struct { // Jobs: [Output-only] Jobs list. Jobs []*Job `json:"jobs,omitempty"` // NextPageToken: [Optional] This token is included in the response if // there are more results to fetch. To fetch additional results, provide // this value as the `page_token` in a subsequent ListJobsRequest. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Jobs") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListJobsResponse: A list of jobs in a project.
func (*ListJobsResponse) MarshalJSON ¶
func (s *ListJobsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type LoggingConfiguration ¶
type LoggingConfiguration struct { // DriverLogLevels: The per-package log levels for the driver. This may // include "root" package name to configure rootLogger. Examples: // 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' DriverLogLevels map[string]string `json:"driverLogLevels,omitempty"` // ForceSendFields is a list of field names (e.g. "DriverLogLevels") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
LoggingConfiguration: The runtime logging configuration of the job.
func (*LoggingConfiguration) MarshalJSON ¶
func (s *LoggingConfiguration) MarshalJSON() ([]byte, error)
type ManagedGroupConfiguration ¶
type ManagedGroupConfiguration struct { // InstanceGroupManagerName: [Output-only] The name of the Instance // Group Manager for this group. InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"` // InstanceTemplateName: [Output-only] The name of the Instance Template // used for the Managed Instance Group. InstanceTemplateName string `json:"instanceTemplateName,omitempty"` // ForceSendFields is a list of field names (e.g. // "InstanceGroupManagerName") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
ManagedGroupConfiguration: Specifies the resources used to actively manage an instance group.
func (*ManagedGroupConfiguration) MarshalJSON ¶
func (s *ManagedGroupConfiguration) MarshalJSON() ([]byte, error)
type NodeInitializationAction ¶
type NodeInitializationAction struct { // ExecutableFile: [Required] Google Cloud Storage URI of executable // file. ExecutableFile string `json:"executableFile,omitempty"` // ExecutionTimeout: [Optional] Amount of time executable has to // complete. Default is 10 minutes. Cluster creation fails with an // explanatory error message (the name of the executable that caused the // error and the exceeded timeout period) if the executable is not // completed at end of the timeout period. ExecutionTimeout string `json:"executionTimeout,omitempty"` // ForceSendFields is a list of field names (e.g. "ExecutableFile") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
NodeInitializationAction: Specifies an executable to run on a fully configured node and a timeout period for executable completion.
func (*NodeInitializationAction) MarshalJSON ¶
func (s *NodeInitializationAction) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: 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. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure. Error *Status `json:"error,omitempty"` // Metadata: 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. Metadata OperationMetadata `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping above, the `name` should have the format of // `operations/some/unique/name`. Name string `json:"name,omitempty"` // Response: 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`. Response OperationResponse `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata interface{}
type OperationMetadata1 ¶
type OperationMetadata1 struct { // ClusterName: Name of the cluster for the operation. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: Cluster UUId for the operation. ClusterUuid string `json:"clusterUuid,omitempty"` // Details: A message containing any operation metadata details. Details string `json:"details,omitempty"` // EndTime: The time that the operation completed. EndTime string `json:"endTime,omitempty"` // InnerState: A message containing the detailed operation state. InnerState string `json:"innerState,omitempty"` // InsertTime: The time that the operation was requested. InsertTime string `json:"insertTime,omitempty"` // StartTime: The time that the operation was started by the server. StartTime string `json:"startTime,omitempty"` // State: A message containing the operation state. // // Possible values: // "UNKNOWN" // "PENDING" // "RUNNING" // "DONE" State string `json:"state,omitempty"` // Status: [Output-only] Current operation status. Status *OperationStatus `json:"status,omitempty"` // StatusHistory: [Output-only] Previous operation status. StatusHistory []*OperationStatus `json:"statusHistory,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
OperationMetadata1: Metadata describing the operation.
func (*OperationMetadata1) MarshalJSON ¶
func (s *OperationMetadata1) MarshalJSON() ([]byte, error)
type OperationResponse ¶
type OperationResponse interface{}
type OperationStatus ¶
type OperationStatus struct { // Details: A message containing any operation metadata details. Details string `json:"details,omitempty"` // InnerState: A message containing the detailed operation state. InnerState string `json:"innerState,omitempty"` // State: A message containing the operation state. // // Possible values: // "UNKNOWN" // "PENDING" // "RUNNING" // "DONE" State string `json:"state,omitempty"` // StateStartTime: The time this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
OperationStatus: The status of the operation.
func (*OperationStatus) MarshalJSON ¶
func (s *OperationStatus) MarshalJSON() ([]byte, error)
type OperationsCancelCall ¶
type OperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*OperationsCancelCall) Context ¶
func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OperationsCancelCall) Do ¶
func (c *OperationsCancelCall) Do() (*Empty, error)
Do executes the "dataproc.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OperationsCancelCall) Fields ¶
func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsCancelCall) QuotaUser ¶
func (c *OperationsCancelCall) QuotaUser(quotaUser string) *OperationsCancelCall
QuotaUser sets the optional parameter "quotaUser": 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.
type OperationsDeleteCall ¶
type OperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*OperationsDeleteCall) Context ¶
func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OperationsDeleteCall) Do ¶
func (c *OperationsDeleteCall) Do() (*Empty, error)
Do executes the "dataproc.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OperationsDeleteCall) Fields ¶
func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsDeleteCall) QuotaUser ¶
func (c *OperationsDeleteCall) QuotaUser(quotaUser string) *OperationsDeleteCall
QuotaUser sets the optional parameter "quotaUser": 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.
type OperationsGetCall ¶
type OperationsGetCall struct {
// contains filtered or unexported fields
}
func (*OperationsGetCall) Context ¶
func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OperationsGetCall) Do ¶
func (c *OperationsGetCall) Do() (*Operation, error)
Do executes the "dataproc.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OperationsGetCall) Fields ¶
func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsGetCall) IfNoneMatch ¶
func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OperationsGetCall) QuotaUser ¶
func (c *OperationsGetCall) QuotaUser(quotaUser string) *OperationsGetCall
QuotaUser sets the optional parameter "quotaUser": 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.
type OperationsListCall ¶
type OperationsListCall struct {
// contains filtered or unexported fields
}
func (*OperationsListCall) Context ¶
func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OperationsListCall) Do ¶
func (c *OperationsListCall) Do() (*ListOperationsResponse, error)
Do executes the "dataproc.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OperationsListCall) Fields ¶
func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsListCall) Filter ¶
func (c *OperationsListCall) Filter(filter string) *OperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*OperationsListCall) IfNoneMatch ¶
func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OperationsListCall) PageSize ¶
func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*OperationsListCall) PageToken ¶
func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*OperationsListCall) QuotaUser ¶
func (c *OperationsListCall) QuotaUser(quotaUser string) *OperationsListCall
QuotaUser sets the optional parameter "quotaUser": 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.
type OperationsService ¶
type OperationsService struct {
// contains filtered or unexported fields
}
func NewOperationsService ¶
func NewOperationsService(s *Service) *OperationsService
func (*OperationsService) Cancel ¶
func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall
Cancel: 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.get](/dataproc/reference/rest/v1beta1/operations/get) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation.
func (*OperationsService) Delete ¶
func (r *OperationsService) Delete(name string) *OperationsDeleteCall
Delete: 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`.
func (*OperationsService) Get ¶
func (r *OperationsService) Get(name string) *OperationsGetCall
Get: 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.
func (*OperationsService) List ¶
func (r *OperationsService) List(name string) *OperationsListCall
List: 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 below allows API services to override the binding to use different resource name schemes, such as `users/*/operations`.
type PigJob ¶
type PigJob struct { // ContinueOnFailure: [Optional] Whether to continue executing queries // if a query fails. The default value is `false`. Setting to `true` can // be useful when executing independent parallel queries. ContinueOnFailure bool `json:"continueOnFailure,omitempty"` // JarFileUris: [Optional] HCFS URIs of jar files to add to the // CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can // contain Pig UDFs. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfiguration: [Optional] The runtime log configuration for // job execution. LoggingConfiguration *LoggingConfiguration `json:"loggingConfiguration,omitempty"` // Properties: [Optional] A mapping of property names to values, used to // configure Pig. Properties that conflict with values set by the Cloud // Dataproc API may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and // classes in user code. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains the Pig // queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: [Optional] Mapping of query variable names to values // (equivalent to the Pig command: `name=[value]`). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PigJob: A Cloud Dataproc job for running Pig queries on YARN.
func (*PigJob) MarshalJSON ¶
type ProjectsClustersCreateCall ¶
type ProjectsClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersCreateCall) Context ¶
func (c *ProjectsClustersCreateCall) Context(ctx context.Context) *ProjectsClustersCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersCreateCall) Do ¶
func (c *ProjectsClustersCreateCall) Do() (*Operation, error)
Do executes the "dataproc.projects.clusters.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersCreateCall) Fields ¶
func (c *ProjectsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsClustersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersCreateCall) QuotaUser ¶
func (c *ProjectsClustersCreateCall) QuotaUser(quotaUser string) *ProjectsClustersCreateCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsClustersDeleteCall ¶
type ProjectsClustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersDeleteCall) Context ¶
func (c *ProjectsClustersDeleteCall) Context(ctx context.Context) *ProjectsClustersDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersDeleteCall) Do ¶
func (c *ProjectsClustersDeleteCall) Do() (*Operation, error)
Do executes the "dataproc.projects.clusters.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersDeleteCall) Fields ¶
func (c *ProjectsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsClustersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersDeleteCall) QuotaUser ¶
func (c *ProjectsClustersDeleteCall) QuotaUser(quotaUser string) *ProjectsClustersDeleteCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsClustersDiagnoseCall ¶
type ProjectsClustersDiagnoseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersDiagnoseCall) Context ¶
func (c *ProjectsClustersDiagnoseCall) Context(ctx context.Context) *ProjectsClustersDiagnoseCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersDiagnoseCall) Do ¶
func (c *ProjectsClustersDiagnoseCall) Do() (*Operation, error)
Do executes the "dataproc.projects.clusters.diagnose" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersDiagnoseCall) Fields ¶
func (c *ProjectsClustersDiagnoseCall) Fields(s ...googleapi.Field) *ProjectsClustersDiagnoseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersDiagnoseCall) QuotaUser ¶
func (c *ProjectsClustersDiagnoseCall) QuotaUser(quotaUser string) *ProjectsClustersDiagnoseCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsClustersGetCall ¶
type ProjectsClustersGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersGetCall) Context ¶
func (c *ProjectsClustersGetCall) Context(ctx context.Context) *ProjectsClustersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersGetCall) Do ¶
func (c *ProjectsClustersGetCall) Do() (*Cluster, error)
Do executes the "dataproc.projects.clusters.get" call. Exactly one of *Cluster or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Cluster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersGetCall) Fields ¶
func (c *ProjectsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsClustersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersGetCall) IfNoneMatch ¶
func (c *ProjectsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsClustersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsClustersGetCall) QuotaUser ¶
func (c *ProjectsClustersGetCall) QuotaUser(quotaUser string) *ProjectsClustersGetCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsClustersListCall ¶
type ProjectsClustersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersListCall) Context ¶
func (c *ProjectsClustersListCall) Context(ctx context.Context) *ProjectsClustersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersListCall) Do ¶
func (c *ProjectsClustersListCall) Do() (*ListClustersResponse, error)
Do executes the "dataproc.projects.clusters.list" call. Exactly one of *ListClustersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClustersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersListCall) Fields ¶
func (c *ProjectsClustersListCall) Fields(s ...googleapi.Field) *ProjectsClustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersListCall) IfNoneMatch ¶
func (c *ProjectsClustersListCall) IfNoneMatch(entityTag string) *ProjectsClustersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsClustersListCall) PageSize ¶
func (c *ProjectsClustersListCall) PageSize(pageSize int64) *ProjectsClustersListCall
PageSize sets the optional parameter "pageSize": The standard List page size.
func (*ProjectsClustersListCall) PageToken ¶
func (c *ProjectsClustersListCall) PageToken(pageToken string) *ProjectsClustersListCall
PageToken sets the optional parameter "pageToken": The standard List page token.
func (*ProjectsClustersListCall) QuotaUser ¶
func (c *ProjectsClustersListCall) QuotaUser(quotaUser string) *ProjectsClustersListCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsClustersPatchCall ¶
type ProjectsClustersPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsClustersPatchCall) Context ¶
func (c *ProjectsClustersPatchCall) Context(ctx context.Context) *ProjectsClustersPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsClustersPatchCall) Do ¶
func (c *ProjectsClustersPatchCall) Do() (*Operation, error)
Do executes the "dataproc.projects.clusters.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsClustersPatchCall) Fields ¶
func (c *ProjectsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsClustersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsClustersPatchCall) QuotaUser ¶
func (c *ProjectsClustersPatchCall) QuotaUser(quotaUser string) *ProjectsClustersPatchCall
QuotaUser sets the optional parameter "quotaUser": 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.
func (*ProjectsClustersPatchCall) UpdateMask ¶
func (c *ProjectsClustersPatchCall) UpdateMask(updateMask string) *ProjectsClustersPatchCall
UpdateMask sets the optional parameter "updateMask": [Required] Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as configuration.worker_configuration.num_instances, and the `PATCH` request body would specify the new value, as follows: { "configuration":{ "workerConfiguration":{ "numInstances":"5" } } } Note: Currently, configuration.worker_configuration.num_instances is the only field that can be updated.
type ProjectsClustersService ¶
type ProjectsClustersService struct {
// contains filtered or unexported fields
}
func NewProjectsClustersService ¶
func NewProjectsClustersService(s *Service) *ProjectsClustersService
func (*ProjectsClustersService) Create ¶
func (r *ProjectsClustersService) Create(projectId string, cluster *Cluster) *ProjectsClustersCreateCall
Create: Creates a cluster in a project.
func (*ProjectsClustersService) Delete ¶
func (r *ProjectsClustersService) Delete(projectId string, clusterName string) *ProjectsClustersDeleteCall
Delete: Deletes a cluster in a project.
func (*ProjectsClustersService) Diagnose ¶
func (r *ProjectsClustersService) Diagnose(projectId string, clusterName string, diagnoseclusterrequest *DiagnoseClusterRequest) *ProjectsClustersDiagnoseCall
Diagnose: Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseClusterOutputLocation`.
func (*ProjectsClustersService) Get ¶
func (r *ProjectsClustersService) Get(projectId string, clusterName string) *ProjectsClustersGetCall
Get: Gets the resource representation for a cluster in a project.
func (*ProjectsClustersService) List ¶
func (r *ProjectsClustersService) List(projectId string) *ProjectsClustersListCall
List: Lists all clusters in a project.
func (*ProjectsClustersService) Patch ¶
func (r *ProjectsClustersService) Patch(projectId string, clusterName string, cluster *Cluster) *ProjectsClustersPatchCall
Patch: Updates a cluster in a project.
type ProjectsJobsCancelCall ¶
type ProjectsJobsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsCancelCall) Context ¶
func (c *ProjectsJobsCancelCall) Context(ctx context.Context) *ProjectsJobsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsJobsCancelCall) Do ¶
func (c *ProjectsJobsCancelCall) Do() (*Job, error)
Do executes the "dataproc.projects.jobs.cancel" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsJobsCancelCall) Fields ¶
func (c *ProjectsJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsJobsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsCancelCall) QuotaUser ¶
func (c *ProjectsJobsCancelCall) QuotaUser(quotaUser string) *ProjectsJobsCancelCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsJobsDeleteCall ¶
type ProjectsJobsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsDeleteCall) Context ¶
func (c *ProjectsJobsDeleteCall) Context(ctx context.Context) *ProjectsJobsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsJobsDeleteCall) Do ¶
func (c *ProjectsJobsDeleteCall) Do() (*Empty, error)
Do executes the "dataproc.projects.jobs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsJobsDeleteCall) Fields ¶
func (c *ProjectsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsJobsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsDeleteCall) QuotaUser ¶
func (c *ProjectsJobsDeleteCall) QuotaUser(quotaUser string) *ProjectsJobsDeleteCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsJobsGetCall ¶
type ProjectsJobsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsGetCall) Context ¶
func (c *ProjectsJobsGetCall) Context(ctx context.Context) *ProjectsJobsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsJobsGetCall) Do ¶
func (c *ProjectsJobsGetCall) Do() (*Job, error)
Do executes the "dataproc.projects.jobs.get" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsJobsGetCall) Fields ¶
func (c *ProjectsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsJobsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsGetCall) IfNoneMatch ¶
func (c *ProjectsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsJobsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsJobsGetCall) QuotaUser ¶
func (c *ProjectsJobsGetCall) QuotaUser(quotaUser string) *ProjectsJobsGetCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsJobsListCall ¶
type ProjectsJobsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsListCall) ClusterName ¶
func (c *ProjectsJobsListCall) ClusterName(clusterName string) *ProjectsJobsListCall
ClusterName sets the optional parameter "clusterName": [Optional] If set, the returned jobs list includes only jobs that were submitted to the named cluster.
func (*ProjectsJobsListCall) Context ¶
func (c *ProjectsJobsListCall) Context(ctx context.Context) *ProjectsJobsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsJobsListCall) Do ¶
func (c *ProjectsJobsListCall) Do() (*ListJobsResponse, error)
Do executes the "dataproc.projects.jobs.list" call. Exactly one of *ListJobsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListJobsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsJobsListCall) Fields ¶
func (c *ProjectsJobsListCall) Fields(s ...googleapi.Field) *ProjectsJobsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsListCall) IfNoneMatch ¶
func (c *ProjectsJobsListCall) IfNoneMatch(entityTag string) *ProjectsJobsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsJobsListCall) JobStateMatcher ¶
func (c *ProjectsJobsListCall) JobStateMatcher(jobStateMatcher string) *ProjectsJobsListCall
JobStateMatcher sets the optional parameter "jobStateMatcher": [Optional] Specifies enumerated categories of jobs to list.
Possible values:
"ALL" "ACTIVE" "NON_ACTIVE"
func (*ProjectsJobsListCall) PageSize ¶
func (c *ProjectsJobsListCall) PageSize(pageSize int64) *ProjectsJobsListCall
PageSize sets the optional parameter "pageSize": [Optional] The number of results to return in each response.
func (*ProjectsJobsListCall) PageToken ¶
func (c *ProjectsJobsListCall) PageToken(pageToken string) *ProjectsJobsListCall
PageToken sets the optional parameter "pageToken": [Optional] The page token, returned by a previous call, to request the next page of results.
func (*ProjectsJobsListCall) QuotaUser ¶
func (c *ProjectsJobsListCall) QuotaUser(quotaUser string) *ProjectsJobsListCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsJobsService ¶
type ProjectsJobsService struct {
// contains filtered or unexported fields
}
func NewProjectsJobsService ¶
func NewProjectsJobsService(s *Service) *ProjectsJobsService
func (*ProjectsJobsService) Cancel ¶
func (r *ProjectsJobsService) Cancel(projectId string, jobId string, canceljobrequest *CancelJobRequest) *ProjectsJobsCancelCall
Cancel: Starts a job cancellation request. To access the job resource after cancellation, call [jobs.list](/dataproc/reference/rest/v1beta1/projects.jobs/list) or [jobs.get](/dataproc/reference/rest/v1beta1/projects.jobs/get).
func (*ProjectsJobsService) Delete ¶
func (r *ProjectsJobsService) Delete(projectId string, jobId string) *ProjectsJobsDeleteCall
Delete: Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`.
func (*ProjectsJobsService) Get ¶
func (r *ProjectsJobsService) Get(projectId string, jobId string) *ProjectsJobsGetCall
Get: Gets the resource representation for a job in a project.
func (*ProjectsJobsService) List ¶
func (r *ProjectsJobsService) List(projectId string) *ProjectsJobsListCall
List: Lists jobs in a project.
func (*ProjectsJobsService) Submit ¶
func (r *ProjectsJobsService) Submit(projectId string, submitjobrequest *SubmitJobRequest) *ProjectsJobsSubmitCall
Submit: Submits a job to a cluster.
type ProjectsJobsSubmitCall ¶
type ProjectsJobsSubmitCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsSubmitCall) Context ¶
func (c *ProjectsJobsSubmitCall) Context(ctx context.Context) *ProjectsJobsSubmitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsJobsSubmitCall) Do ¶
func (c *ProjectsJobsSubmitCall) Do() (*Job, error)
Do executes the "dataproc.projects.jobs.submit" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsJobsSubmitCall) Fields ¶
func (c *ProjectsJobsSubmitCall) Fields(s ...googleapi.Field) *ProjectsJobsSubmitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsSubmitCall) QuotaUser ¶
func (c *ProjectsJobsSubmitCall) QuotaUser(quotaUser string) *ProjectsJobsSubmitCall
QuotaUser sets the optional parameter "quotaUser": 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.
type ProjectsService ¶
type ProjectsService struct { Clusters *ProjectsClustersService Jobs *ProjectsJobsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PySparkJob ¶
type PySparkJob struct { // ArchiveUris: [Optional] HCFS URIs of archives to be extracted in the // working directory of .jar, .tar, .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: [Optional] The arguments to pass to the driver. Do not include // arguments, such as `--conf`, that can be set as job properties, since // a collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: [Optional] HCFS URIs of files to be copied to the working // directory of Python drivers and distributed tasks. Useful for naively // parallel tasks. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: [Optional] HCFS URIs of jar files to add to the // CLASSPATHs of the Python driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfiguration: [Optional] The runtime log configuration for // job execution. LoggingConfiguration *LoggingConfiguration `json:"loggingConfiguration,omitempty"` // MainPythonFileUri: [Required] The Hadoop Compatible Filesystem (HCFS) // URI of the main Python file to use as the driver. Must be a .py file. MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` // Properties: [Optional] A mapping of property names to values, used to // configure PySpark. Properties that conflict with values set by the // Cloud Dataproc API may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // PythonFileUris: [Optional] HCFS file URIs of Python files to pass to // the PySpark framework. Supported file types: .py, .egg, and .zip. PythonFileUris []string `json:"pythonFileUris,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PySparkJob: A Cloud Dataproc job for running PySpark applications on YARN.
func (*PySparkJob) MarshalJSON ¶
func (s *PySparkJob) MarshalJSON() ([]byte, error)
type QueryList ¶
type QueryList struct { // Queries: [Required] The queries to execute. You do not need to // terminate a query with a semicolon. Multiple queries can be specified // in one string by separating each with a semicolon. Here is an example // of an Cloud Dataproc API snippet that uses a QueryList to specify a // HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", // "query3;query4", ] } } Queries []string `json:"queries,omitempty"` // ForceSendFields is a list of field names (e.g. "Queries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
QueryList: A list of queries to run on a cluster.
func (*QueryList) MarshalJSON ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Operations *OperationsService Projects *ProjectsService // contains filtered or unexported fields }
type SoftwareConfiguration ¶
type SoftwareConfiguration struct { // ImageVersion: [Optional] The version of software inside the cluster. // It must match the regular expression `[0-9]+\.[0-9]+`. If // unspecified, it defaults to the latest version (see [Cloud Dataproc // Versioning](/dataproc/versioning)). ImageVersion string `json:"imageVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageVersion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
SoftwareConfiguration: Specifies the selection and configuration of software inside the cluster.
func (*SoftwareConfiguration) MarshalJSON ¶
func (s *SoftwareConfiguration) MarshalJSON() ([]byte, error)
type SparkJob ¶
type SparkJob struct { // ArchiveUris: [Optional] HCFS URIs of archives to be extracted in the // working directory of Spark drivers and tasks. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: [Optional] The arguments to pass to the driver. Do not include // arguments, such as `--conf`, that can be set as job properties, since // a collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: [Optional] HCFS URIs of files to be copied to the working // directory of Spark drivers and distributed tasks. Useful for naively // parallel tasks. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: [Optional] HCFS URIs of jar files to add to the // CLASSPATHs of the Spark driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfiguration: [Optional] The runtime log configuration for // job execution. LoggingConfiguration *LoggingConfiguration `json:"loggingConfiguration,omitempty"` // MainClass: The name of the driver's main class. The jar file that // contains the class must be in the default CLASSPATH or specified in // `jar_file_uris`. MainClass string `json:"mainClass,omitempty"` // MainJarFileUri: The Hadoop Compatible Filesystem (HCFS) URI of the // jar file that contains the main class. MainJarFileUri string `json:"mainJarFileUri,omitempty"` // Properties: [Optional] A mapping of property names to values, used to // configure Spark. Properties that conflict with values set by the // Cloud Dataproc API may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
SparkJob: A Cloud Dataproc job for running Spark applications on YARN.
func (*SparkJob) MarshalJSON ¶
type SparkSqlJob ¶
type SparkSqlJob struct { // JarFileUris: [Optional] HCFS URIs of jar files to be added to the // Spark CLASSPATH. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfiguration: [Optional] The runtime log configuration for // job execution. LoggingConfiguration *LoggingConfiguration `json:"loggingConfiguration,omitempty"` // Properties: [Optional] A mapping of property names to values, used to // configure Spark SQL's SparkConf. Properties that conflict with values // set by the Cloud Dataproc API may be overwritten. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains SQL queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: [Optional] Mapping of query variable names to values // (equivalent to the Spark SQL command: SET `name="value";`). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "JarFileUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
SparkSqlJob: A Cloud Dataproc job for running Spark SQL queries.
func (*SparkSqlJob) MarshalJSON ¶
func (s *SparkSqlJob) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There will // be a common set of message types for APIs to use. Details []StatusDetails `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Status: 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` which 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 purpose. - 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.
func (*Status) MarshalJSON ¶
type StatusDetails ¶
type StatusDetails interface{}
type SubmitJobRequest ¶
type SubmitJobRequest struct { // Job: [Required] The job resource. Job *Job `json:"job,omitempty"` // ForceSendFields is a list of field names (e.g. "Job") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
SubmitJobRequest: A request to submit a job.
func (*SubmitJobRequest) MarshalJSON ¶
func (s *SubmitJobRequest) MarshalJSON() ([]byte, error)
type YarnApplication ¶
type YarnApplication struct { // Name: [Required] The application name. Name string `json:"name,omitempty"` // Progress: [Required] The numerical progress of the application, from // 1 to 100. Progress float64 `json:"progress,omitempty"` // State: [Required] The application state. // // Possible values: // "STATE_UNSPECIFIED" // "NEW" // "NEW_SAVING" // "SUBMITTED" // "ACCEPTED" // "RUNNING" // "FINISHED" // "FAILED" // "KILLED" State string `json:"state,omitempty"` // TrackingUrl: [Optional] The HTTP URL of the ApplicationMaster, // HistoryServer, or TimelineServer that provides application-specific // information. The URL uses the internal hostname, and requires a proxy // server for resolution and, possibly, access. TrackingUrl string `json:"trackingUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
YarnApplication: A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.
func (*YarnApplication) MarshalJSON ¶
func (s *YarnApplication) MarshalJSON() ([]byte, error)