Documentation ¶
Overview ¶
Package dataproc provides access to the Cloud Dataproc API.
This package is DEPRECATED. Use package cloud.google.com/go/dataproc/apiv1 instead.
For product documentation, see: https://cloud.google.com/dataproc/
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/dataproc/v1" ... ctx := context.Background() dataprocService, err := dataproc.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
dataprocService, err := dataproc.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) dataprocService, err := dataproc.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type AcceleratorConfig
- type AnalyzeBatchRequest
- type AnalyzeOperationMetadata
- type AutoscalingConfig
- type AutoscalingPolicy
- type AutotuningConfig
- type AuxiliaryNodeGroup
- type AuxiliaryServicesConfig
- type BasicAutoscalingAlgorithm
- type BasicYarnAutoscalingConfig
- type Batch
- type BatchOperationMetadata
- type Binding
- type CancelJobRequest
- type Cluster
- type ClusterConfig
- type ClusterMetrics
- type ClusterOperation
- type ClusterOperationMetadata
- type ClusterOperationStatus
- type ClusterSelector
- type ClusterStatus
- type ConfidentialInstanceConfig
- type DataprocMetricConfig
- type DiagnoseClusterRequest
- type DiagnoseClusterResults
- type DiskConfig
- type DriverSchedulingConfig
- type Empty
- type EncryptionConfig
- type EndpointConfig
- type EnvironmentConfig
- type ExecutionConfig
- type Expr
- type FlinkJob
- type GceClusterConfig
- type GetIamPolicyRequest
- type GetPolicyOptions
- type GkeClusterConfig
- type GkeNodeConfig
- type GkeNodePoolAcceleratorConfig
- type GkeNodePoolAutoscalingConfig
- type GkeNodePoolConfig
- type GkeNodePoolTarget
- type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig
- type HadoopJob
- type HiveJob
- type IdentityConfig
- type InjectCredentialsRequest
- type InstanceFlexibilityPolicy
- type InstanceGroupAutoscalingPolicyConfig
- type InstanceGroupConfig
- type InstanceReference
- type InstanceSelection
- type InstanceSelectionResult
- type InstantiateWorkflowTemplateRequest
- type Interval
- type Job
- type JobMetadata
- type JobPlacement
- type JobReference
- type JobScheduling
- type JobStatus
- type JupyterConfig
- type KerberosConfig
- type KubernetesClusterConfig
- type KubernetesSoftwareConfig
- type LifecycleConfig
- type ListAutoscalingPoliciesResponse
- type ListBatchesResponse
- type ListClustersResponse
- type ListJobsResponse
- type ListOperationsResponse
- type ListSessionTemplatesResponse
- type ListSessionsResponse
- type ListWorkflowTemplatesResponse
- type LoggingConfig
- type ManagedCluster
- type ManagedGroupConfig
- type MetastoreConfig
- type Metric
- type NamespacedGkeDeploymentTarget
- type NodeGroup
- type NodeGroupAffinity
- type NodeGroupOperationMetadata
- type NodeInitializationAction
- type NodePool
- type Operation
- type OrderedJob
- type ParameterValidation
- type PeripheralsConfig
- type PigJob
- type Policy
- type PrestoJob
- type ProjectsLocationsAutoscalingPoliciesCreateCall
- func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall
- func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesCreateCall
- func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header
- type ProjectsLocationsAutoscalingPoliciesDeleteCall
- func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall
- func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesDeleteCall
- func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header
- type ProjectsLocationsAutoscalingPoliciesGetCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header
- func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall
- type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAutoscalingPoliciesListCall
- func (c *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error
- type ProjectsLocationsAutoscalingPoliciesService
- func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *ProjectsLocationsAutoscalingPoliciesDeleteCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
- func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesUpdateCall
- type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsAutoscalingPoliciesUpdateCall
- func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall
- func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesUpdateCall
- func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header
- type ProjectsLocationsBatchesAnalyzeCall
- func (c *ProjectsLocationsBatchesAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsBatchesAnalyzeCall
- func (c *ProjectsLocationsBatchesAnalyzeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsBatchesAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesAnalyzeCall
- func (c *ProjectsLocationsBatchesAnalyzeCall) Header() http.Header
- type ProjectsLocationsBatchesCreateCall
- func (c *ProjectsLocationsBatchesCreateCall) BatchId(batchId string) *ProjectsLocationsBatchesCreateCall
- func (c *ProjectsLocationsBatchesCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchesCreateCall
- func (c *ProjectsLocationsBatchesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsBatchesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesCreateCall
- func (c *ProjectsLocationsBatchesCreateCall) Header() http.Header
- func (c *ProjectsLocationsBatchesCreateCall) RequestId(requestId string) *ProjectsLocationsBatchesCreateCall
- type ProjectsLocationsBatchesDeleteCall
- func (c *ProjectsLocationsBatchesDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchesDeleteCall
- func (c *ProjectsLocationsBatchesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsBatchesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesDeleteCall
- func (c *ProjectsLocationsBatchesDeleteCall) Header() http.Header
- type ProjectsLocationsBatchesGetCall
- func (c *ProjectsLocationsBatchesGetCall) Context(ctx context.Context) *ProjectsLocationsBatchesGetCall
- func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Batch, error)
- func (c *ProjectsLocationsBatchesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesGetCall
- func (c *ProjectsLocationsBatchesGetCall) Header() http.Header
- func (c *ProjectsLocationsBatchesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesGetCall
- type ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) Context(ctx context.Context) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*ListBatchesResponse, error)
- func (c *ProjectsLocationsBatchesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) Filter(filter string) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) Header() http.Header
- func (c *ProjectsLocationsBatchesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) OrderBy(orderBy string) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) PageSize(pageSize int64) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) PageToken(pageToken string) *ProjectsLocationsBatchesListCall
- func (c *ProjectsLocationsBatchesListCall) Pages(ctx context.Context, f func(*ListBatchesResponse) error) error
- type ProjectsLocationsBatchesService
- func (r *ProjectsLocationsBatchesService) Analyze(name string, analyzebatchrequest *AnalyzeBatchRequest) *ProjectsLocationsBatchesAnalyzeCall
- func (r *ProjectsLocationsBatchesService) Create(parent string, batch *Batch) *ProjectsLocationsBatchesCreateCall
- func (r *ProjectsLocationsBatchesService) Delete(name string) *ProjectsLocationsBatchesDeleteCall
- func (r *ProjectsLocationsBatchesService) Get(name string) *ProjectsLocationsBatchesGetCall
- func (r *ProjectsLocationsBatchesService) List(parent string) *ProjectsLocationsBatchesListCall
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsLocationsSessionTemplatesCreateCall
- func (c *ProjectsLocationsSessionTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesCreateCall
- func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
- func (c *ProjectsLocationsSessionTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesCreateCall
- func (c *ProjectsLocationsSessionTemplatesCreateCall) Header() http.Header
- type ProjectsLocationsSessionTemplatesDeleteCall
- func (c *ProjectsLocationsSessionTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesDeleteCall
- func (c *ProjectsLocationsSessionTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsSessionTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesDeleteCall
- func (c *ProjectsLocationsSessionTemplatesDeleteCall) Header() http.Header
- type ProjectsLocationsSessionTemplatesGetCall
- func (c *ProjectsLocationsSessionTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesGetCall
- func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
- func (c *ProjectsLocationsSessionTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesGetCall
- func (c *ProjectsLocationsSessionTemplatesGetCall) Header() http.Header
- func (c *ProjectsLocationsSessionTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesGetCall
- type ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListSessionTemplatesResponse, error)
- func (c *ProjectsLocationsSessionTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) Filter(filter string) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) Header() http.Header
- func (c *ProjectsLocationsSessionTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsSessionTemplatesListCall
- func (c *ProjectsLocationsSessionTemplatesListCall) Pages(ctx context.Context, f func(*ListSessionTemplatesResponse) error) error
- type ProjectsLocationsSessionTemplatesPatchCall
- func (c *ProjectsLocationsSessionTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesPatchCall
- func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
- func (c *ProjectsLocationsSessionTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesPatchCall
- func (c *ProjectsLocationsSessionTemplatesPatchCall) Header() http.Header
- type ProjectsLocationsSessionTemplatesService
- func (r *ProjectsLocationsSessionTemplatesService) Create(parent string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesCreateCall
- func (r *ProjectsLocationsSessionTemplatesService) Delete(name string) *ProjectsLocationsSessionTemplatesDeleteCall
- func (r *ProjectsLocationsSessionTemplatesService) Get(name string) *ProjectsLocationsSessionTemplatesGetCall
- func (r *ProjectsLocationsSessionTemplatesService) List(parent string) *ProjectsLocationsSessionTemplatesListCall
- func (r *ProjectsLocationsSessionTemplatesService) Patch(name string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesPatchCall
- type ProjectsLocationsSessionsCreateCall
- func (c *ProjectsLocationsSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionsCreateCall
- func (c *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsCreateCall
- func (c *ProjectsLocationsSessionsCreateCall) Header() http.Header
- func (c *ProjectsLocationsSessionsCreateCall) RequestId(requestId string) *ProjectsLocationsSessionsCreateCall
- func (c *ProjectsLocationsSessionsCreateCall) SessionId(sessionId string) *ProjectsLocationsSessionsCreateCall
- type ProjectsLocationsSessionsDeleteCall
- func (c *ProjectsLocationsSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionsDeleteCall
- func (c *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsDeleteCall
- func (c *ProjectsLocationsSessionsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsSessionsDeleteCall) RequestId(requestId string) *ProjectsLocationsSessionsDeleteCall
- type ProjectsLocationsSessionsGetCall
- func (c *ProjectsLocationsSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsSessionsGetCall
- func (c *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Session, error)
- func (c *ProjectsLocationsSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsGetCall
- func (c *ProjectsLocationsSessionsGetCall) Header() http.Header
- func (c *ProjectsLocationsSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsGetCall
- type ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*ListSessionsResponse, error)
- func (c *ProjectsLocationsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) Filter(filter string) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) Header() http.Header
- func (c *ProjectsLocationsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsSessionsListCall
- func (c *ProjectsLocationsSessionsListCall) Pages(ctx context.Context, f func(*ListSessionsResponse) error) error
- type ProjectsLocationsSessionsService
- func (r *ProjectsLocationsSessionsService) Create(parent string, session *Session) *ProjectsLocationsSessionsCreateCall
- func (r *ProjectsLocationsSessionsService) Delete(name string) *ProjectsLocationsSessionsDeleteCall
- func (r *ProjectsLocationsSessionsService) Get(name string) *ProjectsLocationsSessionsGetCall
- func (r *ProjectsLocationsSessionsService) List(parent string) *ProjectsLocationsSessionsListCall
- func (r *ProjectsLocationsSessionsService) Terminate(name string, terminatesessionrequest *TerminateSessionRequest) *ProjectsLocationsSessionsTerminateCall
- type ProjectsLocationsSessionsTerminateCall
- func (c *ProjectsLocationsSessionsTerminateCall) Context(ctx context.Context) *ProjectsLocationsSessionsTerminateCall
- func (c *ProjectsLocationsSessionsTerminateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSessionsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsTerminateCall
- func (c *ProjectsLocationsSessionsTerminateCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesCreateCall
- func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesCreateCall
- func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesCreateCall
- func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesDeleteCall
- func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesDeleteCall
- func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesDeleteCall
- func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header
- func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesDeleteCall
- type ProjectsLocationsWorkflowTemplatesGetCall
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetCall
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetCall
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetCall
- func (c *ProjectsLocationsWorkflowTemplatesGetCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesGetCall
- type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesInstantiateCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
- func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- type ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
- func (c *ProjectsLocationsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header
- func (c *ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsWorkflowTemplatesListCall
- func (c *ProjectsLocationsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error
- type ProjectsLocationsWorkflowTemplatesService
- func (r *ProjectsLocationsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesCreateCall
- func (r *ProjectsLocationsWorkflowTemplatesService) Delete(name string) *ProjectsLocationsWorkflowTemplatesDeleteCall
- func (r *ProjectsLocationsWorkflowTemplatesService) Get(name string) *ProjectsLocationsWorkflowTemplatesGetCall
- func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- func (r *ProjectsLocationsWorkflowTemplatesService) Instantiate(name string, ...) *ProjectsLocationsWorkflowTemplatesInstantiateCall
- func (r *ProjectsLocationsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- func (r *ProjectsLocationsWorkflowTemplatesService) List(parent string) *ProjectsLocationsWorkflowTemplatesListCall
- func (r *ProjectsLocationsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
- func (r *ProjectsLocationsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
- func (r *ProjectsLocationsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesUpdateCall
- type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsWorkflowTemplatesUpdateCall
- func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesUpdateCall
- func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesUpdateCall
- func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesCreateCall
- func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesCreateCall
- func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesCreateCall
- func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesDeleteCall
- func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesDeleteCall
- func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesDeleteCall
- func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesGetCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header
- func (c *ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetCall
- type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsRegionsAutoscalingPoliciesListCall
- func (c *ProjectsRegionsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error
- type ProjectsRegionsAutoscalingPoliciesService
- func (r *ProjectsRegionsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesCreateCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) Delete(name string) *ProjectsRegionsAutoscalingPoliciesDeleteCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) Get(name string) *ProjectsRegionsAutoscalingPoliciesGetCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) List(parent string) *ProjectsRegionsAutoscalingPoliciesListCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
- func (r *ProjectsRegionsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesUpdateCall
- type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
- func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
- type ProjectsRegionsAutoscalingPoliciesUpdateCall
- func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesUpdateCall
- func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
- func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesUpdateCall
- func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header
- type ProjectsRegionsClustersCreateCall
- func (c *ProjectsRegionsClustersCreateCall) ActionOnFailedPrimaryWorkers(actionOnFailedPrimaryWorkers string) *ProjectsRegionsClustersCreateCall
- func (c *ProjectsRegionsClustersCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersCreateCall
- func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersCreateCall
- func (c *ProjectsRegionsClustersCreateCall) Header() http.Header
- func (c *ProjectsRegionsClustersCreateCall) RequestId(requestId string) *ProjectsRegionsClustersCreateCall
- type ProjectsRegionsClustersDeleteCall
- func (c *ProjectsRegionsClustersDeleteCall) ClusterUuid(clusterUuid string) *ProjectsRegionsClustersDeleteCall
- func (c *ProjectsRegionsClustersDeleteCall) Context(ctx context.Context) *ProjectsRegionsClustersDeleteCall
- func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDeleteCall
- func (c *ProjectsRegionsClustersDeleteCall) GracefulTerminationTimeout(gracefulTerminationTimeout string) *ProjectsRegionsClustersDeleteCall
- func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header
- func (c *ProjectsRegionsClustersDeleteCall) RequestId(requestId string) *ProjectsRegionsClustersDeleteCall
- type ProjectsRegionsClustersDiagnoseCall
- func (c *ProjectsRegionsClustersDiagnoseCall) Context(ctx context.Context) *ProjectsRegionsClustersDiagnoseCall
- func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersDiagnoseCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDiagnoseCall
- func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header
- type ProjectsRegionsClustersGetCall
- func (c *ProjectsRegionsClustersGetCall) Context(ctx context.Context) *ProjectsRegionsClustersGetCall
- func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
- func (c *ProjectsRegionsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetCall
- func (c *ProjectsRegionsClustersGetCall) Header() http.Header
- func (c *ProjectsRegionsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetCall
- type ProjectsRegionsClustersGetIamPolicyCall
- func (c *ProjectsRegionsClustersGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersGetIamPolicyCall
- func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsClustersGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetIamPolicyCall
- func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header
- type ProjectsRegionsClustersInjectCredentialsCall
- func (c *ProjectsRegionsClustersInjectCredentialsCall) Context(ctx context.Context) *ProjectsRegionsClustersInjectCredentialsCall
- func (c *ProjectsRegionsClustersInjectCredentialsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersInjectCredentialsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersInjectCredentialsCall
- func (c *ProjectsRegionsClustersInjectCredentialsCall) Header() http.Header
- type ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) Context(ctx context.Context) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
- func (c *ProjectsRegionsClustersListCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) Filter(filter string) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) Header() http.Header
- func (c *ProjectsRegionsClustersListCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) PageSize(pageSize int64) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) PageToken(pageToken string) *ProjectsRegionsClustersListCall
- func (c *ProjectsRegionsClustersListCall) Pages(ctx context.Context, f func(*ListClustersResponse) error) error
- type ProjectsRegionsClustersNodeGroupsCreateCall
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsCreateCall
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsCreateCall
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Header() http.Header
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) NodeGroupId(nodeGroupId string) *ProjectsRegionsClustersNodeGroupsCreateCall
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) ParentOperationId(parentOperationId string) *ProjectsRegionsClustersNodeGroupsCreateCall
- func (c *ProjectsRegionsClustersNodeGroupsCreateCall) RequestId(requestId string) *ProjectsRegionsClustersNodeGroupsCreateCall
- type ProjectsRegionsClustersNodeGroupsGetCall
- func (c *ProjectsRegionsClustersNodeGroupsGetCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsGetCall
- func (c *ProjectsRegionsClustersNodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, error)
- func (c *ProjectsRegionsClustersNodeGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsGetCall
- func (c *ProjectsRegionsClustersNodeGroupsGetCall) Header() http.Header
- func (c *ProjectsRegionsClustersNodeGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersNodeGroupsGetCall
- type ProjectsRegionsClustersNodeGroupsRepairCall
- func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsRepairCall
- func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsRepairCall
- func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Header() http.Header
- type ProjectsRegionsClustersNodeGroupsResizeCall
- func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsResizeCall
- func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsResizeCall
- func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Header() http.Header
- type ProjectsRegionsClustersNodeGroupsService
- func (r *ProjectsRegionsClustersNodeGroupsService) Create(parent string, nodegroup *NodeGroup) *ProjectsRegionsClustersNodeGroupsCreateCall
- func (r *ProjectsRegionsClustersNodeGroupsService) Get(name string) *ProjectsRegionsClustersNodeGroupsGetCall
- func (r *ProjectsRegionsClustersNodeGroupsService) Repair(name string, repairnodegrouprequest *RepairNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsRepairCall
- func (r *ProjectsRegionsClustersNodeGroupsService) Resize(name string, resizenodegrouprequest *ResizeNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsResizeCall
- type ProjectsRegionsClustersPatchCall
- func (c *ProjectsRegionsClustersPatchCall) Context(ctx context.Context) *ProjectsRegionsClustersPatchCall
- func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersPatchCall
- func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall
- func (c *ProjectsRegionsClustersPatchCall) Header() http.Header
- func (c *ProjectsRegionsClustersPatchCall) RequestId(requestId string) *ProjectsRegionsClustersPatchCall
- func (c *ProjectsRegionsClustersPatchCall) UpdateMask(updateMask string) *ProjectsRegionsClustersPatchCall
- type ProjectsRegionsClustersRepairCall
- func (c *ProjectsRegionsClustersRepairCall) Context(ctx context.Context) *ProjectsRegionsClustersRepairCall
- func (c *ProjectsRegionsClustersRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersRepairCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersRepairCall
- func (c *ProjectsRegionsClustersRepairCall) Header() http.Header
- type ProjectsRegionsClustersService
- func (r *ProjectsRegionsClustersService) Create(projectId string, region string, cluster *Cluster) *ProjectsRegionsClustersCreateCall
- func (r *ProjectsRegionsClustersService) Delete(projectId string, region string, clusterName string) *ProjectsRegionsClustersDeleteCall
- func (r *ProjectsRegionsClustersService) Diagnose(projectId string, region string, clusterName string, ...) *ProjectsRegionsClustersDiagnoseCall
- func (r *ProjectsRegionsClustersService) Get(projectId string, region string, clusterName string) *ProjectsRegionsClustersGetCall
- func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsClustersGetIamPolicyCall
- func (r *ProjectsRegionsClustersService) InjectCredentials(project string, region string, cluster string, ...) *ProjectsRegionsClustersInjectCredentialsCall
- func (r *ProjectsRegionsClustersService) List(projectId string, region string) *ProjectsRegionsClustersListCall
- func (r *ProjectsRegionsClustersService) Patch(projectId string, region string, clusterName string, cluster *Cluster) *ProjectsRegionsClustersPatchCall
- func (r *ProjectsRegionsClustersService) Repair(projectId string, region string, clusterName string, ...) *ProjectsRegionsClustersRepairCall
- func (r *ProjectsRegionsClustersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsClustersSetIamPolicyCall
- func (r *ProjectsRegionsClustersService) Start(projectId string, region string, clusterName string, ...) *ProjectsRegionsClustersStartCall
- func (r *ProjectsRegionsClustersService) Stop(projectId string, region string, clusterName string, ...) *ProjectsRegionsClustersStopCall
- func (r *ProjectsRegionsClustersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsClustersTestIamPermissionsCall
- type ProjectsRegionsClustersSetIamPolicyCall
- func (c *ProjectsRegionsClustersSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersSetIamPolicyCall
- func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsClustersSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersSetIamPolicyCall
- func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header
- type ProjectsRegionsClustersStartCall
- func (c *ProjectsRegionsClustersStartCall) Context(ctx context.Context) *ProjectsRegionsClustersStartCall
- func (c *ProjectsRegionsClustersStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersStartCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStartCall
- func (c *ProjectsRegionsClustersStartCall) Header() http.Header
- type ProjectsRegionsClustersStopCall
- func (c *ProjectsRegionsClustersStopCall) Context(ctx context.Context) *ProjectsRegionsClustersStopCall
- func (c *ProjectsRegionsClustersStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsClustersStopCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStopCall
- func (c *ProjectsRegionsClustersStopCall) Header() http.Header
- type ProjectsRegionsClustersTestIamPermissionsCall
- func (c *ProjectsRegionsClustersTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsClustersTestIamPermissionsCall
- func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsRegionsClustersTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersTestIamPermissionsCall
- func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header
- type ProjectsRegionsJobsCancelCall
- func (c *ProjectsRegionsJobsCancelCall) Context(ctx context.Context) *ProjectsRegionsJobsCancelCall
- func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, error)
- func (c *ProjectsRegionsJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsCancelCall
- func (c *ProjectsRegionsJobsCancelCall) Header() http.Header
- type ProjectsRegionsJobsDeleteCall
- func (c *ProjectsRegionsJobsDeleteCall) Context(ctx context.Context) *ProjectsRegionsJobsDeleteCall
- func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsRegionsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsDeleteCall
- func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header
- type ProjectsRegionsJobsGetCall
- func (c *ProjectsRegionsJobsGetCall) Context(ctx context.Context) *ProjectsRegionsJobsGetCall
- func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error)
- func (c *ProjectsRegionsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetCall
- func (c *ProjectsRegionsJobsGetCall) Header() http.Header
- func (c *ProjectsRegionsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetCall
- type ProjectsRegionsJobsGetIamPolicyCall
- func (c *ProjectsRegionsJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsGetIamPolicyCall
- func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetIamPolicyCall
- func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header
- type ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) ClusterName(clusterName string) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) Context(ctx context.Context) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error)
- func (c *ProjectsRegionsJobsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) Filter(filter string) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) Header() http.Header
- func (c *ProjectsRegionsJobsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) JobStateMatcher(jobStateMatcher string) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) PageSize(pageSize int64) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) PageToken(pageToken string) *ProjectsRegionsJobsListCall
- func (c *ProjectsRegionsJobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error
- type ProjectsRegionsJobsPatchCall
- func (c *ProjectsRegionsJobsPatchCall) Context(ctx context.Context) *ProjectsRegionsJobsPatchCall
- func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error)
- func (c *ProjectsRegionsJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsPatchCall
- func (c *ProjectsRegionsJobsPatchCall) Header() http.Header
- func (c *ProjectsRegionsJobsPatchCall) UpdateMask(updateMask string) *ProjectsRegionsJobsPatchCall
- type ProjectsRegionsJobsService
- func (r *ProjectsRegionsJobsService) Cancel(projectId string, region string, jobId string, ...) *ProjectsRegionsJobsCancelCall
- func (r *ProjectsRegionsJobsService) Delete(projectId string, region string, jobId string) *ProjectsRegionsJobsDeleteCall
- func (r *ProjectsRegionsJobsService) Get(projectId string, region string, jobId string) *ProjectsRegionsJobsGetCall
- func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsJobsGetIamPolicyCall
- func (r *ProjectsRegionsJobsService) List(projectId string, region string) *ProjectsRegionsJobsListCall
- func (r *ProjectsRegionsJobsService) Patch(projectId string, region string, jobId string, job *Job) *ProjectsRegionsJobsPatchCall
- func (r *ProjectsRegionsJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsJobsSetIamPolicyCall
- func (r *ProjectsRegionsJobsService) Submit(projectId string, region string, submitjobrequest *SubmitJobRequest) *ProjectsRegionsJobsSubmitCall
- func (r *ProjectsRegionsJobsService) SubmitAsOperation(projectId string, region string, submitjobrequest *SubmitJobRequest) *ProjectsRegionsJobsSubmitAsOperationCall
- func (r *ProjectsRegionsJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsJobsTestIamPermissionsCall
- type ProjectsRegionsJobsSetIamPolicyCall
- func (c *ProjectsRegionsJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsSetIamPolicyCall
- func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSetIamPolicyCall
- func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header
- type ProjectsRegionsJobsSubmitAsOperationCall
- func (c *ProjectsRegionsJobsSubmitAsOperationCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitAsOperationCall
- func (c *ProjectsRegionsJobsSubmitAsOperationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsJobsSubmitAsOperationCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitAsOperationCall
- func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header
- type ProjectsRegionsJobsSubmitCall
- func (c *ProjectsRegionsJobsSubmitCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitCall
- func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, error)
- func (c *ProjectsRegionsJobsSubmitCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitCall
- func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header
- type ProjectsRegionsJobsTestIamPermissionsCall
- func (c *ProjectsRegionsJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsJobsTestIamPermissionsCall
- func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsRegionsJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsTestIamPermissionsCall
- func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header
- type ProjectsRegionsOperationsCancelCall
- func (c *ProjectsRegionsOperationsCancelCall) Context(ctx context.Context) *ProjectsRegionsOperationsCancelCall
- func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsRegionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsCancelCall
- func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header
- type ProjectsRegionsOperationsDeleteCall
- func (c *ProjectsRegionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsRegionsOperationsDeleteCall
- func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsRegionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsDeleteCall
- func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header
- type ProjectsRegionsOperationsGetCall
- func (c *ProjectsRegionsOperationsGetCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetCall
- func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetCall
- func (c *ProjectsRegionsOperationsGetCall) Header() http.Header
- func (c *ProjectsRegionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetCall
- type ProjectsRegionsOperationsGetIamPolicyCall
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetIamPolicyCall
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetIamPolicyCall
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header
- type ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) Context(ctx context.Context) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsRegionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) Filter(filter string) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) Header() http.Header
- func (c *ProjectsRegionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) PageSize(pageSize int64) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) PageToken(pageToken string) *ProjectsRegionsOperationsListCall
- func (c *ProjectsRegionsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsRegionsOperationsService
- func (r *ProjectsRegionsOperationsService) Cancel(name string) *ProjectsRegionsOperationsCancelCall
- func (r *ProjectsRegionsOperationsService) Delete(name string) *ProjectsRegionsOperationsDeleteCall
- func (r *ProjectsRegionsOperationsService) Get(name string) *ProjectsRegionsOperationsGetCall
- func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsOperationsGetIamPolicyCall
- func (r *ProjectsRegionsOperationsService) List(name string) *ProjectsRegionsOperationsListCall
- func (r *ProjectsRegionsOperationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsOperationsSetIamPolicyCall
- func (r *ProjectsRegionsOperationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsOperationsTestIamPermissionsCall
- type ProjectsRegionsOperationsSetIamPolicyCall
- func (c *ProjectsRegionsOperationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsSetIamPolicyCall
- func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsOperationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsSetIamPolicyCall
- func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header
- type ProjectsRegionsOperationsTestIamPermissionsCall
- func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsOperationsTestIamPermissionsCall
- func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsTestIamPermissionsCall
- func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header
- type ProjectsRegionsService
- type ProjectsRegionsWorkflowTemplatesCreateCall
- func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesCreateCall
- func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesCreateCall
- func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header
- type ProjectsRegionsWorkflowTemplatesDeleteCall
- func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesDeleteCall
- func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesDeleteCall
- func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header
- func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesDeleteCall
- type ProjectsRegionsWorkflowTemplatesGetCall
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetCall
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetCall
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetCall
- func (c *ProjectsRegionsWorkflowTemplatesGetCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesGetCall
- type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
- type ProjectsRegionsWorkflowTemplatesInstantiateCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header
- type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
- func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- type ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
- func (c *ProjectsRegionsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header
- func (c *ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsRegionsWorkflowTemplatesListCall
- func (c *ProjectsRegionsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error
- type ProjectsRegionsWorkflowTemplatesService
- func (r *ProjectsRegionsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesCreateCall
- func (r *ProjectsRegionsWorkflowTemplatesService) Delete(name string) *ProjectsRegionsWorkflowTemplatesDeleteCall
- func (r *ProjectsRegionsWorkflowTemplatesService) Get(name string) *ProjectsRegionsWorkflowTemplatesGetCall
- func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- func (r *ProjectsRegionsWorkflowTemplatesService) Instantiate(name string, ...) *ProjectsRegionsWorkflowTemplatesInstantiateCall
- func (r *ProjectsRegionsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- func (r *ProjectsRegionsWorkflowTemplatesService) List(parent string) *ProjectsRegionsWorkflowTemplatesListCall
- func (r *ProjectsRegionsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
- func (r *ProjectsRegionsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
- func (r *ProjectsRegionsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesUpdateCall
- type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
- type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
- func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
- type ProjectsRegionsWorkflowTemplatesUpdateCall
- func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesUpdateCall
- func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
- func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesUpdateCall
- func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header
- type ProjectsService
- type PyPiRepositoryConfig
- type PySparkBatch
- type PySparkJob
- type QueryList
- type RegexValidation
- type RepairClusterRequest
- type RepairNodeGroupRequest
- type RepositoryConfig
- type ReservationAffinity
- type ResizeNodeGroupRequest
- type RuntimeConfig
- type RuntimeInfo
- type SecurityConfig
- type Service
- type Session
- type SessionOperationMetadata
- type SessionStateHistory
- type SessionTemplate
- type SetIamPolicyRequest
- type ShieldedInstanceConfig
- type SoftwareConfig
- type SparkBatch
- type SparkHistoryServerConfig
- type SparkJob
- type SparkRBatch
- type SparkRJob
- type SparkSqlBatch
- type SparkSqlJob
- type SparkStandaloneAutoscalingConfig
- type StartClusterRequest
- type StartupConfig
- type StateHistory
- type Status
- type StopClusterRequest
- type SubmitJobRequest
- type TemplateParameter
- type TerminateSessionRequest
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type TrinoJob
- type UsageMetrics
- type UsageSnapshot
- type ValueValidation
- type VirtualClusterConfig
- type WorkflowGraph
- type WorkflowMetadata
- type WorkflowNode
- type WorkflowTemplate
- type WorkflowTemplatePlacement
- type YarnApplication
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the email // address for your Google Account. 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 AcceleratorConfig ¶
type AcceleratorConfig struct { // AcceleratorCount: The number of the accelerator cards of this type exposed // to this instance. AcceleratorCount int64 `json:"acceleratorCount,omitempty"` // AcceleratorTypeUri: Full URL, partial URI, or short name of the accelerator // type resource to expose to this instance. See Compute Engine // AcceleratorTypes // (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 // projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 // nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone // Placement // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) // feature, you must use the short name of the accelerator type resource, for // example, nvidia-tesla-t4. AcceleratorTypeUri string `json:"acceleratorTypeUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceleratorCount") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AcceleratorConfig: Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
func (AcceleratorConfig) MarshalJSON ¶
func (s AcceleratorConfig) MarshalJSON() ([]byte, error)
type AnalyzeBatchRequest ¶ added in v0.172.0
type AnalyzeBatchRequest struct { // RequestId: Optional. A unique ID used to identify the request. If the // service receives two AnalyzeBatchRequest // (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s // with the same request_id, the second request is ignored and the Operation // that corresponds to the first request created and stored in the backend is // returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AnalyzeBatchRequest: A request to analyze a batch workload.
func (AnalyzeBatchRequest) MarshalJSON ¶ added in v0.172.0
func (s AnalyzeBatchRequest) MarshalJSON() ([]byte, error)
type AnalyzeOperationMetadata ¶ added in v0.166.0
type AnalyzeOperationMetadata struct { // AnalyzedWorkloadName: Output only. name of the workload being analyzed. AnalyzedWorkloadName string `json:"analyzedWorkloadName,omitempty"` // AnalyzedWorkloadType: Output only. Type of the workload being analyzed. // // Possible values: // "WORKLOAD_TYPE_UNSPECIFIED" - Undefined option // "BATCH" - Serverless batch job AnalyzedWorkloadType string `json:"analyzedWorkloadType,omitempty"` // AnalyzedWorkloadUuid: Output only. unique identifier of the workload // typically generated by control plane. E.g. batch uuid. AnalyzedWorkloadUuid string `json:"analyzedWorkloadUuid,omitempty"` // CreateTime: Output only. The time when the operation was created. CreateTime string `json:"createTime,omitempty"` // Description: Output only. Short description of the operation. Description string `json:"description,omitempty"` // DoneTime: Output only. The time when the operation finished. DoneTime string `json:"doneTime,omitempty"` // Labels: Output only. Labels associated with the operation. Labels map[string]string `json:"labels,omitempty"` // Warnings: Output only. Warnings encountered during operation execution. Warnings []string `json:"warnings,omitempty"` // ForceSendFields is a list of field names (e.g. "AnalyzedWorkloadName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AnalyzedWorkloadName") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AnalyzeOperationMetadata: Metadata describing the Analyze operation.
func (AnalyzeOperationMetadata) MarshalJSON ¶ added in v0.166.0
func (s AnalyzeOperationMetadata) MarshalJSON() ([]byte, error)
type AutoscalingConfig ¶ added in v0.11.0
type AutoscalingConfig struct { // PolicyUri: Optional. The autoscaling policy used by the cluster.Only // resource names including projectid and location (region) are valid. // Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] // projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy // _id]Note that the policy must be in the same project and Dataproc region. PolicyUri string `json:"policyUri,omitempty"` // ForceSendFields is a list of field names (e.g. "PolicyUri") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PolicyUri") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AutoscalingConfig: Autoscaling Policy config associated with the cluster.
func (AutoscalingConfig) MarshalJSON ¶ added in v0.11.0
func (s AutoscalingConfig) MarshalJSON() ([]byte, error)
type AutoscalingPolicy ¶ added in v0.11.0
type AutoscalingPolicy struct { BasicAlgorithm *BasicAutoscalingAlgorithm `json:"basicAlgorithm,omitempty"` // Id: Required. The policy id.The id must contain only letters (a-z, A-Z), // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with // underscore or hyphen. Must consist of between 3 and 50 characters. Id string `json:"id,omitempty"` // Labels: Optional. The labels to associate with this autoscaling policy. // Label keys must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if // present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with an autoscaling policy. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The "resource name" of the autoscaling policy, as // described in https://cloud.google.com/apis/design/resource_names. For // projects.regions.autoscalingPolicies, the resource name of the policy has // the following format: // projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For // projects.locations.autoscalingPolicies, the resource name of the policy has // the following format: // projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} Name string `json:"name,omitempty"` // SecondaryWorkerConfig: Optional. Describes how the autoscaler will operate // for secondary workers. SecondaryWorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"secondaryWorkerConfig,omitempty"` // WorkerConfig: Required. Describes how the autoscaler will operate for // primary workers. WorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"workerConfig,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BasicAlgorithm") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BasicAlgorithm") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AutoscalingPolicy: Describes an autoscaling policy for Dataproc cluster autoscaler.
func (AutoscalingPolicy) MarshalJSON ¶ added in v0.11.0
func (s AutoscalingPolicy) MarshalJSON() ([]byte, error)
type AutotuningConfig ¶ added in v0.185.0
type AutotuningConfig struct { // Scenarios: Optional. Scenarios for which tunings are applied. // // Possible values: // "SCENARIO_UNSPECIFIED" - Default value. // "SCALING" - Scaling recommendations such as initialExecutors. // "BROADCAST_HASH_JOIN" - Adding hints for potential relation broadcasts. // "MEMORY" - Memory management for workloads. Scenarios []string `json:"scenarios,omitempty"` // ForceSendFields is a list of field names (e.g. "Scenarios") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Scenarios") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AutotuningConfig: Autotuning configuration of the workload.
func (AutotuningConfig) MarshalJSON ¶ added in v0.185.0
func (s AutotuningConfig) MarshalJSON() ([]byte, error)
type AuxiliaryNodeGroup ¶ added in v0.106.0
type AuxiliaryNodeGroup struct { // NodeGroup: Required. Node group configuration. NodeGroup *NodeGroup `json:"nodeGroup,omitempty"` // NodeGroupId: Optional. A node group ID. Generated if not specified.The ID // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and // hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of // from 3 to 33 characters. NodeGroupId string `json:"nodeGroupId,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeGroup") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NodeGroup") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AuxiliaryNodeGroup: Node group identification and configuration information.
func (AuxiliaryNodeGroup) MarshalJSON ¶ added in v0.106.0
func (s AuxiliaryNodeGroup) MarshalJSON() ([]byte, error)
type AuxiliaryServicesConfig ¶ added in v0.75.0
type AuxiliaryServicesConfig struct { // MetastoreConfig: Optional. The Hive Metastore configuration for this // workload. MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` // SparkHistoryServerConfig: Optional. The Spark History Server configuration // for the workload. SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "MetastoreConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MetastoreConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AuxiliaryServicesConfig: Auxiliary services configuration for a Cluster.
func (AuxiliaryServicesConfig) MarshalJSON ¶ added in v0.75.0
func (s AuxiliaryServicesConfig) MarshalJSON() ([]byte, error)
type BasicAutoscalingAlgorithm ¶ added in v0.11.0
type BasicAutoscalingAlgorithm struct { // CooldownPeriod: Optional. Duration between scaling events. A scaling period // starts after the update operation from the previous event has // completed.Bounds: 2m, 1d. Default: 2m. CooldownPeriod string `json:"cooldownPeriod,omitempty"` // SparkStandaloneConfig: Optional. Spark Standalone autoscaling configuration SparkStandaloneConfig *SparkStandaloneAutoscalingConfig `json:"sparkStandaloneConfig,omitempty"` // YarnConfig: Optional. YARN autoscaling configuration. YarnConfig *BasicYarnAutoscalingConfig `json:"yarnConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "CooldownPeriod") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CooldownPeriod") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BasicAutoscalingAlgorithm: Basic algorithm for autoscaling.
func (BasicAutoscalingAlgorithm) MarshalJSON ¶ added in v0.11.0
func (s BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error)
type BasicYarnAutoscalingConfig ¶ added in v0.11.0
type BasicYarnAutoscalingConfig struct { // GracefulDecommissionTimeout: Required. Timeout for YARN graceful // decommissioning of Node Managers. Specifies the duration to wait for jobs to // complete before forcefully removing workers (and potentially interrupting // jobs). Only applicable to downscaling operations.Bounds: 0s, 1d. GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` // ScaleDownFactor: Required. Fraction of average YARN pending memory in the // last cooldown period for which to remove workers. A scale-down factor of 1 // will result in scaling down so that there is no available memory remaining // after the update (more aggressive scaling). A scale-down factor of 0 // disables removing workers, which can be beneficial for autoscaling a single // job. See How autoscaling works // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) // for more information.Bounds: 0.0, 1.0. ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a // fraction of total cluster size before scaling occurs. For example, in a // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. // Default: 0.0. ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` // ScaleUpFactor: Required. Fraction of average YARN pending memory in the last // cooldown period for which to add workers. A scale-up factor of 1.0 will // result in scaling up so that there is no pending memory remaining after the // update (more aggressive scaling). A scale-up factor closer to 0 will result // in a smaller magnitude of scaling up (less aggressive scaling). See How // autoscaling works // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) // for more information.Bounds: 0.0, 1.0. ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction // of total cluster size before scaling occurs. For example, in a 20-worker // cluster, a threshold of 0.1 means the autoscaler must recommend at least a // 2-worker scale-up for the cluster to scale. A threshold of 0 means the // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. // Default: 0.0. ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` // ForceSendFields is a list of field names (e.g. // "GracefulDecommissionTimeout") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields // for more details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BasicYarnAutoscalingConfig: Basic autoscaling configurations for YARN.
func (BasicYarnAutoscalingConfig) MarshalJSON ¶ added in v0.11.0
func (s BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error)
func (*BasicYarnAutoscalingConfig) UnmarshalJSON ¶ added in v0.11.0
func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error
type Batch ¶ added in v0.66.0
type Batch struct { // CreateTime: Output only. The time when the batch was created. CreateTime string `json:"createTime,omitempty"` // Creator: Output only. The email address of the user who created the batch. Creator string `json:"creator,omitempty"` // EnvironmentConfig: Optional. Environment configuration for the batch // execution. EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` // Labels: Optional. The labels to associate with this batch. Label keys must // contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if // present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with a batch. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource name of the batch. Name string `json:"name,omitempty"` // Operation: Output only. The resource name of the operation associated with // this batch. Operation string `json:"operation,omitempty"` // PysparkBatch: Optional. PySpark batch config. PysparkBatch *PySparkBatch `json:"pysparkBatch,omitempty"` // RuntimeConfig: Optional. Runtime configuration for the batch execution. RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` // RuntimeInfo: Output only. Runtime information about batch execution. RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` // SparkBatch: Optional. Spark batch config. SparkBatch *SparkBatch `json:"sparkBatch,omitempty"` // SparkRBatch: Optional. SparkR batch config. SparkRBatch *SparkRBatch `json:"sparkRBatch,omitempty"` // SparkSqlBatch: Optional. SparkSql batch config. SparkSqlBatch *SparkSqlBatch `json:"sparkSqlBatch,omitempty"` // State: Output only. The state of the batch. // // Possible values: // "STATE_UNSPECIFIED" - The batch state is unknown. // "PENDING" - The batch is created before running. // "RUNNING" - The batch is running. // "CANCELLING" - The batch is cancelling. // "CANCELLED" - The batch cancellation was successful. // "SUCCEEDED" - The batch completed successfully. // "FAILED" - The batch is no longer running due to an error. State string `json:"state,omitempty"` // StateHistory: Output only. Historical state information for the batch. StateHistory []*StateHistory `json:"stateHistory,omitempty"` // StateMessage: Output only. Batch state details, such as a failure // description if the state is FAILED. StateMessage string `json:"stateMessage,omitempty"` // StateTime: Output only. The time when the batch entered a current state. StateTime string `json:"stateTime,omitempty"` // Uuid: Output only. A batch UUID (Unique Universal Identifier). The service // generates this value when it creates the batch. Uuid string `json:"uuid,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Batch: A representation of a batch workload in the service.
func (Batch) MarshalJSON ¶ added in v0.66.0
type BatchOperationMetadata ¶ added in v0.46.0
type BatchOperationMetadata struct { // Batch: Name of the batch for the operation. Batch string `json:"batch,omitempty"` // BatchUuid: Batch UUID for the operation. BatchUuid string `json:"batchUuid,omitempty"` // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` // Description: Short description of the operation. Description string `json:"description,omitempty"` // DoneTime: The time when the operation finished. DoneTime string `json:"doneTime,omitempty"` // Labels: Labels associated with the operation. Labels map[string]string `json:"labels,omitempty"` // OperationType: The operation type. // // Possible values: // "BATCH_OPERATION_TYPE_UNSPECIFIED" - Batch operation type is unknown. // "BATCH" - Batch operation type. OperationType string `json:"operationType,omitempty"` // Warnings: Warnings encountered during operation execution. Warnings []string `json:"warnings,omitempty"` // ForceSendFields is a list of field names (e.g. "Batch") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Batch") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BatchOperationMetadata: Metadata describing the Batch operation.
func (BatchOperationMetadata) MarshalJSON ¶ added in v0.46.0
func (s BatchOperationMetadata) MarshalJSON() ([]byte, error)
type Binding ¶
type Binding struct { // Condition: The condition that is associated with this binding.If the // condition evaluates to true, then this binding applies to the current // request.If the condition evaluates to false, then this binding does not // apply to the current request. However, a different role binding might grant // the same role to one or more of the principals in this binding.To learn // which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the principals requesting access for a Google Cloud // resource. members can have the following values: allUsers: A special // identifier that represents anyone who is on the internet; with or without a // Google account. allAuthenticatedUsers: A special identifier that represents // anyone who is authenticated with a Google account or a service account. Does // not include identities that come from external identity providers (IdPs) // through identity federation. user:{emailid}: An email address that // represents a specific Google account. For example, alice@example.com . // serviceAccount:{emailid}: An email address that represents a Google service // account. For example, my-other-app@appspot.gserviceaccount.com. // serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. // group:{emailid}: An email address that represents a Google group. For // example, admins@example.com. domain:{domain}: The G Suite domain (primary) // that represents all the users of that domain. For example, google.com or // example.com. // principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subj // ect/{subject_attribute_value}: A single identity in a workforce identity // pool. // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/g // roup/{group_id}: All workforce identities in a group. // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/a // ttribute.{attribute_name}/{attribute_value}: All workforce identities with a // specific attribute value. // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/* // : All identities in a workforce identity pool. // principal://iam.googleapis.com/projects/{project_number}/locations/global/wor // kloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single // identity in a workload identity pool. // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ // workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool // group. // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ // workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: // All identities in a workload identity pool with a certain attribute. // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ // workloadIdentityPools/{pool_id}/*: All identities in a workload identity // pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique // identifier) representing a user that has been recently deleted. For example, // alice@example.com?uid=123456789012345678901. If the user is recovered, this // value reverts to user:{emailid} and the recovered user retains the role in // the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email // address (plus unique identifier) representing a service account that has // been recently deleted. For example, // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the // service account is undeleted, this value reverts to serviceAccount:{emailid} // and the undeleted service account retains the role in the binding. // deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique // identifier) representing a Google group that has been recently deleted. For // example, admins@example.com?uid=123456789012345678901. If the group is // recovered, this value reverts to group:{emailid} and the recovered group // retains the role in the binding. // deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_ // id}/subject/{subject_attribute_value}: Deleted single identity in a // workforce identity pool. For example, // deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-poo // l-id/subject/my-subject-attribute-value. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of members, or principals. For // example, roles/viewer, roles/editor, or roles/owner.For an overview of the // IAM roles and permissions, see the IAM documentation // (https://cloud.google.com/iam/docs/roles-overview). For a list of the // available pre-defined roles, see here // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Binding: Associates members, or principals, with a role.
func (Binding) MarshalJSON ¶
type CancelJobRequest ¶
type CancelJobRequest struct { }
CancelJobRequest: A request to cancel a job.
type Cluster ¶
type Cluster struct { // ClusterName: Required. The cluster name, which must be unique within a // project. The name must start with a lowercase letter, and can contain up to // 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The // name of a deleted cluster can be reused. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: Output only. A cluster UUID (Unique Universal Identifier). // Dataproc generates this value when it creates the cluster. ClusterUuid string `json:"clusterUuid,omitempty"` // Config: Optional. The cluster config for a cluster of Compute Engine // Instances. Note that Dataproc may set default values, and values may change // when clusters are updated.Exactly one of ClusterConfig or // VirtualClusterConfig must be specified. Config *ClusterConfig `json:"config,omitempty"` // Labels: Optional. The labels to associate with this cluster. Label keys must // contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if // present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with a cluster. Labels map[string]string `json:"labels,omitempty"` // Metrics: Output only. Contains cluster daemon metrics such as HDFS and YARN // stats.Beta Feature: This report is available for testing purposes only. It // may be changed before final release. Metrics *ClusterMetrics `json:"metrics,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. The previous cluster status. StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"` // VirtualClusterConfig: Optional. The virtual cluster config is used when // creating a Dataproc cluster that does not directly control the underlying // compute resources, for example, when creating a Dataproc-on-GKE cluster // (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). // Dataproc may set default values, and values may change when clusters are // updated. Exactly one of config or virtual_cluster_config must be specified. VirtualClusterConfig *VirtualClusterConfig `json:"virtualClusterConfig,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Cluster: Describes the identifying information, config, and status of a Dataproc cluster
func (Cluster) MarshalJSON ¶
type ClusterConfig ¶
type ClusterConfig struct { // AutoscalingConfig: Optional. Autoscaling config for the policy associated // with the cluster. Cluster does not autoscale if this field is unset. AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` // AuxiliaryNodeGroups: Optional. The node group settings. AuxiliaryNodeGroups []*AuxiliaryNodeGroup `json:"auxiliaryNodeGroups,omitempty"` // ConfigBucket: Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. If you do not // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage // location (US, ASIA, or EU) for your cluster's staging bucket according to // the Compute Engine zone where your cluster is deployed, and then create and // manage this project-level, per-location bucket (see Dataproc staging and // temp buckets // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). // This field requires a Cloud Storage bucket name, not a gs://... URI to a // Cloud Storage bucket. ConfigBucket string `json:"configBucket,omitempty"` // DataprocMetricConfig: Optional. The config for Dataproc metrics. DataprocMetricConfig *DataprocMetricConfig `json:"dataprocMetricConfig,omitempty"` // EncryptionConfig: Optional. Encryption settings for the cluster. EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` // EndpointConfig: Optional. Port/endpoint configuration for this cluster EndpointConfig *EndpointConfig `json:"endpointConfig,omitempty"` // GceClusterConfig: Optional. The shared Compute Engine config settings for // all instances in a cluster. GceClusterConfig *GceClusterConfig `json:"gceClusterConfig,omitempty"` // GkeClusterConfig: Optional. BETA. The Kubernetes Engine config for Dataproc // clusters deployed to The Kubernetes Engine config for Dataproc clusters // deployed to Kubernetes. These config settings are mutually exclusive with // Compute Engine-based options, such as gce_cluster_config, master_config, // worker_config, secondary_worker_config, and autoscaling_config. GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` // InitializationActions: Optional. Commands to execute on each node after // config 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 using curl (you can also use wget): // ROLE=$(curl -H Metadata-Flavor:Google // http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ // "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... // worker specific actions ... fi InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` // LifecycleConfig: Optional. Lifecycle setting for the cluster. LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"` // MasterConfig: Optional. The Compute Engine config settings for the cluster's // master instance. MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"` // MetastoreConfig: Optional. Metastore configuration. MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` // SecondaryWorkerConfig: Optional. The Compute Engine config settings for a // cluster's secondary worker instances SecondaryWorkerConfig *InstanceGroupConfig `json:"secondaryWorkerConfig,omitempty"` // SecurityConfig: Optional. Security settings for the cluster. SecurityConfig *SecurityConfig `json:"securityConfig,omitempty"` // SoftwareConfig: Optional. The config settings for cluster software. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` // TempBucket: Optional. A Cloud Storage bucket used to store ephemeral cluster // and jobs data, such as Spark and MapReduce history files. If you do not // specify a temp bucket, Dataproc will determine a Cloud Storage location (US, // ASIA, or EU) for your cluster's temp bucket according to the Compute Engine // zone where your cluster is deployed, and then create and manage this // project-level, per-location bucket. The default bucket has a TTL of 90 days, // but you can use any TTL (or none) if you specify a bucket (see Dataproc // staging and temp buckets // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). // This field requires a Cloud Storage bucket name, not a gs://... URI to a // Cloud Storage bucket. TempBucket string `json:"tempBucket,omitempty"` // WorkerConfig: Optional. The Compute Engine config settings for the cluster's // worker instances. WorkerConfig *InstanceGroupConfig `json:"workerConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoscalingConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterConfig: The cluster config.
func (ClusterConfig) MarshalJSON ¶
func (s ClusterConfig) MarshalJSON() ([]byte, error)
type ClusterMetrics ¶
type ClusterMetrics struct { // HdfsMetrics: The HDFS metrics. HdfsMetrics map[string]string `json:"hdfsMetrics,omitempty"` // YarnMetrics: YARN metrics. YarnMetrics map[string]string `json:"yarnMetrics,omitempty"` // ForceSendFields is a list of field names (e.g. "HdfsMetrics") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HdfsMetrics") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterMetrics: Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
func (ClusterMetrics) MarshalJSON ¶
func (s ClusterMetrics) MarshalJSON() ([]byte, error)
type ClusterOperation ¶
type ClusterOperation struct { // Done: Output only. Indicates the operation is done. Done bool `json:"done,omitempty"` // Error: Output only. Error, if operation failed. Error string `json:"error,omitempty"` // OperationId: Output only. The id of the cluster operation. OperationId string `json:"operationId,omitempty"` // ForceSendFields is a list of field names (e.g. "Done") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterOperation: The cluster operation triggered by a workflow.
func (ClusterOperation) MarshalJSON ¶
func (s ClusterOperation) MarshalJSON() ([]byte, error)
type ClusterOperationMetadata ¶
type ClusterOperationMetadata struct { // ChildOperationIds: Output only. Child operation ids ChildOperationIds []string `json:"childOperationIds,omitempty"` // ClusterName: Output only. Name of the cluster for the operation. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: Output only. Cluster UUID for the operation. ClusterUuid string `json:"clusterUuid,omitempty"` // Description: Output only. Short description of operation. Description string `json:"description,omitempty"` // Labels: Output only. Labels associated with the operation Labels map[string]string `json:"labels,omitempty"` // OperationType: Output only. The operation type. OperationType string `json:"operationType,omitempty"` // Status: Output only. Current operation status. Status *ClusterOperationStatus `json:"status,omitempty"` // StatusHistory: Output only. The previous operation status. StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` // Warnings: Output only. Errors encountered during operation execution. Warnings []string `json:"warnings,omitempty"` // ForceSendFields is a list of field names (e.g. "ChildOperationIds") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ChildOperationIds") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterOperationMetadata: Metadata describing the operation.
func (ClusterOperationMetadata) MarshalJSON ¶
func (s ClusterOperationMetadata) MarshalJSON() ([]byte, error)
type ClusterOperationStatus ¶
type ClusterOperationStatus struct { // Details: Output only. A message containing any operation metadata details. Details string `json:"details,omitempty"` // InnerState: Output only. A message containing the detailed operation state. InnerState string `json:"innerState,omitempty"` // State: Output only. A message containing the operation state. // // Possible values: // "UNKNOWN" - Unused. // "PENDING" - The operation has been created. // "RUNNING" - The operation is running. // "DONE" - The operation is done; either cancelled or completed. State string `json:"state,omitempty"` // StateStartTime: Output only. 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Details") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterOperationStatus: The status of the operation.
func (ClusterOperationStatus) MarshalJSON ¶
func (s ClusterOperationStatus) MarshalJSON() ([]byte, error)
type ClusterSelector ¶
type ClusterSelector struct { // ClusterLabels: Required. The cluster labels. Cluster must have all labels to // match. ClusterLabels map[string]string `json:"clusterLabels,omitempty"` // Zone: Optional. The zone where workflow process executes. This parameter // does not affect the selection of the cluster.If unspecified, the zone of the // first cluster matching the selector is used. Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterLabels") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterLabels") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterSelector: A selector that chooses target cluster for jobs based on metadata.
func (ClusterSelector) MarshalJSON ¶
func (s ClusterSelector) MarshalJSON() ([]byte, error)
type ClusterStatus ¶
type ClusterStatus struct { // Detail: Optional. Output only. Details of cluster's state. Detail string `json:"detail,omitempty"` // State: Output only. The cluster's state. // // Possible values: // "UNKNOWN" - The cluster state is unknown. // "CREATING" - The cluster is being created and set up. It is not ready for // use. // "RUNNING" - The cluster is currently running and healthy. It is ready for // use.Note: The cluster state changes from "creating" to "running" status // after the master node(s), first two primary worker nodes (and the last // primary worker node if primary workers > 2) are running. // "ERROR" - The cluster encountered an error. It is not ready for use. // "ERROR_DUE_TO_UPDATE" - The cluster has encountered an error while being // updated. Jobs can be submitted to the cluster, but the cluster cannot be // updated. // "DELETING" - The cluster is being deleted. It cannot be used. // "UPDATING" - The cluster is being updated. It continues to accept and // process jobs. // "STOPPING" - The cluster is being stopped. It cannot be used. // "STOPPED" - The cluster is currently stopped. It is not ready for use. // "STARTING" - The cluster is being started. It is not ready for use. // "REPAIRING" - The cluster is being repaired. It is not ready for use. State string `json:"state,omitempty"` // StateStartTime: Output only. Time when this state was entered (see JSON // representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). StateStartTime string `json:"stateStartTime,omitempty"` // Substate: Output only. Additional state information that includes status // reported by the agent. // // Possible values: // "UNSPECIFIED" - The cluster substate is unknown. // "UNHEALTHY" - The cluster is known to be in an unhealthy state (for // example, critical daemons are not running or HDFS capacity is // exhausted).Applies to RUNNING state. // "STALE_STATUS" - The agent-reported status is out of date (may occur if // Dataproc loses communication with Agent).Applies to RUNNING state. Substate string `json:"substate,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Detail") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ClusterStatus: The status of a cluster and its instances.
func (ClusterStatus) MarshalJSON ¶
func (s ClusterStatus) MarshalJSON() ([]byte, error)
type ConfidentialInstanceConfig ¶ added in v0.46.0
type ConfidentialInstanceConfig struct { // EnableConfidentialCompute: Optional. Defines whether the instance should // have confidential compute enabled. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableConfidentialCompute") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnableConfidentialCompute") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConfidentialInstanceConfig: Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)
func (ConfidentialInstanceConfig) MarshalJSON ¶ added in v0.46.0
func (s ConfidentialInstanceConfig) MarshalJSON() ([]byte, error)
type DataprocMetricConfig ¶ added in v0.68.0
type DataprocMetricConfig struct { // Metrics: Required. Metrics sources to enable. Metrics []*Metric `json:"metrics,omitempty"` // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metrics") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DataprocMetricConfig: Dataproc metric config.
func (DataprocMetricConfig) MarshalJSON ¶ added in v0.68.0
func (s DataprocMetricConfig) MarshalJSON() ([]byte, error)
type DiagnoseClusterRequest ¶
type DiagnoseClusterRequest struct { // DiagnosisInterval: Optional. Time interval in which diagnosis should be // carried out on the cluster. DiagnosisInterval *Interval `json:"diagnosisInterval,omitempty"` // Job: Optional. DEPRECATED Specifies the job on which diagnosis is to be // performed. Format: projects/{project}/regions/{region}/jobs/{job} Job string `json:"job,omitempty"` // Jobs: Optional. Specifies a list of jobs on which diagnosis is to be // performed. Format: projects/{project}/regions/{region}/jobs/{job} Jobs []string `json:"jobs,omitempty"` // TarballAccess: Optional. (Optional) The access type to the diagnostic // tarball. If not specified, falls back to default access of the bucket // // Possible values: // "TARBALL_ACCESS_UNSPECIFIED" - Tarball Access unspecified. Falls back to // default access of the bucket // "GOOGLE_CLOUD_SUPPORT" - Google Cloud Support group has read access to the // diagnostic tarball // "GOOGLE_DATAPROC_DIAGNOSE" - Google Cloud Dataproc Diagnose service // account has read access to the diagnostic tarball TarballAccess string `json:"tarballAccess,omitempty"` // TarballGcsDir: Optional. (Optional) The output Cloud Storage directory for // the diagnostic tarball. If not specified, a task-specific directory in the // cluster's staging bucket will be used. TarballGcsDir string `json:"tarballGcsDir,omitempty"` // YarnApplicationId: Optional. DEPRECATED Specifies the yarn application on // which diagnosis is to be performed. YarnApplicationId string `json:"yarnApplicationId,omitempty"` // YarnApplicationIds: Optional. Specifies a list of yarn applications on which // diagnosis is to be performed. YarnApplicationIds []string `json:"yarnApplicationIds,omitempty"` // ForceSendFields is a list of field names (e.g. "DiagnosisInterval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DiagnosisInterval") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DiagnoseClusterRequest: A request to collect cluster diagnostic information.
func (DiagnoseClusterRequest) MarshalJSON ¶ added in v0.109.0
func (s DiagnoseClusterRequest) MarshalJSON() ([]byte, error)
type DiagnoseClusterResults ¶
type DiagnoseClusterResults struct { // OutputUri: Output only. The Cloud Storage URI of the diagnostic output. The // output report is a plain text file with a 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OutputUri") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DiagnoseClusterResults: The location of diagnostic output.
func (DiagnoseClusterResults) MarshalJSON ¶
func (s DiagnoseClusterResults) MarshalJSON() ([]byte, error)
type DiskConfig ¶
type DiskConfig struct { // BootDiskProvisionedIops: Optional. Indicates how many IOPS to provision for // the disk. This sets the number of I/O operations per second that the disk // can handle. Note: This field is only supported if boot_disk_type is // hyperdisk-balanced. BootDiskProvisionedIops int64 `json:"bootDiskProvisionedIops,omitempty,string"` // BootDiskProvisionedThroughput: Optional. Indicates how much throughput to // provision for the disk. This sets the number of throughput mb per second // that the disk can handle. Values must be greater than or equal to 1. Note: // This field is only supported if boot_disk_type is hyperdisk-balanced. BootDiskProvisionedThroughput int64 `json:"bootDiskProvisionedThroughput,omitempty,string"` // BootDiskSizeGb: Optional. Size in GB of the boot disk (default is 500GB). BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` // BootDiskType: Optional. Type of the boot disk (default is "pd-standard"). // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), // "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent // Disk Hard Disk Drive). See Disk types // (https://cloud.google.com/compute/docs/disks#disk-types). BootDiskType string `json:"bootDiskType,omitempty"` // LocalSsdInterface: Optional. Interface type of local SSDs (default is // "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" // (Non-Volatile Memory Express). See local SSD performance // (https://cloud.google.com/compute/docs/disks/local-ssd#performance). LocalSsdInterface string `json:"localSsdInterface,omitempty"` // NumLocalSsds: Optional. Number of attached SSDs, from 0 to 8 (default is 0). // If SSDs are not attached, the boot disk is used to store runtime logs and // HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If // one or more SSDs are attached, this runtime bulk data is spread across them, // and the boot disk contains only basic config and installed binaries.Note: // Local SSD options may vary by machine type and number of vCPUs selected. NumLocalSsds int64 `json:"numLocalSsds,omitempty"` // ForceSendFields is a list of field names (e.g. "BootDiskProvisionedIops") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BootDiskProvisionedIops") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DiskConfig: Specifies the config of disk options for a group of VM instances.
func (DiskConfig) MarshalJSON ¶
func (s DiskConfig) MarshalJSON() ([]byte, error)
type DriverSchedulingConfig ¶ added in v0.106.0
type DriverSchedulingConfig struct { // MemoryMb: Required. The amount of memory in MB the driver is requesting. MemoryMb int64 `json:"memoryMb,omitempty"` // Vcores: Required. The number of vCPUs the driver is requesting. Vcores int64 `json:"vcores,omitempty"` // ForceSendFields is a list of field names (e.g. "MemoryMb") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MemoryMb") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DriverSchedulingConfig: Driver scheduling configuration.
func (DriverSchedulingConfig) MarshalJSON ¶ added in v0.106.0
func (s DriverSchedulingConfig) 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); }
type EncryptionConfig ¶
type EncryptionConfig struct { // GcePdKmsKeyName: Optional. The Cloud KMS key resource name to use for // persistent disk encryption for all instances in the cluster. See Use CMEK // with cluster data // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) // for more information. GcePdKmsKeyName string `json:"gcePdKmsKeyName,omitempty"` // KmsKey: Optional. The Cloud KMS key resource name to use for cluster // persistent disk and job argument encryption. See Use CMEK with cluster data // (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) // for more information.When this key resource name is provided, the following // job arguments of the following job types submitted to the cluster are // encrypted using CMEK: FlinkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) // HadoopJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) // SparkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) // SparkRJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) // PySparkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) // SparkSqlJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) // scriptVariables and queryList.queries HiveJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) // scriptVariables and queryList.queries PigJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) // scriptVariables and queryList.queries PrestoJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) // scriptVariables and queryList.queries KmsKey string `json:"kmsKey,omitempty"` // ForceSendFields is a list of field names (e.g. "GcePdKmsKeyName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GcePdKmsKeyName") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
EncryptionConfig: Encryption settings for the cluster.
func (EncryptionConfig) MarshalJSON ¶
func (s EncryptionConfig) MarshalJSON() ([]byte, error)
type EndpointConfig ¶ added in v0.29.0
type EndpointConfig struct { // EnableHttpPortAccess: Optional. If true, enable http access to specific // ports on the cluster from external sources. Defaults to false. EnableHttpPortAccess bool `json:"enableHttpPortAccess,omitempty"` // HttpPorts: Output only. The map of port descriptions to URLs. Will only be // populated if enable_http_port_access is true. HttpPorts map[string]string `json:"httpPorts,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableHttpPortAccess") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnableHttpPortAccess") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
EndpointConfig: Endpoint config for this cluster
func (EndpointConfig) MarshalJSON ¶ added in v0.29.0
func (s EndpointConfig) MarshalJSON() ([]byte, error)
type EnvironmentConfig ¶ added in v0.66.0
type EnvironmentConfig struct { // ExecutionConfig: Optional. Execution configuration for a workload. ExecutionConfig *ExecutionConfig `json:"executionConfig,omitempty"` // PeripheralsConfig: Optional. Peripherals configuration that workload has // access to. PeripheralsConfig *PeripheralsConfig `json:"peripheralsConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExecutionConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExecutionConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
EnvironmentConfig: Environment configuration for a workload.
func (EnvironmentConfig) MarshalJSON ¶ added in v0.66.0
func (s EnvironmentConfig) MarshalJSON() ([]byte, error)
type ExecutionConfig ¶ added in v0.66.0
type ExecutionConfig struct { // IdleTtl: Optional. Applies to sessions only. The duration to keep the // session alive while it's idling. Exceeding this threshold causes the session // to terminate. This field cannot be set on a batch workload. Minimum value is // 10 minutes; maximum value is 14 days (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults // to 1 hour if not set. If both ttl and idle_ttl are specified for an // interactive session, the conditions are treated as OR conditions: the // workload will be terminated when it has been idle for idle_ttl or when ttl // has been exceeded, whichever occurs first. IdleTtl string `json:"idleTtl,omitempty"` // KmsKey: Optional. The Cloud KMS key to use for encryption. KmsKey string `json:"kmsKey,omitempty"` // NetworkTags: Optional. Tags used for network traffic control. NetworkTags []string `json:"networkTags,omitempty"` // NetworkUri: Optional. Network URI to connect workload to. NetworkUri string `json:"networkUri,omitempty"` // ServiceAccount: Optional. Service account that used to execute workload. ServiceAccount string `json:"serviceAccount,omitempty"` // StagingBucket: Optional. A Cloud Storage bucket used to stage workload // dependencies, config files, and store workload output and other ephemeral // data, such as Spark history files. If you do not specify a staging bucket, // Cloud Dataproc will determine a Cloud Storage location according to the // region where your workload is running, and then create and manage // project-level, per-location staging and temporary buckets. This field // requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage // bucket. StagingBucket string `json:"stagingBucket,omitempty"` // SubnetworkUri: Optional. Subnetwork URI to connect workload to. SubnetworkUri string `json:"subnetworkUri,omitempty"` // Ttl: Optional. The duration after which the workload will be terminated, // specified as the JSON representation for Duration // (https://protobuf.dev/programming-guides/proto3/#json). When the workload // exceeds this duration, it will be unconditionally terminated without waiting // for ongoing work to finish. If ttl is not specified for a batch workload, // the workload will be allowed to run until it exits naturally (or run forever // without exiting). If ttl is not specified for an interactive session, it // defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ // runtime version, it defaults to 4 hours. Minimum value is 10 minutes; // maximum value is 14 days. If both ttl and idle_ttl are specified (for an // interactive session), the conditions are treated as OR conditions: the // workload will be terminated when it has been idle for idle_ttl or when ttl // has been exceeded, whichever occurs first. Ttl string `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "IdleTtl") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IdleTtl") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ExecutionConfig: Execution configuration for a workload.
func (ExecutionConfig) MarshalJSON ¶ added in v0.66.0
func (s ExecutionConfig) MarshalJSON() ([]byte, error)
type Expr ¶
type Expr struct { // Description: Optional. Description of the expression. This is a longer text // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` // Expression: Textual representation of an expression in Common Expression // Language syntax. Expression string `json:"expression,omitempty"` // Location: Optional. String indicating the location of the expression for // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` // Title: Optional. Title for the expression, i.e. a short string describing // its purpose. This can be used e.g. in UIs which allow to enter the // expression. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
func (Expr) MarshalJSON ¶
type FlinkJob ¶ added in v0.134.0
type FlinkJob struct { // 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 might occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of // the Flink driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,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 jarFileUris. MainClass string `json:"mainClass,omitempty"` // MainJarFileUri: The 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 Flink. Properties that conflict with values set by the Dataproc // API might beoverwritten. Can include properties set // in/etc/flink/conf/flink-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // SavepointUri: Optional. HCFS URI of the savepoint, which contains the last // saved progress for starting the current job. SavepointUri string `json:"savepointUri,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Args") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
FlinkJob: A Dataproc job for running Apache Flink applications on YARN.
func (FlinkJob) MarshalJSON ¶ added in v0.134.0
type GceClusterConfig ¶
type GceClusterConfig struct { // ConfidentialInstanceConfig: Optional. Confidential Instance Config for // clusters using Confidential VMs // (https://cloud.google.com/compute/confidential-vm/docs). ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` // InternalIpOnly: Optional. This setting applies to subnetwork-enabled // networks. It is set to true by default in clusters created with image // versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. // Google Private Access // (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to // access Dataproc and other Google Cloud APIs. Off-cluster dependencies must // be configured to be accessible without external IP addresses.When set to // false: Cluster VMs are not restricted to internal IP addresses. Ephemeral // external IP addresses are assigned to each cluster VM. InternalIpOnly bool `json:"internalIpOnly,omitempty"` // Metadata: Optional. The Compute Engine metadata entries to add to all // instances (see Project and instance metadata // (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). Metadata map[string]string `json:"metadata,omitempty"` // NetworkUri: Optional. The Compute Engine network to be used for machine // communications. Cannot be specified with subnetwork_uri. If neither // network_uri nor subnetwork_uri is specified, the "default" network of the // project is used, if it exists. Cannot be a "Custom Subnet Network" (see // Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for // more information).A full URL, partial URI, or short name are valid. // Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default // projects/[project_id]/global/networks/default default NetworkUri string `json:"networkUri,omitempty"` // NodeGroupAffinity: Optional. Node Group Affinity for sole-tenant clusters. NodeGroupAffinity *NodeGroupAffinity `json:"nodeGroupAffinity,omitempty"` // PrivateIpv6GoogleAccess: Optional. The type of IPv6 access for a cluster. // // Possible values: // "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - If unspecified, Compute Engine // default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK. // "INHERIT_FROM_SUBNETWORK" - Private access to and from Google Services // configuration inherited from the subnetwork configuration. This is the // default Compute Engine behavior. // "OUTBOUND" - Enables outbound private IPv6 access to Google Services from // the Dataproc cluster. // "BIDIRECTIONAL" - Enables bidirectional private IPv6 access between Google // Services and the Dataproc cluster. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // ReservationAffinity: Optional. Reservation Affinity for consuming Zonal // reservation. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` // ServiceAccount: Optional. The Dataproc service account // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) // (also see VM Data Plane identity // (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) // used by Dataproc cluster VM instances to access Google Cloud Platform // services.If not specified, the Compute Engine default service account // (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) // is used. ServiceAccount string `json:"serviceAccount,omitempty"` // ServiceAccountScopes: Optional. The URIs of service account scopes to be // included in 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.writeIf no scopes are specified, 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"` // ShieldedInstanceConfig: Optional. Shielded Instance Config for clusters // using Compute Engine Shielded VMs // (https://cloud.google.com/security/shielded-cloud/shielded-vm). ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` // SubnetworkUri: Optional. The Compute Engine subnetwork to be used for // machine communications. Cannot be specified with network_uri.A full URL, // partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 // projects/[project_id]/regions/[region]/subnetworks/sub0 sub0 SubnetworkUri string `json:"subnetworkUri,omitempty"` // Tags: The Compute Engine network tags to add to all instances (see Tagging // instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)). Tags []string `json:"tags,omitempty"` // ZoneUri: Optional. The Compute Engine zone where the Dataproc cluster will // be located. If omitted, the service will pick a zone in the cluster's // Compute Engine region. On a get request, zone will always be present.A full // URL, partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] // projects/[project_id]/zones/[zone] [zone] ZoneUri string `json:"zoneUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ConfidentialInstanceConfig") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConfidentialInstanceConfig") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GceClusterConfig: Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster.
func (GceClusterConfig) MarshalJSON ¶
func (s GceClusterConfig) MarshalJSON() ([]byte, error)
type GetIamPolicyRequest ¶
type GetIamPolicyRequest struct { // Options: OPTIONAL: A GetPolicyOptions object for specifying options to // GetIamPolicy. Options *GetPolicyOptions `json:"options,omitempty"` // ForceSendFields is a list of field names (e.g. "Options") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Options") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GetIamPolicyRequest: Request message for GetIamPolicy method.
func (GetIamPolicyRequest) MarshalJSON ¶ added in v0.8.0
func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error)
type GetPolicyOptions ¶ added in v0.8.0
type GetPolicyOptions struct { // RequestedPolicyVersion: Optional. The maximum policy version that will be // used to format the policy.Valid values are 0, 1, and 3. Requests specifying // an invalid value will be rejected.Requests for policies with any conditional // role bindings must specify version 3. Policies with no conditional role // bindings may specify any valid value or leave the field unset.The policy in // the response might use the policy version that you specified, or it might // use a lower policy version. For example, if you specify version 3, but the // policy has no conditional role bindings, the response uses version 1.To // learn which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
func (GetPolicyOptions) MarshalJSON ¶ added in v0.8.0
func (s GetPolicyOptions) MarshalJSON() ([]byte, error)
type GkeClusterConfig ¶ added in v0.44.0
type GkeClusterConfig struct { // GkeClusterTarget: Optional. A target GKE cluster to deploy to. It must be in // the same project and region as the Dataproc cluster (the GKE cluster can be // zonal or regional). Format: // 'projects/{project}/locations/{location}/clusters/{cluster_id}' GkeClusterTarget string `json:"gkeClusterTarget,omitempty"` // NamespacedGkeDeploymentTarget: Optional. Deprecated. Use gkeClusterTarget. // Used only for the deprecated beta. A target for the deployment. NamespacedGkeDeploymentTarget *NamespacedGkeDeploymentTarget `json:"namespacedGkeDeploymentTarget,omitempty"` // NodePoolTarget: Optional. GKE node pools where workloads will be scheduled. // At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. // If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT // GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All // node pools must have the same location settings. NodePoolTarget []*GkeNodePoolTarget `json:"nodePoolTarget,omitempty"` // ForceSendFields is a list of field names (e.g. "GkeClusterTarget") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GkeClusterTarget") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeClusterConfig: The cluster's GKE config.
func (GkeClusterConfig) MarshalJSON ¶ added in v0.44.0
func (s GkeClusterConfig) MarshalJSON() ([]byte, error)
type GkeNodeConfig ¶ added in v0.75.0
type GkeNodeConfig struct { // Accelerators: Optional. A list of hardware accelerators // (https://cloud.google.com/compute/docs/gpus) to attach to each node. Accelerators []*GkeNodePoolAcceleratorConfig `json:"accelerators,omitempty"` // BootDiskKmsKey: Optional. The Customer Managed Encryption Key (CMEK) // (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to // encrypt the boot disk attached to each node in the node pool. Specify the // key using the following format: // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypt // o_key} BootDiskKmsKey string `json:"bootDiskKmsKey,omitempty"` // LocalSsdCount: Optional. The number of local SSD disks to attach to the // node, which is limited by the maximum number of disks allowable per zone // (see Adding Local SSDs // (https://cloud.google.com/compute/docs/disks/local-ssd)). LocalSsdCount int64 `json:"localSsdCount,omitempty"` // MachineType: Optional. The name of a Compute Engine machine type // (https://cloud.google.com/compute/docs/machine-types). MachineType string `json:"machineType,omitempty"` // MinCpuPlatform: Optional. Minimum CPU platform // (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) // to be used by this instance. The instance may be scheduled on the specified // or a newer CPU platform. Specify the friendly names of CPU platforms, such // as "Intel Haswell" or Intel Sandy Bridge". MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // Preemptible: Optional. Whether the nodes are created as legacy preemptible // VM instances (https://cloud.google.com/compute/docs/instances/preemptible). // Also see Spot VMs, preemptible VM instances without a maximum lifetime. // Legacy and Spot preemptible nodes cannot be used in a node pool with the // CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not // assigned (the DEFAULT node pool will assume the CONTROLLER role). Preemptible bool `json:"preemptible,omitempty"` // Spot: Optional. Whether the nodes are created as Spot VM instances // (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the // latest update to legacy preemptible VMs. Spot VMs do not have a maximum // lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool // with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role // is not assigned (the DEFAULT node pool will assume the CONTROLLER role). Spot bool `json:"spot,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerators") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accelerators") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeNodeConfig: Parameters that describe cluster nodes.
func (GkeNodeConfig) MarshalJSON ¶ added in v0.75.0
func (s GkeNodeConfig) MarshalJSON() ([]byte, error)
type GkeNodePoolAcceleratorConfig ¶ added in v0.75.0
type GkeNodePoolAcceleratorConfig struct { // AcceleratorCount: The number of accelerator cards exposed to an instance. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` // AcceleratorType: The accelerator type resource namename (see GPUs on Compute // Engine). AcceleratorType string `json:"acceleratorType,omitempty"` // GpuPartitionSize: Size of partitions to create on the GPU. Valid values are // described in the NVIDIA mig user guide // (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). GpuPartitionSize string `json:"gpuPartitionSize,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceleratorCount") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeNodePoolAcceleratorConfig: A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.
func (GkeNodePoolAcceleratorConfig) MarshalJSON ¶ added in v0.75.0
func (s GkeNodePoolAcceleratorConfig) MarshalJSON() ([]byte, error)
type GkeNodePoolAutoscalingConfig ¶ added in v0.75.0
type GkeNodePoolAutoscalingConfig struct { // MaxNodeCount: The maximum number of nodes in the node pool. Must be >= // min_node_count, and must be > 0. Note: Quota must be sufficient to scale up // the cluster. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` // MinNodeCount: The minimum number of nodes in the node pool. Must be >= 0 and // <= max_node_count. MinNodeCount int64 `json:"minNodeCount,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeNodePoolAutoscalingConfig: GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.
func (GkeNodePoolAutoscalingConfig) MarshalJSON ¶ added in v0.75.0
func (s GkeNodePoolAutoscalingConfig) MarshalJSON() ([]byte, error)
type GkeNodePoolConfig ¶ added in v0.75.0
type GkeNodePoolConfig struct { // Autoscaling: Optional. The autoscaler configuration for this node pool. The // autoscaler is enabled only when a valid configuration is present. Autoscaling *GkeNodePoolAutoscalingConfig `json:"autoscaling,omitempty"` // Config: Optional. The node pool configuration. Config *GkeNodeConfig `json:"config,omitempty"` // Locations: Optional. The list of Compute Engine zones // (https://cloud.google.com/compute/docs/zones#available) where node pool // nodes associated with a Dataproc on GKE virtual cluster will be // located.Note: All node pools associated with a virtual cluster must be // located in the same region as the virtual cluster, and they must be located // in the same zone within that region.If a location is not specified during // node pool creation, Dataproc on GKE will choose the zone. Locations []string `json:"locations,omitempty"` // ForceSendFields is a list of field names (e.g. "Autoscaling") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Autoscaling") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeNodePoolConfig: The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
func (GkeNodePoolConfig) MarshalJSON ¶ added in v0.75.0
func (s GkeNodePoolConfig) MarshalJSON() ([]byte, error)
type GkeNodePoolTarget ¶ added in v0.75.0
type GkeNodePoolTarget struct { // NodePool: Required. The target GKE node pool. Format: // 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_p // ool}' NodePool string `json:"nodePool,omitempty"` // NodePoolConfig: Input only. The configuration for the GKE node pool.If // specified, Dataproc attempts to create a node pool with the specified shape. // If one with the same name already exists, it is verified against all // specified fields. If a field differs, the virtual cluster creation will // fail.If omitted, any node pool with the specified name is used. If a node // pool with the specified name does not exist, Dataproc create a node pool // with default values.This is an input only field. It will not be returned by // the API. NodePoolConfig *GkeNodePoolConfig `json:"nodePoolConfig,omitempty"` // Roles: Required. The roles associated with the GKE node pool. // // Possible values: // "ROLE_UNSPECIFIED" - Role is unspecified. // "DEFAULT" - At least one node pool must have the DEFAULT role. Work // assigned to a role that is not associated with a node pool is assigned to // the node pool with the DEFAULT role. For example, work assigned to the // CONTROLLER role will be assigned to the node pool with the DEFAULT role if // no node pool has the CONTROLLER role. // "CONTROLLER" - Run work associated with the Dataproc control plane (for // example, controllers and webhooks). Very low resource requirements. // "SPARK_DRIVER" - Run work associated with a Spark driver of a job. // "SPARK_EXECUTOR" - Run work associated with a Spark executor of a job. Roles []string `json:"roles,omitempty"` // ForceSendFields is a list of field names (e.g. "NodePool") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NodePool") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GkeNodePoolTarget: GKE node pools that Dataproc workloads run on.
func (GkeNodePoolTarget) MarshalJSON ¶ added in v0.75.0
func (s GkeNodePoolTarget) MarshalJSON() ([]byte, error)
type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig ¶ added in v0.149.0
type GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig struct { // KmsKey: Optional. The Cloud KMS key name to use for encrypting workflow // template job arguments.When this this key is provided, the following // workflow template job arguments // (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), // if present, are CMEK encrypted // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): // FlinkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) // HadoopJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) // SparkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) // SparkRJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) // PySparkJob args // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) // SparkSqlJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) // scriptVariables and queryList.queries HiveJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) // scriptVariables and queryList.queries PigJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) // scriptVariables and queryList.queries PrestoJob // (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) // scriptVariables and queryList.queries KmsKey string `json:"kmsKey,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "KmsKey") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig: Encryption settings for encrypting workflow template job arguments.
func (GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig) MarshalJSON ¶ added in v0.149.0
func (s GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig) 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 might occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS (Hadoop Compatible Filesystem) 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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,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 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 Dataproc // API might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
HadoopJob: A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
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 Dataproc API // might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
HiveJob: A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.
func (HiveJob) MarshalJSON ¶
type IdentityConfig ¶ added in v0.44.0
type IdentityConfig struct { // UserServiceAccountMapping: Required. Map of user to service account. UserServiceAccountMapping map[string]string `json:"userServiceAccountMapping,omitempty"` // ForceSendFields is a list of field names (e.g. "UserServiceAccountMapping") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "UserServiceAccountMapping") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
IdentityConfig: Identity related configuration, including service account based secure multi-tenancy user mappings.
func (IdentityConfig) MarshalJSON ¶ added in v0.44.0
func (s IdentityConfig) MarshalJSON() ([]byte, error)
type InjectCredentialsRequest ¶ added in v0.37.0
type InjectCredentialsRequest struct { // ClusterUuid: Required. The cluster UUID. ClusterUuid string `json:"clusterUuid,omitempty"` // CredentialsCiphertext: Required. The encrypted credentials being injected in // to the cluster.The client is responsible for encrypting the credentials in a // way that is supported by the cluster.A wrapped value is used here so that // the actual contents of the encrypted credentials are not written to audit // logs. CredentialsCiphertext string `json:"credentialsCiphertext,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InjectCredentialsRequest: A request to inject credentials into a cluster.
func (InjectCredentialsRequest) MarshalJSON ¶ added in v0.37.0
func (s InjectCredentialsRequest) MarshalJSON() ([]byte, error)
type InstanceFlexibilityPolicy ¶ added in v0.140.0
type InstanceFlexibilityPolicy struct { // InstanceSelectionList: Optional. List of instance selection options that the // group will use when creating new VMs. InstanceSelectionList []*InstanceSelection `json:"instanceSelectionList,omitempty"` // InstanceSelectionResults: Output only. A list of instance selection results // in the group. InstanceSelectionResults []*InstanceSelectionResult `json:"instanceSelectionResults,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSelectionList") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstanceSelectionList") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceFlexibilityPolicy: Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
func (InstanceFlexibilityPolicy) MarshalJSON ¶ added in v0.140.0
func (s InstanceFlexibilityPolicy) MarshalJSON() ([]byte, error)
type InstanceGroupAutoscalingPolicyConfig ¶ added in v0.11.0
type InstanceGroupAutoscalingPolicyConfig struct { // MaxInstances: Required. Maximum number of instances for this group. Required // for primary workers. Note that by default, clusters will not use secondary // workers. Required for secondary workers if the minimum secondary instances // is set.Primary workers - Bounds: [min_instances, ). Secondary workers - // Bounds: [min_instances, ). Default: 0. MaxInstances int64 `json:"maxInstances,omitempty"` // MinInstances: Optional. Minimum number of instances for this group.Primary // workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: // 0, max_instances. Default: 0. MinInstances int64 `json:"minInstances,omitempty"` // Weight: Optional. Weight for the instance group, which is used to determine // the fraction of total workers in the cluster from this instance group. For // example, if primary workers have weight 2, and secondary workers have weight // 1, the cluster will have approximately 2 primary workers for each secondary // worker.The cluster may not reach the specified balance if constrained by // min/max bounds or other autoscaling settings. For example, if max_instances // for secondary workers is 0, then only primary workers will be added. The // cluster can also be out of balance when created.If weight is not set on any // instance group, the cluster will default to equal weight for all groups: the // cluster will attempt to maintain an equal number of workers in each group // within the configured size bounds for each group. If weight is set for one // group only, the cluster will default to zero weight on the unset group. For // example if weight is set only on primary workers, the cluster will use // primary workers only and no secondary workers. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxInstances") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxInstances") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceGroupAutoscalingPolicyConfig: Configuration for the size bounds of an instance group, including its proportional size to other groups.
func (InstanceGroupAutoscalingPolicyConfig) MarshalJSON ¶ added in v0.11.0
func (s InstanceGroupAutoscalingPolicyConfig) MarshalJSON() ([]byte, error)
type InstanceGroupConfig ¶
type InstanceGroupConfig struct { // Accelerators: Optional. The Compute Engine accelerator configuration for // these instances. Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` // DiskConfig: Optional. Disk option config settings. DiskConfig *DiskConfig `json:"diskConfig,omitempty"` // ImageUri: Optional. The Compute Engine image resource used for cluster // instances.The URI can represent an image or image family.Image examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] // projects/[project_id]/global/images/[image-id] image-idImage family // examples. Dataproc will use the most recent image from the family: // https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] // projects/[project_id]/global/images/family/[custom-image-family-name]If the // URI is unspecified, it will be inferred from SoftwareConfig.image_version or // the system default. ImageUri string `json:"imageUri,omitempty"` // InstanceFlexibilityPolicy: Optional. Instance flexibility Policy allowing a // mixture of VM shapes and provisioning models. InstanceFlexibilityPolicy *InstanceFlexibilityPolicy `json:"instanceFlexibilityPolicy,omitempty"` // InstanceNames: Output only. The list of instance names. Dataproc derives the // names from cluster_name, num_instances, and the instance group. InstanceNames []string `json:"instanceNames,omitempty"` // InstanceReferences: Output only. List of references to Compute Engine // instances. InstanceReferences []*InstanceReference `json:"instanceReferences,omitempty"` // IsPreemptible: Output only. Specifies that this instance group contains // preemptible instances. IsPreemptible bool `json:"isPreemptible,omitempty"` // MachineTypeUri: Optional. The Compute Engine machine type used for cluster // instances.A full URL, partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 // projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 // n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone // Placement // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) // feature, you must use the short name of the machine type resource, for // example, n1-standard-2. MachineTypeUri string `json:"machineTypeUri,omitempty"` // ManagedGroupConfig: Output only. The config for Compute Engine Instance // Group Manager that manages this group. This is only used for preemptible // instance groups. ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"` // MinCpuPlatform: Optional. Specifies the minimum cpu platform for the // Instance Group. See Dataproc -> Minimum CPU Platform // (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // MinNumInstances: Optional. The minimum number of primary worker instances to // create. If min_num_instances is set, cluster creation will succeed if the // number of primary workers created is at least equal to the min_num_instances // number.Example: Cluster creation request with num_instances = 5 and // min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed // VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING // state. If 2 instances are created and 3 instances fail, the cluster in // placed in an ERROR state. The failed VMs are not deleted. MinNumInstances int64 `json:"minNumInstances,omitempty"` // NumInstances: Optional. The number of VM instances in the instance group. // For HA cluster master_config groups, must be set to 3. For standard cluster // master_config groups, must be set to 1. NumInstances int64 `json:"numInstances,omitempty"` // Preemptibility: Optional. Specifies the preemptibility of the instance // group.The default value for master and worker groups is NON_PREEMPTIBLE. // This default cannot be changed.The default value for secondary instances is // PREEMPTIBLE. // // Possible values: // "PREEMPTIBILITY_UNSPECIFIED" - Preemptibility is unspecified, the system // will choose the appropriate setting for each instance group. // "NON_PREEMPTIBLE" - Instances are non-preemptible.This option is allowed // for all instance groups and is the only valid value for Master and Worker // instance groups. // "PREEMPTIBLE" - Instances are preemptible // (https://cloud.google.com/compute/docs/instances/preemptible).This option is // allowed only for secondary worker // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) // groups. // "SPOT" - Instances are Spot VMs // (https://cloud.google.com/compute/docs/instances/spot).This option is // allowed only for secondary worker // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) // groups. Spot VMs are the latest version of preemptible VMs // (https://cloud.google.com/compute/docs/instances/preemptible), and provide // additional features. Preemptibility string `json:"preemptibility,omitempty"` // StartupConfig: Optional. Configuration to handle the startup of instances // during cluster create and update process. StartupConfig *StartupConfig `json:"startupConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerators") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accelerators") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceGroupConfig: The config settings for Compute Engine resources in an instance group, such as a master or worker group.
func (InstanceGroupConfig) MarshalJSON ¶
func (s InstanceGroupConfig) MarshalJSON() ([]byte, error)
type InstanceReference ¶ added in v0.31.0
type InstanceReference struct { // InstanceId: The unique identifier of the Compute Engine instance. InstanceId string `json:"instanceId,omitempty"` // InstanceName: The user-friendly name of the Compute Engine instance. InstanceName string `json:"instanceName,omitempty"` // PublicEciesKey: The public ECIES key used for sharing data with this // instance. PublicEciesKey string `json:"publicEciesKey,omitempty"` // PublicKey: The public RSA key used for sharing data with this instance. PublicKey string `json:"publicKey,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstanceId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceReference: A reference to a Compute Engine instance.
func (InstanceReference) MarshalJSON ¶ added in v0.31.0
func (s InstanceReference) MarshalJSON() ([]byte, error)
type InstanceSelection ¶ added in v0.140.0
type InstanceSelection struct { // MachineTypes: Optional. Full machine-type names, e.g. "n1-standard-16". MachineTypes []string `json:"machineTypes,omitempty"` // Rank: Optional. Preference of this instance selection. Lower number means // higher preference. Dataproc will first try to create a VM based on the // machine-type with priority rank and fallback to next rank based on // availability. Machine types and instance selections with the same priority // have the same preference. Rank int64 `json:"rank,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MachineTypes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceSelection: Defines machines types and a rank to which the machines types belong.
func (InstanceSelection) MarshalJSON ¶ added in v0.140.0
func (s InstanceSelection) MarshalJSON() ([]byte, error)
type InstanceSelectionResult ¶ added in v0.140.0
type InstanceSelectionResult struct { // MachineType: Output only. Full machine-type names, e.g. "n1-standard-16". MachineType string `json:"machineType,omitempty"` // VmCount: Output only. Number of VM provisioned with the machine_type. VmCount int64 `json:"vmCount,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MachineType") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstanceSelectionResult: Defines a mapping from machine types to the number of VMs that are created with each machine type.
func (InstanceSelectionResult) MarshalJSON ¶ added in v0.140.0
func (s InstanceSelectionResult) MarshalJSON() ([]byte, error)
type InstantiateWorkflowTemplateRequest ¶
type InstantiateWorkflowTemplateRequest struct { // Parameters: Optional. Map from parameter names to values that should be used // for those parameters. Values may not exceed 1000 characters. Parameters map[string]string `json:"parameters,omitempty"` // RequestId: Optional. A tag that prevents multiple concurrent workflow // instances with the same tag from running. This mitigates risk of concurrent // instances started due to retries.It is recommended to always set this value // to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The // tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), // and hyphens (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // Version: Optional. The version of workflow template to instantiate. If // specified, the workflow will be instantiated only if the current version of // the workflow template has the supplied version.This option cannot be used to // instantiate a previous version of workflow template. Version int64 `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Parameters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Parameters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
InstantiateWorkflowTemplateRequest: A request to instantiate a workflow template.
func (InstantiateWorkflowTemplateRequest) MarshalJSON ¶
func (s InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error)
type Interval ¶ added in v0.109.0
type Interval struct { // EndTime: Optional. Exclusive end of the interval.If specified, a Timestamp // matching this interval will have to be before the end. EndTime string `json:"endTime,omitempty"` // StartTime: Optional. Inclusive start of the interval.If specified, a // Timestamp matching this interval will have to be the same or after the // start. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Interval: Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
func (Interval) MarshalJSON ¶ added in v0.109.0
type Job ¶
type Job struct { // Done: Output only. Indicates whether the job is completed. If the value is // false, the job is still in progress. If true, the job is completed, and // status.state field will indicate if it was successful, failed, or cancelled. Done bool `json:"done,omitempty"` // DriverControlFilesUri: Output only. If present, the location of // miscellaneous control files which can be used as part of job setup and // handling. If not present, control files might be placed in the same location // as driver_output_uri. DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` // DriverOutputResourceUri: Output only. A URI pointing to the location of the // stdout of the job's driver program. DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` // DriverSchedulingConfig: Optional. Driver scheduling configuration. DriverSchedulingConfig *DriverSchedulingConfig `json:"driverSchedulingConfig,omitempty"` // FlinkJob: Optional. Job is a Flink job. FlinkJob *FlinkJob `json:"flinkJob,omitempty"` // HadoopJob: Optional. Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` // HiveJob: Optional. Job is a Hive job. HiveJob *HiveJob `json:"hiveJob,omitempty"` // JobUuid: Output only. A UUID that uniquely identifies a job within the // project over time. This is in contrast to a user-settable reference.job_id // that might be reused over time. JobUuid string `json:"jobUuid,omitempty"` // Labels: Optional. The labels to associate with this job. Label keys must // contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if // present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with a job. Labels map[string]string `json:"labels,omitempty"` // PigJob: Optional. 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"` // PrestoJob: Optional. Job is a Presto job. PrestoJob *PrestoJob `json:"prestoJob,omitempty"` // PysparkJob: Optional. 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"` // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` // SparkJob: Optional. Job is a Spark job. SparkJob *SparkJob `json:"sparkJob,omitempty"` // SparkRJob: Optional. Job is a SparkR job. SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` // SparkSqlJob: Optional. Job is a SparkSql job. SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` // Status: Output only. The job status. Additional application-specific status // information might 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"` // TrinoJob: Optional. Job is a Trino job. TrinoJob *TrinoJob `json:"trinoJob,omitempty"` // YarnApplications: Output only. The collection of YARN applications spun up // by this job.Beta Feature: This report is available for testing purposes // only. It might be changed before final release. 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. "Done") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Job: A Dataproc job resource.
func (Job) MarshalJSON ¶
type JobMetadata ¶ added in v0.22.0
type JobMetadata struct { // JobId: Output only. The job id. JobId string `json:"jobId,omitempty"` // OperationType: Output only. Operation type. OperationType string `json:"operationType,omitempty"` // StartTime: Output only. Job submission time. StartTime string `json:"startTime,omitempty"` // Status: Output only. Most recent job status. Status *JobStatus `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "JobId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JobMetadata: Job Operation metadata.
func (JobMetadata) MarshalJSON ¶ added in v0.22.0
func (s JobMetadata) MarshalJSON() ([]byte, error)
type JobPlacement ¶
type JobPlacement struct { // ClusterLabels: Optional. Cluster labels to identify a cluster where the job // will be submitted. ClusterLabels map[string]string `json:"clusterLabels,omitempty"` // 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. "ClusterLabels") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterLabels") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JobPlacement: Dataproc job config.
func (JobPlacement) MarshalJSON ¶
func (s JobPlacement) MarshalJSON() ([]byte, error)
type JobReference ¶
type JobReference struct { // JobId: Optional. The job ID, which must be unique within the project.The ID // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or // hyphens (-). The maximum length is 100 characters.If not specified by the // caller, the job ID will be provided by the server. JobId string `json:"jobId,omitempty"` // ProjectId: Optional. The ID of the Google Cloud Platform project that the // job belongs to. If specified, must match the request project ID. 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "JobId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JobReference: Encapsulates the full scoping used to reference a job.
func (JobReference) MarshalJSON ¶
func (s JobReference) MarshalJSON() ([]byte, error)
type JobScheduling ¶
type JobScheduling struct { // MaxFailuresPerHour: Optional. Maximum number of times per hour a driver can // be restarted as a result of driver exiting with non-zero code before job is // reported failed.A job might be reported as thrashing if the driver exits // with a non-zero code four times within a 10-minute window.Maximum value is // 10.Note: This restartable job option is not supported in Dataproc workflow // templates // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` // MaxFailuresTotal: Optional. Maximum total number of times a driver can be // restarted as a result of the driver exiting with a non-zero code. After the // maximum number is reached, the job will be reported as failed.Maximum value // is 240.Note: Currently, this restartable job option is not supported in // Dataproc workflow templates // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). MaxFailuresTotal int64 `json:"maxFailuresTotal,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxFailuresPerHour") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JobScheduling: Job scheduling options.
func (JobScheduling) MarshalJSON ¶
func (s JobScheduling) MarshalJSON() ([]byte, error)
type JobStatus ¶
type JobStatus struct { // Details: Optional. Output only. Job state details, such as an error // description if the state is ERROR. Details string `json:"details,omitempty"` // State: Output only. A state message specifying the overall job state. // // Possible values: // "STATE_UNSPECIFIED" - The job state is unknown. // "PENDING" - The job is pending; it has been submitted, but is not yet // running. // "SETUP_DONE" - Job has been received by the service and completed initial // setup; it will soon be submitted to the cluster. // "RUNNING" - The job is running on the cluster. // "CANCEL_PENDING" - A CancelJob request has been received, but is pending. // "CANCEL_STARTED" - Transient in-flight resources have been canceled, and // the request to cancel the running job has been issued to the cluster. // "CANCELLED" - The job cancellation was successful. // "DONE" - The job has completed successfully. // "ERROR" - The job has completed, but encountered an error. // "ATTEMPT_FAILURE" - Job attempt has failed. The detail field contains // failure details for this attempt.Applies to restartable jobs only. State string `json:"state,omitempty"` // StateStartTime: Output only. The time when this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` // Substate: Output only. Additional state information, which includes status // reported by the agent. // // Possible values: // "UNSPECIFIED" - The job substate is unknown. // "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING state. // "QUEUED" - The Job has been received and is awaiting execution (it might // be waiting for a condition to be met). See the "details" field for the // reason for the delay.Applies to RUNNING state. // "STALE_STATUS" - The agent-reported status is out of date, which can be // caused by a loss of communication between the agent and Dataproc. If the // agent does not send a timely update, the job will fail.Applies to RUNNING // state. Substate string `json:"substate,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Details") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JobStatus: Dataproc job status.
func (JobStatus) MarshalJSON ¶
type JupyterConfig ¶ added in v0.139.0
type JupyterConfig struct { // DisplayName: Optional. Display name, shown in the Jupyter kernelspec card. DisplayName string `json:"displayName,omitempty"` // Kernel: Optional. Kernel // // Possible values: // "KERNEL_UNSPECIFIED" - The kernel is unknown. // "PYTHON" - Python kernel. // "SCALA" - Scala kernel. Kernel string `json:"kernel,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
JupyterConfig: Jupyter configuration for an interactive session.
func (JupyterConfig) MarshalJSON ¶ added in v0.139.0
func (s JupyterConfig) MarshalJSON() ([]byte, error)
type KerberosConfig ¶ added in v0.7.0
type KerberosConfig struct { // CrossRealmTrustAdminServer: Optional. The admin server (IP or hostname) for // the remote trusted realm in a cross realm trust relationship. CrossRealmTrustAdminServer string `json:"crossRealmTrustAdminServer,omitempty"` // CrossRealmTrustKdc: Optional. The KDC (IP or hostname) for the remote // trusted realm in a cross realm trust relationship. CrossRealmTrustKdc string `json:"crossRealmTrustKdc,omitempty"` // CrossRealmTrustRealm: Optional. The remote realm the Dataproc on-cluster KDC // will trust, should the user enable cross realm trust. CrossRealmTrustRealm string `json:"crossRealmTrustRealm,omitempty"` // encrypted file containing the shared password between the on-cluster // Kerberos realm and the remote trusted realm, in a cross realm trust // relationship. CrossRealmTrustSharedPasswordUri string `json:"crossRealmTrustSharedPasswordUri,omitempty"` // EnableKerberos: Optional. Flag to indicate whether to Kerberize the cluster // (default: false). Set this field to true to enable Kerberos on a cluster. EnableKerberos bool `json:"enableKerberos,omitempty"` // KdcDbKeyUri: Optional. The Cloud Storage URI of a KMS encrypted file // containing the master key of the KDC database. KdcDbKeyUri string `json:"kdcDbKeyUri,omitempty"` // KeyPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file // containing the password to the user provided key. For the self-signed // certificate, this password is generated by Dataproc. KeyPasswordUri string `json:"keyPasswordUri,omitempty"` // KeystorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file // containing the password to the user provided keystore. For the self-signed // certificate, this password is generated by Dataproc. KeystorePasswordUri string `json:"keystorePasswordUri,omitempty"` // KeystoreUri: Optional. The Cloud Storage URI of the keystore file used for // SSL encryption. If not provided, Dataproc will provide a self-signed // certificate. KeystoreUri string `json:"keystoreUri,omitempty"` // KmsKeyUri: Optional. The URI of the KMS key used to encrypt sensitive files. KmsKeyUri string `json:"kmsKeyUri,omitempty"` // Realm: Optional. The name of the on-cluster Kerberos realm. If not // specified, the uppercased domain of hostnames will be the realm. Realm string `json:"realm,omitempty"` // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted // file containing the root principal password. RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` // TgtLifetimeHours: Optional. The lifetime of the ticket granting ticket, in // hours. If not specified, or user specifies 0, then default value 10 will be // used. TgtLifetimeHours int64 `json:"tgtLifetimeHours,omitempty"` // TruststorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted // file containing the password to the user provided truststore. For the // self-signed certificate, this password is generated by Dataproc. TruststorePasswordUri string `json:"truststorePasswordUri,omitempty"` // TruststoreUri: Optional. The Cloud Storage URI of the truststore file used // for SSL encryption. If not provided, Dataproc will provide a self-signed // certificate. TruststoreUri string `json:"truststoreUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CrossRealmTrustAdminServer") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CrossRealmTrustAdminServer") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
KerberosConfig: Specifies Kerberos related configuration.
func (KerberosConfig) MarshalJSON ¶ added in v0.7.0
func (s KerberosConfig) MarshalJSON() ([]byte, error)
type KubernetesClusterConfig ¶ added in v0.75.0
type KubernetesClusterConfig struct { // GkeClusterConfig: Required. The configuration for running the Dataproc // cluster on GKE. GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` // KubernetesNamespace: Optional. A namespace within the Kubernetes cluster to // deploy into. If this namespace does not exist, it is created. If it exists, // Dataproc verifies that another Dataproc VirtualCluster is not installed into // it. If not specified, the name of the Dataproc Cluster is used. KubernetesNamespace string `json:"kubernetesNamespace,omitempty"` // KubernetesSoftwareConfig: Optional. The software configuration for this // Dataproc cluster running on Kubernetes. KubernetesSoftwareConfig *KubernetesSoftwareConfig `json:"kubernetesSoftwareConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "GkeClusterConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GkeClusterConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
KubernetesClusterConfig: The configuration for running the Dataproc cluster on Kubernetes.
func (KubernetesClusterConfig) MarshalJSON ¶ added in v0.75.0
func (s KubernetesClusterConfig) MarshalJSON() ([]byte, error)
type KubernetesSoftwareConfig ¶ added in v0.75.0
type KubernetesSoftwareConfig struct { // ComponentVersion: The components that should be installed in this Dataproc // cluster. The key must be a string from the KubernetesComponent enumeration. // The value is the version of the software to be installed. At least one entry // must be specified. ComponentVersion map[string]string `json:"componentVersion,omitempty"` // Properties: The properties to set on daemon config files.Property keys are // specified in prefix:property format, for example // spark:spark.kubernetes.container.image. The following are supported prefixes // and their mappings: spark: spark-defaults.confFor more information, see // Cluster properties // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ComponentVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ComponentVersion") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
KubernetesSoftwareConfig: The software configuration for this Dataproc cluster running on Kubernetes.
func (KubernetesSoftwareConfig) MarshalJSON ¶ added in v0.75.0
func (s KubernetesSoftwareConfig) MarshalJSON() ([]byte, error)
type LifecycleConfig ¶ added in v0.8.0
type LifecycleConfig struct { // AutoDeleteTime: Optional. The time when cluster will be auto-deleted (see // JSON representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). AutoDeleteTime string `json:"autoDeleteTime,omitempty"` // AutoDeleteTtl: Optional. The lifetime duration of cluster. The cluster will // be auto-deleted at the end of this period. Minimum value is 10 minutes; // maximum value is 14 days (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). AutoDeleteTtl string `json:"autoDeleteTtl,omitempty"` // IdleDeleteTtl: Optional. The duration to keep the cluster alive while idling // (when no jobs are running). Passing this threshold will cause the cluster to // be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON // representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). IdleDeleteTtl string `json:"idleDeleteTtl,omitempty"` // IdleStartTime: Output only. The time when cluster became idle (most recent // job finished) and became eligible for deletion due to idleness (see JSON // representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). IdleStartTime string `json:"idleStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoDeleteTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoDeleteTime") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LifecycleConfig: Specifies the cluster auto-delete schedule configuration.
func (LifecycleConfig) MarshalJSON ¶ added in v0.8.0
func (s LifecycleConfig) MarshalJSON() ([]byte, error)
type ListAutoscalingPoliciesResponse ¶ added in v0.11.0
type ListAutoscalingPoliciesResponse struct { // NextPageToken: Output only. This token is included in the response if there // are more results to fetch. NextPageToken string `json:"nextPageToken,omitempty"` // Policies: Output only. Autoscaling policies list. Policies []*AutoscalingPolicy `json:"policies,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAutoscalingPoliciesResponse: A response to a request to list autoscaling policies in a project.
func (ListAutoscalingPoliciesResponse) MarshalJSON ¶ added in v0.11.0
func (s ListAutoscalingPoliciesResponse) MarshalJSON() ([]byte, error)
type ListBatchesResponse ¶ added in v0.66.0
type ListBatchesResponse struct { // Batches: Output only. The batches from the specified collection. Batches []*Batch `json:"batches,omitempty"` // NextPageToken: A token, which can be sent as page_token to retrieve the next // page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Output only. List of Batches that could not be included in the // response. Attempting to get one of these resources may indicate why it was // not included in the list response. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Batches") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Batches") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListBatchesResponse: A list of batch workloads.
func (ListBatchesResponse) MarshalJSON ¶ added in v0.66.0
func (s ListBatchesResponse) MarshalJSON() ([]byte, error)
type ListClustersResponse ¶
type ListClustersResponse struct { // Clusters: Output only. The clusters in the project. Clusters []*Cluster `json:"clusters,omitempty"` // NextPageToken: Output only. 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 ListClustersRequest. 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Clusters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []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"` // Unreachable: Output only. List of jobs with kms_key-encrypted parameters // that could not be decrypted. A response to a jobs.get request may indicate // the reason for the decryption failure for a specific job. Unreachable []string `json:"unreachable,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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Jobs") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse) MarshalJSON ¶
func (s ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListSessionTemplatesResponse ¶ added in v0.139.0
type ListSessionTemplatesResponse struct { // NextPageToken: A token, which can be sent as page_token to retrieve the next // page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // SessionTemplates: Output only. Session template list SessionTemplates []*SessionTemplate `json:"sessionTemplates,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListSessionTemplatesResponse: A list of session templates.
func (ListSessionTemplatesResponse) MarshalJSON ¶ added in v0.139.0
func (s ListSessionTemplatesResponse) MarshalJSON() ([]byte, error)
type ListSessionsResponse ¶ added in v0.139.0
type ListSessionsResponse struct { // NextPageToken: A token, which can be sent as page_token, to retrieve the // next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // Sessions: Output only. The sessions from the specified collection. Sessions []*Session `json:"sessions,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListSessionsResponse: A list of interactive sessions.
func (ListSessionsResponse) MarshalJSON ¶ added in v0.139.0
func (s ListSessionsResponse) MarshalJSON() ([]byte, error)
type ListWorkflowTemplatesResponse ¶
type ListWorkflowTemplatesResponse struct { // NextPageToken: Output only. 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 ListWorkflowTemplatesRequest. NextPageToken string `json:"nextPageToken,omitempty"` // Templates: Output only. WorkflowTemplates list. Templates []*WorkflowTemplate `json:"templates,omitempty"` // Unreachable: Output only. List of workflow templates that could not be // included in the response. Attempting to get one of these resources may // indicate why it was not included in the list response. Unreachable []string `json:"unreachable,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListWorkflowTemplatesResponse: A response to a request to list workflow templates in a project.
func (ListWorkflowTemplatesResponse) MarshalJSON ¶
func (s ListWorkflowTemplatesResponse) MarshalJSON() ([]byte, error)
type LoggingConfig ¶
type LoggingConfig struct { // DriverLogLevels: The per-package log levels for the driver. This can 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DriverLogLevels") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LoggingConfig: The runtime logging config of the job.
func (LoggingConfig) MarshalJSON ¶
func (s LoggingConfig) MarshalJSON() ([]byte, error)
type ManagedCluster ¶
type ManagedCluster struct { // ClusterName: Required. The cluster name prefix. A unique cluster name will // be formed by appending a random suffix.The name must contain only lower-case // letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. // Cannot begin or end with hyphen. Must consist of between 2 and 35 // characters. ClusterName string `json:"clusterName,omitempty"` // Config: Required. The cluster configuration. Config *ClusterConfig `json:"config,omitempty"` // Labels: Optional. The labels to associate with this cluster.Label keys must // be between 1 and 63 characters long, and must conform to the following PCRE // regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 // characters long, and must conform to the following PCRE regular expression: // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a // given cluster. Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ManagedCluster: Cluster that is managed by the workflow.
func (ManagedCluster) MarshalJSON ¶
func (s ManagedCluster) MarshalJSON() ([]byte, error)
type ManagedGroupConfig ¶
type ManagedGroupConfig struct { // InstanceGroupManagerName: Output only. The name of the Instance Group // Manager for this group. InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"` // InstanceGroupManagerUri: Output only. The partial URI to the instance group // manager for this group. E.g. // projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. InstanceGroupManagerUri string `json:"instanceGroupManagerUri,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstanceGroupManagerName") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ManagedGroupConfig: Specifies the resources used to actively manage an instance group.
func (ManagedGroupConfig) MarshalJSON ¶
func (s ManagedGroupConfig) MarshalJSON() ([]byte, error)
type MetastoreConfig ¶ added in v0.40.0
type MetastoreConfig struct { // DataprocMetastoreService: Required. Resource name of an existing Dataproc // Metastore service.Example: // projects/[project_id]/locations/[dataproc_region]/services/[service-name] DataprocMetastoreService string `json:"dataprocMetastoreService,omitempty"` // ForceSendFields is a list of field names (e.g. "DataprocMetastoreService") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataprocMetastoreService") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
MetastoreConfig: Specifies a Metastore configuration.
func (MetastoreConfig) MarshalJSON ¶ added in v0.40.0
func (s MetastoreConfig) MarshalJSON() ([]byte, error)
type Metric ¶ added in v0.68.0
type Metric struct { // MetricOverrides: Optional. Specify one or more Custom metrics // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) // to collect for the metric course (for the SPARK metric source (any Spark // metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be // specified).Provide metrics in the following format: METRIC_SOURCE: // INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: // yarn:ResourceManager:QueueMetrics:AppsCompleted // spark:driver:DAGScheduler:job.allJobs // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified // overridden metrics are collected for the metric source. For example, if one // or more spark:executive metrics are listed as metric overrides, other SPARK // metrics are not collected. The collection of the metrics for other enabled // custom metric sources is unaffected. For example, if both SPARK andd YARN // metric sources are enabled, and overrides are provided for Spark metrics // only, all YARN metrics are collected. MetricOverrides []string `json:"metricOverrides,omitempty"` // MetricSource: Required. A standard set of metrics is collected unless // metricOverrides are specified for the metric source (see Custom metrics // (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) // for more information). // // Possible values: // "METRIC_SOURCE_UNSPECIFIED" - Required unspecified metric source. // "MONITORING_AGENT_DEFAULTS" - Monitoring agent metrics. If this source is // enabled, Dataproc enables the monitoring agent in Compute Engine, and // collects monitoring agent metrics, which are published with an // agent.googleapis.com prefix. // "HDFS" - HDFS metric source. // "SPARK" - Spark metric source. // "YARN" - YARN metric source. // "SPARK_HISTORY_SERVER" - Spark History Server metric source. // "HIVESERVER2" - Hiveserver2 metric source. // "HIVEMETASTORE" - hivemetastore metric source // "FLINK" - flink metric source MetricSource string `json:"metricSource,omitempty"` // ForceSendFields is a list of field names (e.g. "MetricOverrides") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MetricOverrides") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Metric: A Dataproc custom metric.
func (Metric) MarshalJSON ¶ added in v0.68.0
type NamespacedGkeDeploymentTarget ¶ added in v0.44.0
type NamespacedGkeDeploymentTarget struct { // ClusterNamespace: Optional. A namespace within the GKE cluster to deploy // into. ClusterNamespace string `json:"clusterNamespace,omitempty"` // TargetGkeCluster: Optional. The target GKE cluster to deploy to. Format: // 'projects/{project}/locations/{location}/clusters/{cluster_id}' TargetGkeCluster string `json:"targetGkeCluster,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterNamespace") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterNamespace") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NamespacedGkeDeploymentTarget: Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster.
func (NamespacedGkeDeploymentTarget) MarshalJSON ¶ added in v0.44.0
func (s NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error)
type NodeGroup ¶ added in v0.106.0
type NodeGroup struct { // Labels: Optional. Node group labels. Label keys must consist of from 1 to 63 // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). // Label values can be empty. If specified, they must consist of from 1 to 63 // characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). // The node group must have no more than 32 labelsn. Labels map[string]string `json:"labels,omitempty"` // Name: The Node group resource name (https://aip.dev/122). Name string `json:"name,omitempty"` // NodeGroupConfig: Optional. The node group instance group configuration. NodeGroupConfig *InstanceGroupConfig `json:"nodeGroupConfig,omitempty"` // Roles: Required. Node group roles. // // Possible values: // "ROLE_UNSPECIFIED" - Required unspecified role. // "DRIVER" - Job drivers run on the node pool. Roles []string `json:"roles,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Labels") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NodeGroup: Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.
func (NodeGroup) MarshalJSON ¶ added in v0.106.0
type NodeGroupAffinity ¶ added in v0.33.0
type NodeGroupAffinity struct { // NodeGroupUri: Required. The URI of a sole-tenant node group resource // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that // the cluster will be created on.A full URL, partial URI, or node group name // are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 // projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1 NodeGroupUri string `json:"nodeGroupUri,omitempty"` // ForceSendFields is a list of field names (e.g. "NodeGroupUri") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NodeGroupUri") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.
func (NodeGroupAffinity) MarshalJSON ¶ added in v0.33.0
func (s NodeGroupAffinity) MarshalJSON() ([]byte, error)
type NodeGroupOperationMetadata ¶ added in v0.102.0
type NodeGroupOperationMetadata struct { // ClusterUuid: Output only. Cluster UUID associated with the node group // operation. ClusterUuid string `json:"clusterUuid,omitempty"` // Description: Output only. Short description of operation. Description string `json:"description,omitempty"` // Labels: Output only. Labels associated with the operation. Labels map[string]string `json:"labels,omitempty"` // NodeGroupId: Output only. Node group ID for the operation. NodeGroupId string `json:"nodeGroupId,omitempty"` // OperationType: The operation type. // // Possible values: // "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED" - Node group operation type is // unknown. // "CREATE" - Create node group operation type. // "UPDATE" - Update node group operation type. // "DELETE" - Delete node group operation type. // "RESIZE" - Resize node group operation type. // "REPAIR" - Repair node group operation type. // "UPDATE_LABELS" - Update node group label operation type. // "START" - Start node group operation type. // "STOP" - Stop node group operation type. OperationType string `json:"operationType,omitempty"` // Status: Output only. Current operation status. Status *ClusterOperationStatus `json:"status,omitempty"` // StatusHistory: Output only. The previous operation status. StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` // Warnings: Output only. Errors encountered during operation execution. Warnings []string `json:"warnings,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NodeGroupOperationMetadata: Metadata describing the node group operation.
func (NodeGroupOperationMetadata) MarshalJSON ¶ added in v0.102.0
func (s NodeGroupOperationMetadata) MarshalJSON() ([]byte, error)
type NodeInitializationAction ¶
type NodeInitializationAction struct { // ExecutableFile: Required. Cloud Storage URI of executable file. ExecutableFile string `json:"executableFile,omitempty"` // ExecutionTimeout: Optional. Amount of time executable has to complete. // Default is 10 minutes (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)).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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExecutableFile") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []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 NodePool ¶ added in v0.83.0
type NodePool struct { // Id: Required. A unique id of the node pool. Primary and Secondary workers // can be specified using special reserved ids PRIMARY_WORKER_POOL and // SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using // corresponding pool id. Id string `json:"id,omitempty"` // InstanceNames: Name of instances to be repaired. These instances must belong // to specified node pool. InstanceNames []string `json:"instanceNames,omitempty"` // RepairAction: Required. Repair action to take on specified resources of the // node pool. // // Possible values: // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. // "DELETE" - delete the specified list of nodes. RepairAction string `json:"repairAction,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NodePool: indicating a list of workers of same type
func (NodePool) MarshalJSON ¶ added in v0.83.0
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 or cancellation. 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 googleapi.RawMessage `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, the name // should be a resource name ending with operations/{unique_id}. Name string `json:"name,omitempty"` // Response: The normal, successful response of the operation. 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 googleapi.RawMessage `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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (Operation) MarshalJSON ¶
type OrderedJob ¶
type OrderedJob struct { // FlinkJob: Optional. Job is a Flink job. FlinkJob *FlinkJob `json:"flinkJob,omitempty"` // HadoopJob: Optional. Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` // HiveJob: Optional. Job is a Hive job. HiveJob *HiveJob `json:"hiveJob,omitempty"` // Labels: Optional. The labels to associate with this job.Label keys must be // between 1 and 63 characters long, and must conform to the following regular // expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 // characters long, and must conform to the following regular expression: // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a // given job. Labels map[string]string `json:"labels,omitempty"` // PigJob: Optional. Job is a Pig job. PigJob *PigJob `json:"pigJob,omitempty"` // PrerequisiteStepIds: Optional. The optional list of prerequisite job // step_ids. If not specified, the job will start at the beginning of workflow. PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` // PrestoJob: Optional. Job is a Presto job. PrestoJob *PrestoJob `json:"prestoJob,omitempty"` // PysparkJob: Optional. Job is a PySpark job. PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` // SparkJob: Optional. Job is a Spark job. SparkJob *SparkJob `json:"sparkJob,omitempty"` // SparkRJob: Optional. Job is a SparkR job. SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` // SparkSqlJob: Optional. Job is a SparkSql job. SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` // StepId: Required. The step id. The id must be unique among all jobs within // the template.The step id is used as prefix for job id, as job // goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from // other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). Cannot begin or end with underscore or // hyphen. Must consist of between 3 and 50 characters. StepId string `json:"stepId,omitempty"` // TrinoJob: Optional. Job is a Trino job. TrinoJob *TrinoJob `json:"trinoJob,omitempty"` // ForceSendFields is a list of field names (e.g. "FlinkJob") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FlinkJob") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
OrderedJob: A job executed by the workflow.
func (OrderedJob) MarshalJSON ¶
func (s OrderedJob) MarshalJSON() ([]byte, error)
type ParameterValidation ¶
type ParameterValidation struct { // Regex: Validation based on regular expressions. Regex *RegexValidation `json:"regex,omitempty"` // Values: Validation based on a list of allowed values. Values *ValueValidation `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Regex") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Regex") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ParameterValidation: Configuration for parameter validation.
func (ParameterValidation) MarshalJSON ¶
func (s ParameterValidation) MarshalJSON() ([]byte, error)
type PeripheralsConfig ¶ added in v0.66.0
type PeripheralsConfig struct { // MetastoreService: Optional. Resource name of an existing Dataproc Metastore // service.Example: // projects/[project_id]/locations/[region]/services/[service_id] MetastoreService string `json:"metastoreService,omitempty"` // SparkHistoryServerConfig: Optional. The Spark History Server configuration // for the workload. SparkHistoryServerConfig *SparkHistoryServerConfig `json:"sparkHistoryServerConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "MetastoreService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MetastoreService") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PeripheralsConfig: Auxiliary services configuration for a workload.
func (PeripheralsConfig) MarshalJSON ¶ added in v0.66.0
func (s PeripheralsConfig) MarshalJSON() ([]byte, error)
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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // Properties: Optional. A mapping of property names to values, used to // configure Pig. Properties that conflict with values set by the Dataproc API // might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PigJob: A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN.
func (PigJob) MarshalJSON ¶
type Policy ¶
type Policy struct { // Bindings: Associates a list of members, or principals, with a role. // Optionally, may specify a condition that determines how and when the // bindings are applied. Each of the bindings must contain at least one // principal.The bindings in a Policy can refer to up to 1,500 principals; up // to 250 of these principals can be Google groups. Each occurrence of a // principal counts towards these limits. For example, if the bindings grant 50 // different roles to user:alice@example.com, and not to any other principal, // then you can add another 1,450 principals to the bindings in the Policy. Bindings []*Binding `json:"bindings,omitempty"` // Etag: etag is used for optimistic concurrency control as a way to help // prevent simultaneous updates of a policy from overwriting each other. It is // strongly suggested that systems make use of the etag in the // read-modify-write cycle to perform policy updates in order to avoid race // conditions: An etag is returned in the response to getIamPolicy, and systems // are expected to put that etag in the request to setIamPolicy to ensure that // their change will be applied to the same version of the policy.Important: If // you use IAM Conditions, you must include the etag field whenever you call // setIamPolicy. If you omit this field, then IAM allows you to overwrite a // version 3 policy with a version 1 policy, and all of the conditions in the // version 3 policy are lost. Etag string `json:"etag,omitempty"` // Version: Specifies the format of the policy.Valid values are 0, 1, and 3. // Requests that specify an invalid value are rejected.Any operation that // affects conditional role bindings must specify version 3. This requirement // applies to the following operations: Getting a policy that includes a // conditional role binding Adding a conditional role binding to a policy // Changing a conditional role binding in a policy Removing any role binding, // with or without a condition, from a policy that includes // conditionsImportant: If you use IAM Conditions, you must include the etag // field whenever you call setIamPolicy. If you omit this field, then IAM // allows you to overwrite a version 3 policy with a version 1 policy, and all // of the conditions in the version 3 policy are lost.If a policy does not // include any conditions, operations on that policy may specify any valid // version or leave the field unset.To learn which resources support conditions // in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Bindings") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Bindings") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
func (Policy) MarshalJSON ¶
type PrestoJob ¶ added in v0.18.0
type PrestoJob struct { // ClientTags: Optional. Presto client tags to attach to this query ClientTags []string `json:"clientTags,omitempty"` // 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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // OutputFormat: Optional. The format in which query output will be displayed. // See the Presto documentation for supported output formats OutputFormat string `json:"outputFormat,omitempty"` // Properties: Optional. A mapping of property names to values. Used to set // Presto session properties // (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using // the --session flag in the Presto CLI 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"` // ForceSendFields is a list of field names (e.g. "ClientTags") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClientTags") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PrestoJob: A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.
func (PrestoJob) MarshalJSON ¶ added in v0.18.0
type ProjectsLocationsAutoscalingPoliciesCreateCall ¶ added in v0.11.0
type ProjectsLocationsAutoscalingPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.create" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsLocationsAutoscalingPoliciesCreateCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAutoscalingPoliciesDeleteCall ¶ added in v0.11.0
type ProjectsLocationsAutoscalingPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.delete" call. 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 (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAutoscalingPoliciesGetCall ¶ added in v0.11.0
type ProjectsLocationsAutoscalingPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsLocationsAutoscalingPoliciesGetCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall
IfNoneMatch sets an 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.
type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall ¶ added in v0.6.0
type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAutoscalingPoliciesListCall ¶ added in v0.11.0
type ProjectsLocationsAutoscalingPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesListCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesListCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *ListAutoscalingPoliciesResponse.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 (*ProjectsLocationsAutoscalingPoliciesListCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesListCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsAutoscalingPoliciesListCall) PageSize ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAutoscalingPoliciesListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.
func (*ProjectsLocationsAutoscalingPoliciesListCall) PageToken ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAutoscalingPoliciesListCall
PageToken sets the optional parameter "pageToken": The page token, returned by a previous call, to request the next page of results.
func (*ProjectsLocationsAutoscalingPoliciesListCall) Pages ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAutoscalingPoliciesService ¶ added in v0.6.0
type ProjectsLocationsAutoscalingPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAutoscalingPoliciesService ¶ added in v0.6.0
func NewProjectsLocationsAutoscalingPoliciesService(s *Service) *ProjectsLocationsAutoscalingPoliciesService
func (*ProjectsLocationsAutoscalingPoliciesService) Create ¶ added in v0.11.0
func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall
Create: Creates new autoscaling policy.
- parent: The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsLocationsAutoscalingPoliciesService) Delete ¶ added in v0.11.0
func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *ProjectsLocationsAutoscalingPoliciesDeleteCall
Delete: Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.
- name: The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
func (*ProjectsLocationsAutoscalingPoliciesService) Get ¶ added in v0.11.0
func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall
Get: Retrieves autoscaling policy.
- name: The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
func (*ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy ¶ added in v0.6.0
func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsAutoscalingPoliciesService) List ¶ added in v0.11.0
func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall
List: Lists autoscaling policies in the project.
- parent: The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy ¶ added in v0.6.0
func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions ¶ added in v0.6.0
func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsAutoscalingPoliciesService) Update ¶ added in v0.11.0
func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesUpdateCall
Update: Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.
- name: Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall ¶ added in v0.6.0
type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall ¶ added in v0.6.0
type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header ¶ added in v0.6.0
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAutoscalingPoliciesUpdateCall ¶ added in v0.11.0
type ProjectsLocationsAutoscalingPoliciesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.update" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsBatchesAnalyzeCall ¶ added in v0.172.0
type ProjectsLocationsBatchesAnalyzeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsBatchesAnalyzeCall) Context ¶ added in v0.172.0
func (c *ProjectsLocationsBatchesAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsBatchesAnalyzeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsBatchesAnalyzeCall) Do ¶ added in v0.172.0
func (c *ProjectsLocationsBatchesAnalyzeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.batches.analyze" call. 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 (*ProjectsLocationsBatchesAnalyzeCall) Fields ¶ added in v0.172.0
func (c *ProjectsLocationsBatchesAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesAnalyzeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsBatchesAnalyzeCall) Header ¶ added in v0.172.0
func (c *ProjectsLocationsBatchesAnalyzeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsBatchesCreateCall ¶ added in v0.66.0
type ProjectsLocationsBatchesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsBatchesCreateCall) BatchId ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) BatchId(batchId string) *ProjectsLocationsBatchesCreateCall
BatchId sets the optional parameter "batchId": The ID to use for the batch, which will become the final component of the batch's resource name.This value must be 4-63 characters. Valid characters are /[a-z][0-9]-/.
func (*ProjectsLocationsBatchesCreateCall) Context ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsBatchesCreateCall) Do ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.batches.create" call. 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 (*ProjectsLocationsBatchesCreateCall) Fields ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsBatchesCreateCall) Header ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsBatchesCreateCall) RequestId ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesCreateCall) RequestId(requestId string) *ProjectsLocationsBatchesCreateCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the service receives two CreateBatchRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsLocationsBatchesDeleteCall ¶ added in v0.66.0
type ProjectsLocationsBatchesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsBatchesDeleteCall) Context ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsBatchesDeleteCall) Do ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.batches.delete" call. 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 (*ProjectsLocationsBatchesDeleteCall) Fields ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsBatchesDeleteCall) Header ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsBatchesGetCall ¶ added in v0.66.0
type ProjectsLocationsBatchesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsBatchesGetCall) Context ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesGetCall) Context(ctx context.Context) *ProjectsLocationsBatchesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsBatchesGetCall) Do ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesGetCall) Do(opts ...googleapi.CallOption) (*Batch, error)
Do executes the "dataproc.projects.locations.batches.get" call. Any non-2xx status code is an error. Response headers are in either *Batch.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 (*ProjectsLocationsBatchesGetCall) Fields ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsBatchesGetCall) Header ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsBatchesGetCall) IfNoneMatch ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesGetCall
IfNoneMatch sets an 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.
type ProjectsLocationsBatchesListCall ¶ added in v0.66.0
type ProjectsLocationsBatchesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsBatchesListCall) Context ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) Context(ctx context.Context) *ProjectsLocationsBatchesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsBatchesListCall) Do ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) Do(opts ...googleapi.CallOption) (*ListBatchesResponse, error)
Do executes the "dataproc.projects.locations.batches.list" call. Any non-2xx status code is an error. Response headers are in either *ListBatchesResponse.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 (*ProjectsLocationsBatchesListCall) Fields ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsBatchesListCall) Filter ¶ added in v0.110.0
func (c *ProjectsLocationsBatchesListCall) Filter(filter string) *ProjectsLocationsBatchesListCall
Filter sets the optional parameter "filter": A filter for the batches to return in the response.A filter is a logical expression constraining the values of various fields in each batch resource. Filters are case sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are batch_id, batch_uuid, state, create_time, and labels.e.g. state = RUNNING and create_time < "2023-01-01T00:00:00Z" filters for batches in state RUNNING that were created before 2023-01-01. state = RUNNING and labels.environment=production filters for batches in state in a RUNNING state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed description of the filter syntax and a list of supported comparisons.
func (*ProjectsLocationsBatchesListCall) Header ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsBatchesListCall) IfNoneMatch ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchesListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsBatchesListCall) OrderBy ¶ added in v0.110.0
func (c *ProjectsLocationsBatchesListCall) OrderBy(orderBy string) *ProjectsLocationsBatchesListCall
OrderBy sets the optional parameter "orderBy": Field(s) on which to sort the list of batches.Currently the only supported sort orders are unspecified (empty) and create_time desc to sort by most recently created batches first.See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsBatchesListCall) PageSize ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) PageSize(pageSize int64) *ProjectsLocationsBatchesListCall
PageSize sets the optional parameter "pageSize": The maximum number of batches to return in each response. The service may return fewer than this value. The default page size is 20; the maximum page size is 1000.
func (*ProjectsLocationsBatchesListCall) PageToken ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) PageToken(pageToken string) *ProjectsLocationsBatchesListCall
PageToken sets the optional parameter "pageToken": A page token received from a previous ListBatches call. Provide this token to retrieve the subsequent page.
func (*ProjectsLocationsBatchesListCall) Pages ¶ added in v0.66.0
func (c *ProjectsLocationsBatchesListCall) Pages(ctx context.Context, f func(*ListBatchesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsBatchesService ¶ added in v0.66.0
type ProjectsLocationsBatchesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsBatchesService ¶ added in v0.66.0
func NewProjectsLocationsBatchesService(s *Service) *ProjectsLocationsBatchesService
func (*ProjectsLocationsBatchesService) Analyze ¶ added in v0.172.0
func (r *ProjectsLocationsBatchesService) Analyze(name string, analyzebatchrequest *AnalyzeBatchRequest) *ProjectsLocationsBatchesAnalyzeCall
Analyze: Analyze a Batch for possible recommendations and insights.
- name: The fully qualified name of the batch to analyze in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID".
func (*ProjectsLocationsBatchesService) Create ¶ added in v0.66.0
func (r *ProjectsLocationsBatchesService) Create(parent string, batch *Batch) *ProjectsLocationsBatchesCreateCall
Create: Creates a batch workload that executes asynchronously.
- parent: The parent resource where this batch will be created.
func (*ProjectsLocationsBatchesService) Delete ¶ added in v0.66.0
func (r *ProjectsLocationsBatchesService) Delete(name string) *ProjectsLocationsBatchesDeleteCall
Delete: Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED State, the delete operation fails and the response returns FAILED_PRECONDITION.
- name: The fully qualified name of the batch to retrieve in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID".
func (*ProjectsLocationsBatchesService) Get ¶ added in v0.66.0
func (r *ProjectsLocationsBatchesService) Get(name string) *ProjectsLocationsBatchesGetCall
Get: Gets the batch workload resource representation.
- name: The fully qualified name of the batch to retrieve in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID".
func (*ProjectsLocationsBatchesService) List ¶ added in v0.66.0
func (r *ProjectsLocationsBatchesService) List(parent string) *ProjectsLocationsBatchesListCall
List: Lists batch workloads.
- parent: The parent, which owns this collection of batches.
type ProjectsLocationsOperationsCancelCall ¶ added in v0.100.0
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall) Do ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.operations.cancel" call. 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 (*ProjectsLocationsOperationsCancelCall) Fields ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsCancelCall) Header ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶ added in v0.100.0
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.operations.delete" call. 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 (*ProjectsLocationsOperationsDeleteCall) Fields ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsGetCall ¶ added in v0.100.0
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall) Do ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.operations.get" call. 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 (*ProjectsLocationsOperationsGetCall) Fields ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsGetCall) Header ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an 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.
type ProjectsLocationsOperationsListCall ¶ added in v0.100.0
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall) Do ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "dataproc.projects.locations.operations.list" call. 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 (*ProjectsLocationsOperationsListCall) Fields ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsListCall) Filter ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsOperationsListCall) PageSize ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶ added in v0.100.0
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶ added in v0.100.0
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶ added in v0.100.0
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶ added in v0.100.0
func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall
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.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶ added in v0.100.0
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
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.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶ added in v0.100.0
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
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.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶ added in v0.100.0
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { AutoscalingPolicies *ProjectsLocationsAutoscalingPoliciesService Batches *ProjectsLocationsBatchesService Operations *ProjectsLocationsOperationsService SessionTemplates *ProjectsLocationsSessionTemplatesService Sessions *ProjectsLocationsSessionsService WorkflowTemplates *ProjectsLocationsWorkflowTemplatesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
type ProjectsLocationsSessionTemplatesCreateCall ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionTemplatesCreateCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionTemplatesCreateCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
Do executes the "dataproc.projects.locations.sessionTemplates.create" call. Any non-2xx status code is an error. Response headers are in either *SessionTemplate.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 (*ProjectsLocationsSessionTemplatesCreateCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionTemplatesCreateCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsSessionTemplatesDeleteCall ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionTemplatesDeleteCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionTemplatesDeleteCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.sessionTemplates.delete" call. 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 (*ProjectsLocationsSessionTemplatesDeleteCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionTemplatesDeleteCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsSessionTemplatesGetCall ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionTemplatesGetCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionTemplatesGetCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesGetCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
Do executes the "dataproc.projects.locations.sessionTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *SessionTemplate.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 (*ProjectsLocationsSessionTemplatesGetCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionTemplatesGetCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionTemplatesGetCall) IfNoneMatch ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesGetCall
IfNoneMatch sets an 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.
type ProjectsLocationsSessionTemplatesListCall ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionTemplatesListCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionTemplatesListCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListSessionTemplatesResponse, error)
Do executes the "dataproc.projects.locations.sessionTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *ListSessionTemplatesResponse.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 (*ProjectsLocationsSessionTemplatesListCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionTemplatesListCall) Filter ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Filter(filter string) *ProjectsLocationsSessionTemplatesListCall
Filter sets the optional parameter "filter": A filter for the session templates to return in the response. Filters are case sensitive and have the following syntax:field = value AND field = value ...
func (*ProjectsLocationsSessionTemplatesListCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionTemplatesListCall) IfNoneMatch ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionTemplatesListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsSessionTemplatesListCall) PageSize ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsSessionTemplatesListCall
PageSize sets the optional parameter "pageSize": The maximum number of sessions to return in each response. The service may return fewer than this value.
func (*ProjectsLocationsSessionTemplatesListCall) PageToken ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsSessionTemplatesListCall
PageToken sets the optional parameter "pageToken": A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.
func (*ProjectsLocationsSessionTemplatesListCall) Pages ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesListCall) Pages(ctx context.Context, f func(*ListSessionTemplatesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsSessionTemplatesPatchCall ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionTemplatesPatchCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsSessionTemplatesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionTemplatesPatchCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*SessionTemplate, error)
Do executes the "dataproc.projects.locations.sessionTemplates.patch" call. Any non-2xx status code is an error. Response headers are in either *SessionTemplate.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 (*ProjectsLocationsSessionTemplatesPatchCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionTemplatesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionTemplatesPatchCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionTemplatesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsSessionTemplatesService ¶ added in v0.139.0
type ProjectsLocationsSessionTemplatesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsSessionTemplatesService ¶ added in v0.139.0
func NewProjectsLocationsSessionTemplatesService(s *Service) *ProjectsLocationsSessionTemplatesService
func (*ProjectsLocationsSessionTemplatesService) Create ¶ added in v0.139.0
func (r *ProjectsLocationsSessionTemplatesService) Create(parent string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesCreateCall
Create: Create a session template synchronously.
- parent: The parent resource where this session template will be created.
func (*ProjectsLocationsSessionTemplatesService) Delete ¶ added in v0.139.0
func (r *ProjectsLocationsSessionTemplatesService) Delete(name string) *ProjectsLocationsSessionTemplatesDeleteCall
Delete: Deletes a session template.
- name: The name of the session template resource to delete.
func (*ProjectsLocationsSessionTemplatesService) Get ¶ added in v0.139.0
func (r *ProjectsLocationsSessionTemplatesService) Get(name string) *ProjectsLocationsSessionTemplatesGetCall
Get: Gets the resource representation for a session template.
- name: The name of the session template to retrieve.
func (*ProjectsLocationsSessionTemplatesService) List ¶ added in v0.139.0
func (r *ProjectsLocationsSessionTemplatesService) List(parent string) *ProjectsLocationsSessionTemplatesListCall
List: Lists session templates.
- parent: The parent that owns this collection of session templates.
func (*ProjectsLocationsSessionTemplatesService) Patch ¶ added in v0.139.0
func (r *ProjectsLocationsSessionTemplatesService) Patch(name string, sessiontemplate *SessionTemplate) *ProjectsLocationsSessionTemplatesPatchCall
Patch: Updates the session template synchronously.
- name: The resource name of the session template.
type ProjectsLocationsSessionsCreateCall ¶ added in v0.139.0
type ProjectsLocationsSessionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionsCreateCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSessionsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionsCreateCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.sessions.create" call. 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 (*ProjectsLocationsSessionsCreateCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionsCreateCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionsCreateCall) RequestId ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) RequestId(requestId string) *ProjectsLocationsSessionsCreateCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the service receives two CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
func (*ProjectsLocationsSessionsCreateCall) SessionId ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsCreateCall) SessionId(sessionId string) *ProjectsLocationsSessionsCreateCall
SessionId sets the optional parameter "sessionId": Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/.
type ProjectsLocationsSessionsDeleteCall ¶ added in v0.139.0
type ProjectsLocationsSessionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionsDeleteCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSessionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionsDeleteCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.sessions.delete" call. 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 (*ProjectsLocationsSessionsDeleteCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionsDeleteCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionsDeleteCall) RequestId ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsDeleteCall) RequestId(requestId string) *ProjectsLocationsSessionsDeleteCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the service receives two DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the second request is ignored.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsLocationsSessionsGetCall ¶ added in v0.139.0
type ProjectsLocationsSessionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionsGetCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsSessionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionsGetCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsGetCall) Do(opts ...googleapi.CallOption) (*Session, error)
Do executes the "dataproc.projects.locations.sessions.get" call. Any non-2xx status code is an error. Response headers are in either *Session.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 (*ProjectsLocationsSessionsGetCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionsGetCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionsGetCall) IfNoneMatch ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsGetCall
IfNoneMatch sets an 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.
type ProjectsLocationsSessionsListCall ¶ added in v0.139.0
type ProjectsLocationsSessionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionsListCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsSessionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionsListCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Do(opts ...googleapi.CallOption) (*ListSessionsResponse, error)
Do executes the "dataproc.projects.locations.sessions.list" call. Any non-2xx status code is an error. Response headers are in either *ListSessionsResponse.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 (*ProjectsLocationsSessionsListCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionsListCall) Filter ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Filter(filter string) *ProjectsLocationsSessionsListCall
Filter sets the optional parameter "filter": A filter for the sessions to return in the response.A filter is a logical expression constraining the values of various fields in each session resource. Filters are case sensitive, and may contain multiple clauses combined with logical operators (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and labels.Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and labels.environment=production is a filter for sessions in an ACTIVE state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed description of the filter syntax and a list of supported comparators.
func (*ProjectsLocationsSessionsListCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSessionsListCall) IfNoneMatch ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSessionsListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsSessionsListCall) PageSize ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsSessionsListCall
PageSize sets the optional parameter "pageSize": The maximum number of sessions to return in each response. The service may return fewer than this value.
func (*ProjectsLocationsSessionsListCall) PageToken ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsSessionsListCall
PageToken sets the optional parameter "pageToken": A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page.
func (*ProjectsLocationsSessionsListCall) Pages ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsListCall) Pages(ctx context.Context, f func(*ListSessionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsSessionsService ¶ added in v0.139.0
type ProjectsLocationsSessionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsSessionsService ¶ added in v0.139.0
func NewProjectsLocationsSessionsService(s *Service) *ProjectsLocationsSessionsService
func (*ProjectsLocationsSessionsService) Create ¶ added in v0.139.0
func (r *ProjectsLocationsSessionsService) Create(parent string, session *Session) *ProjectsLocationsSessionsCreateCall
Create: Create an interactive session asynchronously.
- parent: The parent resource where this session will be created.
func (*ProjectsLocationsSessionsService) Delete ¶ added in v0.139.0
func (r *ProjectsLocationsSessionsService) Delete(name string) *ProjectsLocationsSessionsDeleteCall
Delete: Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.
- name: The name of the session resource to delete.
func (*ProjectsLocationsSessionsService) Get ¶ added in v0.139.0
func (r *ProjectsLocationsSessionsService) Get(name string) *ProjectsLocationsSessionsGetCall
Get: Gets the resource representation for an interactive session.
- name: The name of the session to retrieve.
func (*ProjectsLocationsSessionsService) List ¶ added in v0.139.0
func (r *ProjectsLocationsSessionsService) List(parent string) *ProjectsLocationsSessionsListCall
List: Lists interactive sessions.
- parent: The parent, which owns this collection of sessions.
func (*ProjectsLocationsSessionsService) Terminate ¶ added in v0.139.0
func (r *ProjectsLocationsSessionsService) Terminate(name string, terminatesessionrequest *TerminateSessionRequest) *ProjectsLocationsSessionsTerminateCall
Terminate: Terminates the interactive session.
- name: The name of the session resource to terminate.
type ProjectsLocationsSessionsTerminateCall ¶ added in v0.139.0
type ProjectsLocationsSessionsTerminateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSessionsTerminateCall) Context ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsTerminateCall) Context(ctx context.Context) *ProjectsLocationsSessionsTerminateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSessionsTerminateCall) Do ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsTerminateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.sessions.terminate" call. 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 (*ProjectsLocationsSessionsTerminateCall) Fields ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSessionsTerminateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSessionsTerminateCall) Header ¶ added in v0.139.0
func (c *ProjectsLocationsSessionsTerminateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesCreateCall ¶
type ProjectsLocationsWorkflowTemplatesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesCreateCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesCreateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.create" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsLocationsWorkflowTemplatesCreateCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesCreateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesDeleteCall ¶
type ProjectsLocationsWorkflowTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.workflowTemplates.delete" call. 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 (*ProjectsLocationsWorkflowTemplatesDeleteCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Version ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesDeleteCall
Version sets the optional parameter "version": The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.
type ProjectsLocationsWorkflowTemplatesGetCall ¶
type ProjectsLocationsWorkflowTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesGetCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesGetCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsLocationsWorkflowTemplatesGetCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesGetCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsWorkflowTemplatesGetCall) Version ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesGetCall
Version sets the optional parameter "version": The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.
type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall ¶
type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.workflowTemplates.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesInstantiateCall ¶
type ProjectsLocationsWorkflowTemplatesInstantiateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.workflowTemplates.instantiate" call. 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 (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall ¶
type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.workflowTemplates.instantiateInline" call. 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 (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) RequestId ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
RequestId sets the optional parameter "requestId": A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsLocationsWorkflowTemplatesListCall ¶
type ProjectsLocationsWorkflowTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesListCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesListCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
Do executes the "dataproc.projects.locations.workflowTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *ListWorkflowTemplatesResponse.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 (*ProjectsLocationsWorkflowTemplatesListCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesListCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesListCall
IfNoneMatch sets an 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.
func (*ProjectsLocationsWorkflowTemplatesListCall) PageSize ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsWorkflowTemplatesListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in each response.
func (*ProjectsLocationsWorkflowTemplatesListCall) PageToken ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsWorkflowTemplatesListCall
PageToken sets the optional parameter "pageToken": The page token, returned by a previous call, to request the next page of results.
func (*ProjectsLocationsWorkflowTemplatesListCall) Pages ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsWorkflowTemplatesService ¶
type ProjectsLocationsWorkflowTemplatesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsWorkflowTemplatesService ¶
func NewProjectsLocationsWorkflowTemplatesService(s *Service) *ProjectsLocationsWorkflowTemplatesService
func (*ProjectsLocationsWorkflowTemplatesService) Create ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesCreateCall
Create: Creates new workflow template.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsLocationsWorkflowTemplatesService) Delete ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Delete(name string) *ProjectsLocationsWorkflowTemplatesDeleteCall
Delete: Deletes a workflow template. It does not cancel in-progress workflows.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsLocationsWorkflowTemplatesService) Get ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Get(name string) *ProjectsLocationsWorkflowTemplatesGetCall
Get: Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsLocationsWorkflowTemplatesService) GetIamPolicy ¶
func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsWorkflowTemplatesService) Instantiate ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Instantiate(name string, instantiateworkflowtemplaterequest *InstantiateWorkflowTemplateRequest) *ProjectsLocationsWorkflowTemplatesInstantiateCall
Instantiate: Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsLocationsWorkflowTemplatesService) InstantiateInline ¶
func (r *ProjectsLocationsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
InstantiateInline: Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsLocationsWorkflowTemplatesService) List ¶
func (r *ProjectsLocationsWorkflowTemplatesService) List(parent string) *ProjectsLocationsWorkflowTemplatesListCall
List: Lists workflows that match the specified filter in the request.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsLocationsWorkflowTemplatesService) SetIamPolicy ¶
func (r *ProjectsLocationsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsWorkflowTemplatesService) TestIamPermissions ¶
func (r *ProjectsLocationsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsWorkflowTemplatesService) Update ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesUpdateCall
Update: Updates (replaces) workflow template. The updated template must contain version that matches the current server version.
- name: Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall ¶
type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.workflowTemplates.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall ¶
type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.locations.workflowTemplates.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsWorkflowTemplatesUpdateCall ¶
type ProjectsLocationsWorkflowTemplatesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsWorkflowTemplatesUpdateCall) Context ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesUpdateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsWorkflowTemplatesUpdateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.update" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsLocationsWorkflowTemplatesUpdateCall) Fields ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsWorkflowTemplatesUpdateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesCreateCall ¶ added in v0.11.0
type ProjectsRegionsAutoscalingPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Context ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Do ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.create" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsRegionsAutoscalingPoliciesCreateCall) Fields ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Header ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesDeleteCall ¶ added in v0.11.0
type ProjectsRegionsAutoscalingPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Context ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Do ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.delete" call. 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 (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Fields ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Header ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesGetCall ¶ added in v0.11.0
type ProjectsRegionsAutoscalingPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Context ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Do ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsRegionsAutoscalingPoliciesGetCall) Fields ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Header ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetCall
IfNoneMatch sets an 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.
type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall ¶ added in v0.6.0
type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Fields ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesListCall ¶ added in v0.11.0
type ProjectsRegionsAutoscalingPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesListCall) Context ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesListCall) Do ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *ListAutoscalingPoliciesResponse.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 (*ProjectsRegionsAutoscalingPoliciesListCall) Fields ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesListCall) Header ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesListCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsAutoscalingPoliciesListCall) PageSize ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsRegionsAutoscalingPoliciesListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.
func (*ProjectsRegionsAutoscalingPoliciesListCall) PageToken ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsRegionsAutoscalingPoliciesListCall
PageToken sets the optional parameter "pageToken": The page token, returned by a previous call, to request the next page of results.
func (*ProjectsRegionsAutoscalingPoliciesListCall) Pages ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsRegionsAutoscalingPoliciesService ¶ added in v0.6.0
type ProjectsRegionsAutoscalingPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsAutoscalingPoliciesService ¶ added in v0.6.0
func NewProjectsRegionsAutoscalingPoliciesService(s *Service) *ProjectsRegionsAutoscalingPoliciesService
func (*ProjectsRegionsAutoscalingPoliciesService) Create ¶ added in v0.11.0
func (r *ProjectsRegionsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesCreateCall
Create: Creates new autoscaling policy.
- parent: The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsRegionsAutoscalingPoliciesService) Delete ¶ added in v0.11.0
func (r *ProjectsRegionsAutoscalingPoliciesService) Delete(name string) *ProjectsRegionsAutoscalingPoliciesDeleteCall
Delete: Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.
- name: The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
func (*ProjectsRegionsAutoscalingPoliciesService) Get ¶ added in v0.11.0
func (r *ProjectsRegionsAutoscalingPoliciesService) Get(name string) *ProjectsRegionsAutoscalingPoliciesGetCall
Get: Retrieves autoscaling policy.
- name: The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
func (*ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy ¶ added in v0.6.0
func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsAutoscalingPoliciesService) List ¶ added in v0.11.0
func (r *ProjectsRegionsAutoscalingPoliciesService) List(parent string) *ProjectsRegionsAutoscalingPoliciesListCall
List: Lists autoscaling policies in the project.
- parent: The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy ¶ added in v0.6.0
func (r *ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions ¶ added in v0.6.0
func (r *ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsAutoscalingPoliciesService) Update ¶ added in v0.11.0
func (r *ProjectsRegionsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesUpdateCall
Update: Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.
- name: Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}.
type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall ¶ added in v0.6.0
type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Fields ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall ¶ added in v0.6.0
type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Fields ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header ¶ added in v0.6.0
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsAutoscalingPoliciesUpdateCall ¶ added in v0.11.0
type ProjectsRegionsAutoscalingPoliciesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Context ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesUpdateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Do ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.update" call. Any non-2xx status code is an error. Response headers are in either *AutoscalingPolicy.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 (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Fields ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Header ¶ added in v0.11.0
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersCreateCall ¶
type ProjectsRegionsClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersCreateCall) ActionOnFailedPrimaryWorkers ¶ added in v0.55.0
func (c *ProjectsRegionsClustersCreateCall) ActionOnFailedPrimaryWorkers(actionOnFailedPrimaryWorkers string) *ProjectsRegionsClustersCreateCall
ActionOnFailedPrimaryWorkers sets the optional parameter "actionOnFailedPrimaryWorkers": Failure action when primary worker creation fails.
Possible values:
"FAILURE_ACTION_UNSPECIFIED" - When FailureAction is unspecified, failure
action defaults to NO_ACTION.
"NO_ACTION" - Take no action on failure to create a cluster resource.
NO_ACTION is the default.
"DELETE" - Delete the failed cluster resource.
func (*ProjectsRegionsClustersCreateCall) Context ¶
func (c *ProjectsRegionsClustersCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersCreateCall) Do ¶
func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.create" call. 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 (*ProjectsRegionsClustersCreateCall) Fields ¶
func (c *ProjectsRegionsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersCreateCall) Header ¶
func (c *ProjectsRegionsClustersCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersCreateCall) RequestId ¶
func (c *ProjectsRegionsClustersCreateCall) RequestId(requestId string) *ProjectsRegionsClustersCreateCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsRegionsClustersDeleteCall ¶
type ProjectsRegionsClustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersDeleteCall) ClusterUuid ¶
func (c *ProjectsRegionsClustersDeleteCall) ClusterUuid(clusterUuid string) *ProjectsRegionsClustersDeleteCall
ClusterUuid sets the optional parameter "clusterUuid": Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.
func (*ProjectsRegionsClustersDeleteCall) Context ¶
func (c *ProjectsRegionsClustersDeleteCall) Context(ctx context.Context) *ProjectsRegionsClustersDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersDeleteCall) Do ¶
func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.delete" call. 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 (*ProjectsRegionsClustersDeleteCall) Fields ¶
func (c *ProjectsRegionsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersDeleteCall) GracefulTerminationTimeout ¶ added in v0.137.0
func (c *ProjectsRegionsClustersDeleteCall) GracefulTerminationTimeout(gracefulTerminationTimeout string) *ProjectsRegionsClustersDeleteCall
GracefulTerminationTimeout sets the optional parameter "gracefulTerminationTimeout": The graceful termination timeout for the deletion of the cluster. Indicate the time the request will wait to complete the running jobs on the cluster before its forceful deletion. Default value is 0 indicating that the user has not enabled the graceful termination. Value can be between 60 second and 6 Hours, in case the graceful termination is enabled. (There is no separate flag to check the enabling or disabling of graceful termination, it can be checked by the values in the field).
func (*ProjectsRegionsClustersDeleteCall) Header ¶
func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersDeleteCall) RequestId ¶
func (c *ProjectsRegionsClustersDeleteCall) RequestId(requestId string) *ProjectsRegionsClustersDeleteCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the server receives two DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsRegionsClustersDiagnoseCall ¶
type ProjectsRegionsClustersDiagnoseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersDiagnoseCall) Context ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Context(ctx context.Context) *ProjectsRegionsClustersDiagnoseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersDiagnoseCall) Do ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.diagnose" call. 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 (*ProjectsRegionsClustersDiagnoseCall) Fields ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDiagnoseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersDiagnoseCall) Header ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersGetCall ¶
type ProjectsRegionsClustersGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersGetCall) Context ¶
func (c *ProjectsRegionsClustersGetCall) Context(ctx context.Context) *ProjectsRegionsClustersGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersGetCall) Do ¶
func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
Do executes the "dataproc.projects.regions.clusters.get" call. 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 (*ProjectsRegionsClustersGetCall) Fields ¶
func (c *ProjectsRegionsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersGetCall) Header ¶
func (c *ProjectsRegionsClustersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetCall
IfNoneMatch sets an 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.
type ProjectsRegionsClustersGetIamPolicyCall ¶
type ProjectsRegionsClustersGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersGetIamPolicyCall) Context ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.clusters.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsClustersGetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersInjectCredentialsCall ¶ added in v0.37.0
type ProjectsRegionsClustersInjectCredentialsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersInjectCredentialsCall) Context ¶ added in v0.37.0
func (c *ProjectsRegionsClustersInjectCredentialsCall) Context(ctx context.Context) *ProjectsRegionsClustersInjectCredentialsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersInjectCredentialsCall) Do ¶ added in v0.37.0
func (c *ProjectsRegionsClustersInjectCredentialsCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.injectCredentials" call. 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 (*ProjectsRegionsClustersInjectCredentialsCall) Fields ¶ added in v0.37.0
func (c *ProjectsRegionsClustersInjectCredentialsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersInjectCredentialsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersInjectCredentialsCall) Header ¶ added in v0.37.0
func (c *ProjectsRegionsClustersInjectCredentialsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersListCall ¶
type ProjectsRegionsClustersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersListCall) Context ¶
func (c *ProjectsRegionsClustersListCall) Context(ctx context.Context) *ProjectsRegionsClustersListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersListCall) Do ¶
func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
Do executes the "dataproc.projects.regions.clusters.list" call. 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 (*ProjectsRegionsClustersListCall) Fields ¶
func (c *ProjectsRegionsClustersListCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersListCall) Filter ¶
func (c *ProjectsRegionsClustersListCall) Filter(filter string) *ProjectsRegionsClustersListCall
Filter sets the optional parameter "filter": A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *
func (*ProjectsRegionsClustersListCall) Header ¶
func (c *ProjectsRegionsClustersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersListCall) IfNoneMatch ¶
func (c *ProjectsRegionsClustersListCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersListCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsClustersListCall) PageSize ¶
func (c *ProjectsRegionsClustersListCall) PageSize(pageSize int64) *ProjectsRegionsClustersListCall
PageSize sets the optional parameter "pageSize": The standard List page size.
func (*ProjectsRegionsClustersListCall) PageToken ¶
func (c *ProjectsRegionsClustersListCall) PageToken(pageToken string) *ProjectsRegionsClustersListCall
PageToken sets the optional parameter "pageToken": The standard List page token.
func (*ProjectsRegionsClustersListCall) Pages ¶
func (c *ProjectsRegionsClustersListCall) Pages(ctx context.Context, f func(*ListClustersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsRegionsClustersNodeGroupsCreateCall ¶ added in v0.106.0
type ProjectsRegionsClustersNodeGroupsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersNodeGroupsCreateCall) Context ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersNodeGroupsCreateCall) Do ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.nodeGroups.create" call. 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 (*ProjectsRegionsClustersNodeGroupsCreateCall) Fields ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersNodeGroupsCreateCall) Header ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersNodeGroupsCreateCall) NodeGroupId ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) NodeGroupId(nodeGroupId string) *ProjectsRegionsClustersNodeGroupsCreateCall
NodeGroupId sets the optional parameter "nodeGroupId": An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
func (*ProjectsRegionsClustersNodeGroupsCreateCall) ParentOperationId ¶ added in v0.146.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) ParentOperationId(parentOperationId string) *ProjectsRegionsClustersNodeGroupsCreateCall
ParentOperationId sets the optional parameter "parentOperationId": operation id of the parent operation sending the create request
func (*ProjectsRegionsClustersNodeGroupsCreateCall) RequestId ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsCreateCall) RequestId(requestId string) *ProjectsRegionsClustersNodeGroupsCreateCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsRegionsClustersNodeGroupsGetCall ¶ added in v0.106.0
type ProjectsRegionsClustersNodeGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersNodeGroupsGetCall) Context ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsGetCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersNodeGroupsGetCall) Do ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsGetCall) Do(opts ...googleapi.CallOption) (*NodeGroup, error)
Do executes the "dataproc.projects.regions.clusters.nodeGroups.get" call. Any non-2xx status code is an error. Response headers are in either *NodeGroup.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 (*ProjectsRegionsClustersNodeGroupsGetCall) Fields ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersNodeGroupsGetCall) Header ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersNodeGroupsGetCall) IfNoneMatch ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersNodeGroupsGetCall
IfNoneMatch sets an 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.
type ProjectsRegionsClustersNodeGroupsRepairCall ¶ added in v0.166.0
type ProjectsRegionsClustersNodeGroupsRepairCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersNodeGroupsRepairCall) Context ¶ added in v0.166.0
func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsRepairCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersNodeGroupsRepairCall) Do ¶ added in v0.166.0
func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.nodeGroups.repair" call. 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 (*ProjectsRegionsClustersNodeGroupsRepairCall) Fields ¶ added in v0.166.0
func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsRepairCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersNodeGroupsRepairCall) Header ¶ added in v0.166.0
func (c *ProjectsRegionsClustersNodeGroupsRepairCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersNodeGroupsResizeCall ¶ added in v0.106.0
type ProjectsRegionsClustersNodeGroupsResizeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersNodeGroupsResizeCall) Context ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsResizeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersNodeGroupsResizeCall) Do ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.nodeGroups.resize" call. 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 (*ProjectsRegionsClustersNodeGroupsResizeCall) Fields ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersNodeGroupsResizeCall) Header ¶ added in v0.106.0
func (c *ProjectsRegionsClustersNodeGroupsResizeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersNodeGroupsService ¶ added in v0.106.0
type ProjectsRegionsClustersNodeGroupsService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsClustersNodeGroupsService ¶ added in v0.106.0
func NewProjectsRegionsClustersNodeGroupsService(s *Service) *ProjectsRegionsClustersNodeGroupsService
func (*ProjectsRegionsClustersNodeGroupsService) Create ¶ added in v0.106.0
func (r *ProjectsRegionsClustersNodeGroupsService) Create(parent string, nodegroup *NodeGroup) *ProjectsRegionsClustersNodeGroupsCreateCall
Create: Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
- parent: The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}.
func (*ProjectsRegionsClustersNodeGroupsService) Get ¶ added in v0.106.0
func (r *ProjectsRegionsClustersNodeGroupsService) Get(name string) *ProjectsRegionsClustersNodeGroupsGetCall
Get: Gets the resource representation for a node group in a cluster.
- name: The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGrou p}.
func (*ProjectsRegionsClustersNodeGroupsService) Repair ¶ added in v0.166.0
func (r *ProjectsRegionsClustersNodeGroupsService) Repair(name string, repairnodegrouprequest *RepairNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsRepairCall
Repair: Repair nodes in a node group.
- name: The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGrou p}.
func (*ProjectsRegionsClustersNodeGroupsService) Resize ¶ added in v0.106.0
func (r *ProjectsRegionsClustersNodeGroupsService) Resize(name string, resizenodegrouprequest *ResizeNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsResizeCall
Resize: Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
- name: The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGrou p}.
type ProjectsRegionsClustersPatchCall ¶
type ProjectsRegionsClustersPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersPatchCall) Context ¶
func (c *ProjectsRegionsClustersPatchCall) Context(ctx context.Context) *ProjectsRegionsClustersPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersPatchCall) Do ¶
func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.patch" call. 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 (*ProjectsRegionsClustersPatchCall) Fields ¶
func (c *ProjectsRegionsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout ¶
func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall
GracefulDecommissionTimeout sets the optional parameter "gracefulDecommissionTimeout": Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.
func (*ProjectsRegionsClustersPatchCall) Header ¶
func (c *ProjectsRegionsClustersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsClustersPatchCall) RequestId ¶
func (c *ProjectsRegionsClustersPatchCall) RequestId(requestId string) *ProjectsRegionsClustersPatchCall
RequestId sets the optional parameter "requestId": A unique ID used to identify the request. If the server receives two UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
func (*ProjectsRegionsClustersPatchCall) UpdateMask ¶
func (c *ProjectsRegionsClustersPatchCall) UpdateMask(updateMask string) *ProjectsRegionsClustersPatchCall
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 config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { "config":{ "workerConfig":{ "numInstances":"5" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } *Note:* Currently, only the following fields can be updated: *Mask* *Purpose* *labels* Update labels *config.worker_config.num_instances* Resize primary worker group *config.secondary_worker_config.num_instances* Resize secondary worker group config.autoscaling_config.policy_uri Use, stop using, or change autoscaling policies
type ProjectsRegionsClustersRepairCall ¶ added in v0.51.0
type ProjectsRegionsClustersRepairCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersRepairCall) Context ¶ added in v0.51.0
func (c *ProjectsRegionsClustersRepairCall) Context(ctx context.Context) *ProjectsRegionsClustersRepairCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersRepairCall) Do ¶ added in v0.51.0
func (c *ProjectsRegionsClustersRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.repair" call. 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 (*ProjectsRegionsClustersRepairCall) Fields ¶ added in v0.51.0
func (c *ProjectsRegionsClustersRepairCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersRepairCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersRepairCall) Header ¶ added in v0.51.0
func (c *ProjectsRegionsClustersRepairCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersService ¶
type ProjectsRegionsClustersService struct { NodeGroups *ProjectsRegionsClustersNodeGroupsService // contains filtered or unexported fields }
func NewProjectsRegionsClustersService ¶
func NewProjectsRegionsClustersService(s *Service) *ProjectsRegionsClustersService
func (*ProjectsRegionsClustersService) Create ¶
func (r *ProjectsRegionsClustersService) Create(projectId string, region string, cluster *Cluster) *ProjectsRegionsClustersCreateCall
Create: Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
- projectId: The ID of the Google Cloud Platform project that the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Delete ¶
func (r *ProjectsRegionsClustersService) Delete(projectId string, region string, clusterName string) *ProjectsRegionsClustersDeleteCall
Delete: Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project that the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Diagnose ¶
func (r *ProjectsRegionsClustersService) Diagnose(projectId string, region string, clusterName string, diagnoseclusterrequest *DiagnoseClusterRequest) *ProjectsRegionsClustersDiagnoseCall
Diagnose: Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, Operation.response contains DiagnoseClusterResults (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project that the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Get ¶
func (r *ProjectsRegionsClustersService) Get(projectId string, region string, clusterName string) *ProjectsRegionsClustersGetCall
Get: Gets the resource representation for a cluster in a project.
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project that the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) GetIamPolicy ¶
func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsClustersGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsClustersService) InjectCredentials ¶ added in v0.37.0
func (r *ProjectsRegionsClustersService) InjectCredentials(project string, region string, cluster string, injectcredentialsrequest *InjectCredentialsRequest) *ProjectsRegionsClustersInjectCredentialsCall
InjectCredentials: Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.
- cluster: The cluster, in the form clusters/.
- project: The ID of the Google Cloud Platform project the cluster belongs to, of the form projects/.
- region: The region containing the cluster, of the form regions/.
func (*ProjectsRegionsClustersService) List ¶
func (r *ProjectsRegionsClustersService) List(projectId string, region string) *ProjectsRegionsClustersListCall
List: Lists all regions/{region}/clusters in a project alphabetically.
- projectId: The ID of the Google Cloud Platform project that the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Patch ¶
func (r *ProjectsRegionsClustersService) Patch(projectId string, region string, clusterName string, cluster *Cluster) *ProjectsRegionsClustersPatchCall
Patch: Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a RUNNING state or an error is returned.
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Repair ¶ added in v0.51.0
func (r *ProjectsRegionsClustersService) Repair(projectId string, region string, clusterName string, repairclusterrequest *RepairClusterRequest) *ProjectsRegionsClustersRepairCall
Repair: Repairs a cluster.
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) SetIamPolicy ¶
func (r *ProjectsRegionsClustersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsClustersSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsClustersService) Start ¶ added in v0.40.0
func (r *ProjectsRegionsClustersService) Start(projectId string, region string, clusterName string, startclusterrequest *StartClusterRequest) *ProjectsRegionsClustersStartCall
Start: Starts a cluster in a project.
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) Stop ¶ added in v0.40.0
func (r *ProjectsRegionsClustersService) Stop(projectId string, region string, clusterName string, stopclusterrequest *StopClusterRequest) *ProjectsRegionsClustersStopCall
Stop: Stops a cluster in a project.
- clusterName: The cluster name.
- projectId: The ID of the Google Cloud Platform project the cluster belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsClustersService) TestIamPermissions ¶
func (r *ProjectsRegionsClustersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsClustersTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsRegionsClustersSetIamPolicyCall ¶
type ProjectsRegionsClustersSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersSetIamPolicyCall) Context ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.clusters.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsClustersSetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersStartCall ¶ added in v0.40.0
type ProjectsRegionsClustersStartCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersStartCall) Context ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStartCall) Context(ctx context.Context) *ProjectsRegionsClustersStartCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersStartCall) Do ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.start" call. 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 (*ProjectsRegionsClustersStartCall) Fields ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStartCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStartCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersStartCall) Header ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStartCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersStopCall ¶ added in v0.40.0
type ProjectsRegionsClustersStopCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersStopCall) Context ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStopCall) Context(ctx context.Context) *ProjectsRegionsClustersStopCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersStopCall) Do ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.stop" call. 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 (*ProjectsRegionsClustersStopCall) Fields ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStopCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersStopCall) Header ¶ added in v0.40.0
func (c *ProjectsRegionsClustersStopCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsClustersTestIamPermissionsCall ¶
type ProjectsRegionsClustersTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersTestIamPermissionsCall) Context ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsClustersTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsClustersTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.clusters.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsRegionsClustersTestIamPermissionsCall) Fields ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsClustersTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsCancelCall ¶
type ProjectsRegionsJobsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsCancelCall) Context ¶
func (c *ProjectsRegionsJobsCancelCall) Context(ctx context.Context) *ProjectsRegionsJobsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsCancelCall) Do ¶
func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.cancel" call. 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 (*ProjectsRegionsJobsCancelCall) Fields ¶
func (c *ProjectsRegionsJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsCancelCall) Header ¶
func (c *ProjectsRegionsJobsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsDeleteCall ¶
type ProjectsRegionsJobsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsDeleteCall) Context ¶
func (c *ProjectsRegionsJobsDeleteCall) Context(ctx context.Context) *ProjectsRegionsJobsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsDeleteCall) Do ¶
func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.jobs.delete" call. 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 (*ProjectsRegionsJobsDeleteCall) Fields ¶
func (c *ProjectsRegionsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsDeleteCall) Header ¶
func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsGetCall ¶
type ProjectsRegionsJobsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsGetCall) Context ¶
func (c *ProjectsRegionsJobsGetCall) Context(ctx context.Context) *ProjectsRegionsJobsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsGetCall) Do ¶
func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.get" call. 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 (*ProjectsRegionsJobsGetCall) Fields ¶
func (c *ProjectsRegionsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsGetCall) Header ¶
func (c *ProjectsRegionsJobsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsJobsGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetCall
IfNoneMatch sets an 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.
type ProjectsRegionsJobsGetIamPolicyCall ¶
type ProjectsRegionsJobsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsGetIamPolicyCall) Context ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.jobs.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsJobsGetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsListCall ¶
type ProjectsRegionsJobsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsListCall) ClusterName ¶
func (c *ProjectsRegionsJobsListCall) ClusterName(clusterName string) *ProjectsRegionsJobsListCall
ClusterName sets the optional parameter "clusterName": If set, the returned jobs list includes only jobs that were submitted to the named cluster.
func (*ProjectsRegionsJobsListCall) Context ¶
func (c *ProjectsRegionsJobsListCall) Context(ctx context.Context) *ProjectsRegionsJobsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsListCall) Do ¶
func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error)
Do executes the "dataproc.projects.regions.jobs.list" call. 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 (*ProjectsRegionsJobsListCall) Fields ¶
func (c *ProjectsRegionsJobsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsListCall) Filter ¶
func (c *ProjectsRegionsJobsListCall) Filter(filter string) *ProjectsRegionsJobsListCall
Filter sets the optional parameter "filter": A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *
func (*ProjectsRegionsJobsListCall) Header ¶
func (c *ProjectsRegionsJobsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsJobsListCall) IfNoneMatch ¶
func (c *ProjectsRegionsJobsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsListCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsJobsListCall) JobStateMatcher ¶
func (c *ProjectsRegionsJobsListCall) JobStateMatcher(jobStateMatcher string) *ProjectsRegionsJobsListCall
JobStateMatcher sets the optional parameter "jobStateMatcher": Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.
Possible values:
"ALL" - Match all jobs, regardless of state. "ACTIVE" - Only match jobs in non-terminal states: PENDING, RUNNING, or
CANCEL_PENDING.
"NON_ACTIVE" - Only match jobs in terminal states: CANCELLED, DONE, or
ERROR.
func (*ProjectsRegionsJobsListCall) PageSize ¶
func (c *ProjectsRegionsJobsListCall) PageSize(pageSize int64) *ProjectsRegionsJobsListCall
PageSize sets the optional parameter "pageSize": The number of results to return in each response.
func (*ProjectsRegionsJobsListCall) PageToken ¶
func (c *ProjectsRegionsJobsListCall) PageToken(pageToken string) *ProjectsRegionsJobsListCall
PageToken sets the optional parameter "pageToken": The page token, returned by a previous call, to request the next page of results.
func (*ProjectsRegionsJobsListCall) Pages ¶
func (c *ProjectsRegionsJobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsRegionsJobsPatchCall ¶
type ProjectsRegionsJobsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsPatchCall) Context ¶
func (c *ProjectsRegionsJobsPatchCall) Context(ctx context.Context) *ProjectsRegionsJobsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsPatchCall) Do ¶
func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.patch" call. 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 (*ProjectsRegionsJobsPatchCall) Fields ¶
func (c *ProjectsRegionsJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsPatchCall) Header ¶
func (c *ProjectsRegionsJobsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsJobsPatchCall) UpdateMask ¶
func (c *ProjectsRegionsJobsPatchCall) UpdateMask(updateMask string) *ProjectsRegionsJobsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. *Note:* Currently, labels is the only field that can be updated.
type ProjectsRegionsJobsService ¶
type ProjectsRegionsJobsService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsJobsService ¶
func NewProjectsRegionsJobsService(s *Service) *ProjectsRegionsJobsService
func (*ProjectsRegionsJobsService) Cancel ¶
func (r *ProjectsRegionsJobsService) Cancel(projectId string, region string, jobId string, canceljobrequest *CancelJobRequest) *ProjectsRegionsJobsCancelCall
Cancel: Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
- jobId: The job ID.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) Delete ¶
func (r *ProjectsRegionsJobsService) Delete(projectId string, region string, jobId string) *ProjectsRegionsJobsDeleteCall
Delete: Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.
- jobId: The job ID.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) Get ¶
func (r *ProjectsRegionsJobsService) Get(projectId string, region string, jobId string) *ProjectsRegionsJobsGetCall
Get: Gets the resource representation for a job in a project.
- jobId: The job ID.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) GetIamPolicy ¶
func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsJobsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsJobsService) List ¶
func (r *ProjectsRegionsJobsService) List(projectId string, region string) *ProjectsRegionsJobsListCall
List: Lists regions/{region}/jobs in a project.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) Patch ¶
func (r *ProjectsRegionsJobsService) Patch(projectId string, region string, jobId string, job *Job) *ProjectsRegionsJobsPatchCall
Patch: Updates a job in a project.
- jobId: The job ID.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) SetIamPolicy ¶
func (r *ProjectsRegionsJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsJobsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsJobsService) Submit ¶
func (r *ProjectsRegionsJobsService) Submit(projectId string, region string, submitjobrequest *SubmitJobRequest) *ProjectsRegionsJobsSubmitCall
Submit: Submits a job to a cluster.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) SubmitAsOperation ¶ added in v0.22.0
func (r *ProjectsRegionsJobsService) SubmitAsOperation(projectId string, region string, submitjobrequest *SubmitJobRequest) *ProjectsRegionsJobsSubmitAsOperationCall
SubmitAsOperation: Submits job to a cluster.
- projectId: The ID of the Google Cloud Platform project that the job belongs to.
- region: The Dataproc region in which to handle the request.
func (*ProjectsRegionsJobsService) TestIamPermissions ¶
func (r *ProjectsRegionsJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsJobsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsRegionsJobsSetIamPolicyCall ¶
type ProjectsRegionsJobsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsSetIamPolicyCall) Context ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.jobs.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsJobsSetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsSubmitAsOperationCall ¶ added in v0.22.0
type ProjectsRegionsJobsSubmitAsOperationCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsSubmitAsOperationCall) Context ¶ added in v0.22.0
func (c *ProjectsRegionsJobsSubmitAsOperationCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitAsOperationCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsSubmitAsOperationCall) Do ¶ added in v0.22.0
func (c *ProjectsRegionsJobsSubmitAsOperationCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.jobs.submitAsOperation" call. 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 (*ProjectsRegionsJobsSubmitAsOperationCall) Fields ¶ added in v0.22.0
func (c *ProjectsRegionsJobsSubmitAsOperationCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitAsOperationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsSubmitAsOperationCall) Header ¶ added in v0.22.0
func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsSubmitCall ¶
type ProjectsRegionsJobsSubmitCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsSubmitCall) Context ¶
func (c *ProjectsRegionsJobsSubmitCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsSubmitCall) Do ¶
func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.submit" call. 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 (*ProjectsRegionsJobsSubmitCall) Fields ¶
func (c *ProjectsRegionsJobsSubmitCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsSubmitCall) Header ¶
func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsJobsTestIamPermissionsCall ¶
type ProjectsRegionsJobsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsJobsTestIamPermissionsCall) Context ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsJobsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsJobsTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.jobs.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsRegionsJobsTestIamPermissionsCall) Fields ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsJobsTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsOperationsCancelCall ¶
type ProjectsRegionsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsCancelCall) Context ¶
func (c *ProjectsRegionsOperationsCancelCall) Context(ctx context.Context) *ProjectsRegionsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsCancelCall) Do ¶
func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.operations.cancel" call. 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 (*ProjectsRegionsOperationsCancelCall) Fields ¶
func (c *ProjectsRegionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsCancelCall) Header ¶
func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsOperationsDeleteCall ¶
type ProjectsRegionsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsDeleteCall) Context ¶
func (c *ProjectsRegionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsRegionsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsDeleteCall) Do ¶
func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.operations.delete" call. 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 (*ProjectsRegionsOperationsDeleteCall) Fields ¶
func (c *ProjectsRegionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsDeleteCall) Header ¶
func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsOperationsGetCall ¶
type ProjectsRegionsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsGetCall) Context ¶
func (c *ProjectsRegionsOperationsGetCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsGetCall) Do ¶
func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.operations.get" call. 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 (*ProjectsRegionsOperationsGetCall) Fields ¶
func (c *ProjectsRegionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsGetCall) Header ¶
func (c *ProjectsRegionsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetCall
IfNoneMatch sets an 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.
type ProjectsRegionsOperationsGetIamPolicyCall ¶
type ProjectsRegionsOperationsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsGetIamPolicyCall) Context ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.operations.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsOperationsGetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsOperationsListCall ¶
type ProjectsRegionsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsListCall) Context ¶
func (c *ProjectsRegionsOperationsListCall) Context(ctx context.Context) *ProjectsRegionsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsListCall) Do ¶
func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "dataproc.projects.regions.operations.list" call. 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 (*ProjectsRegionsOperationsListCall) Fields ¶
func (c *ProjectsRegionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsListCall) Filter ¶
func (c *ProjectsRegionsOperationsListCall) Filter(filter string) *ProjectsRegionsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsRegionsOperationsListCall) Header ¶
func (c *ProjectsRegionsOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsRegionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsListCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsOperationsListCall) PageSize ¶
func (c *ProjectsRegionsOperationsListCall) PageSize(pageSize int64) *ProjectsRegionsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsRegionsOperationsListCall) PageToken ¶
func (c *ProjectsRegionsOperationsListCall) PageToken(pageToken string) *ProjectsRegionsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsRegionsOperationsListCall) Pages ¶
func (c *ProjectsRegionsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsRegionsOperationsService ¶
type ProjectsRegionsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsOperationsService ¶
func NewProjectsRegionsOperationsService(s *Service) *ProjectsRegionsOperationsService
func (*ProjectsRegionsOperationsService) Cancel ¶
func (r *ProjectsRegionsOperationsService) Cancel(name string) *ProjectsRegionsOperationsCancelCall
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.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
- name: The name of the operation resource to be cancelled.
func (*ProjectsRegionsOperationsService) Delete ¶
func (r *ProjectsRegionsOperationsService) Delete(name string) *ProjectsRegionsOperationsDeleteCall
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.
- name: The name of the operation resource to be deleted.
func (*ProjectsRegionsOperationsService) Get ¶
func (r *ProjectsRegionsOperationsService) Get(name string) *ProjectsRegionsOperationsGetCall
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.
- name: The name of the operation resource.
func (*ProjectsRegionsOperationsService) GetIamPolicy ¶
func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsOperationsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsOperationsService) List ¶
func (r *ProjectsRegionsOperationsService) List(name string) *ProjectsRegionsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
- name: The name of the operation's parent resource.
func (*ProjectsRegionsOperationsService) SetIamPolicy ¶
func (r *ProjectsRegionsOperationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsOperationsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsOperationsService) TestIamPermissions ¶
func (r *ProjectsRegionsOperationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsOperationsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsRegionsOperationsSetIamPolicyCall ¶
type ProjectsRegionsOperationsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsSetIamPolicyCall) Context ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.operations.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsOperationsSetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsOperationsTestIamPermissionsCall ¶
type ProjectsRegionsOperationsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsOperationsTestIamPermissionsCall) Context ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsOperationsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsOperationsTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.operations.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsRegionsOperationsTestIamPermissionsCall) Fields ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsOperationsTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsService ¶
type ProjectsRegionsService struct { AutoscalingPolicies *ProjectsRegionsAutoscalingPoliciesService Clusters *ProjectsRegionsClustersService Jobs *ProjectsRegionsJobsService Operations *ProjectsRegionsOperationsService WorkflowTemplates *ProjectsRegionsWorkflowTemplatesService // contains filtered or unexported fields }
func NewProjectsRegionsService ¶
func NewProjectsRegionsService(s *Service) *ProjectsRegionsService
type ProjectsRegionsWorkflowTemplatesCreateCall ¶
type ProjectsRegionsWorkflowTemplatesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesCreateCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesCreateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.create" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsRegionsWorkflowTemplatesCreateCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesCreateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsWorkflowTemplatesDeleteCall ¶
type ProjectsRegionsWorkflowTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.workflowTemplates.delete" call. 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 (*ProjectsRegionsWorkflowTemplatesDeleteCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Version ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesDeleteCall
Version sets the optional parameter "version": The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.
type ProjectsRegionsWorkflowTemplatesGetCall ¶
type ProjectsRegionsWorkflowTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesGetCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesGetCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.get" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsRegionsWorkflowTemplatesGetCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesGetCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsWorkflowTemplatesGetCall) Version ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesGetCall
Version sets the optional parameter "version": The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.
type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall ¶
type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.workflowTemplates.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsWorkflowTemplatesInstantiateCall ¶
type ProjectsRegionsWorkflowTemplatesInstantiateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.workflowTemplates.instantiate" call. 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 (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall ¶
type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.workflowTemplates.instantiateInline" call. 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 (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) RequestId ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
RequestId sets the optional parameter "requestId": A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
type ProjectsRegionsWorkflowTemplatesListCall ¶
type ProjectsRegionsWorkflowTemplatesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesListCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesListCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
Do executes the "dataproc.projects.regions.workflowTemplates.list" call. Any non-2xx status code is an error. Response headers are in either *ListWorkflowTemplatesResponse.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 (*ProjectsRegionsWorkflowTemplatesListCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesListCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesListCall
IfNoneMatch sets an 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.
func (*ProjectsRegionsWorkflowTemplatesListCall) PageSize ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsRegionsWorkflowTemplatesListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in each response.
func (*ProjectsRegionsWorkflowTemplatesListCall) PageToken ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsRegionsWorkflowTemplatesListCall
PageToken sets the optional parameter "pageToken": The page token, returned by a previous call, to request the next page of results.
func (*ProjectsRegionsWorkflowTemplatesListCall) Pages ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsRegionsWorkflowTemplatesService ¶
type ProjectsRegionsWorkflowTemplatesService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsWorkflowTemplatesService ¶
func NewProjectsRegionsWorkflowTemplatesService(s *Service) *ProjectsRegionsWorkflowTemplatesService
func (*ProjectsRegionsWorkflowTemplatesService) Create ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesCreateCall
Create: Creates new workflow template.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsRegionsWorkflowTemplatesService) Delete ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Delete(name string) *ProjectsRegionsWorkflowTemplatesDeleteCall
Delete: Deletes a workflow template. It does not cancel in-progress workflows.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsRegionsWorkflowTemplatesService) Get ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Get(name string) *ProjectsRegionsWorkflowTemplatesGetCall
Get: Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsRegionsWorkflowTemplatesService) GetIamPolicy ¶
func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsWorkflowTemplatesService) Instantiate ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Instantiate(name string, instantiateworkflowtemplaterequest *InstantiateWorkflowTemplateRequest) *ProjectsRegionsWorkflowTemplatesInstantiateCall
Instantiate: Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
- name: The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
func (*ProjectsRegionsWorkflowTemplatesService) InstantiateInline ¶
func (r *ProjectsRegionsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
InstantiateInline: Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsRegionsWorkflowTemplatesService) List ¶
func (r *ProjectsRegionsWorkflowTemplatesService) List(parent string) *ProjectsRegionsWorkflowTemplatesListCall
List: Lists workflows that match the specified filter in the request.
- parent: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}.
func (*ProjectsRegionsWorkflowTemplatesService) SetIamPolicy ¶
func (r *ProjectsRegionsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsWorkflowTemplatesService) TestIamPermissions ¶
func (r *ProjectsRegionsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsRegionsWorkflowTemplatesService) Update ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesUpdateCall
Update: Updates (replaces) workflow template. The updated template must contain version that matches the current server version.
- name: Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}.
type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall ¶
type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.workflowTemplates.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall ¶
type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.workflowTemplates.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsRegionsWorkflowTemplatesUpdateCall ¶
type ProjectsRegionsWorkflowTemplatesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsWorkflowTemplatesUpdateCall) Context ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesUpdateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsRegionsWorkflowTemplatesUpdateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.update" call. Any non-2xx status code is an error. Response headers are in either *WorkflowTemplate.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 (*ProjectsRegionsWorkflowTemplatesUpdateCall) Fields ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsRegionsWorkflowTemplatesUpdateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService Regions *ProjectsRegionsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PyPiRepositoryConfig ¶ added in v0.140.0
type PyPiRepositoryConfig struct { // PypiRepository: Optional. PyPi repository address PypiRepository string `json:"pypiRepository,omitempty"` // ForceSendFields is a list of field names (e.g. "PypiRepository") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PypiRepository") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PyPiRepositoryConfig: Configuration for PyPi repository
func (PyPiRepositoryConfig) MarshalJSON ¶ added in v0.140.0
func (s PyPiRepositoryConfig) MarshalJSON() ([]byte, error)
type PySparkBatch ¶ added in v0.66.0
type PySparkBatch struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. 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 that can be set as batch properties, such as --conf, since a // collision can occur that causes an incorrect batch submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be placed in the working directory // of each executor. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the // Spark driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as // the Spark driver. Must be a .py file. MainPythonFileUri string `json:"mainPythonFileUri,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PySparkBatch: A configuration for running an Apache PySpark (https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) batch workload.
func (PySparkBatch) MarshalJSON ¶ added in v0.66.0
func (s PySparkBatch) MarshalJSON() ([]byte, error)
type PySparkJob ¶
type PySparkJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. 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 placed in the working directory // of each executor. 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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // MainPythonFileUri: Required. The 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 Dataproc // API might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PySparkJob: A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) 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 end a query // expression with a semicolon. Multiple queries can be specified in one string // by separating each with a semicolon. Here is an example of a 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Queries") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
QueryList: A list of queries to run on a cluster.
func (QueryList) MarshalJSON ¶
type RegexValidation ¶
type RegexValidation struct { // Regexes: Required. RE2 regular expressions used to validate the parameter's // value. The value must match the regex in its entirety (substring matches are // not sufficient). Regexes []string `json:"regexes,omitempty"` // ForceSendFields is a list of field names (e.g. "Regexes") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Regexes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RegexValidation: Validation based on regular expressions.
func (RegexValidation) MarshalJSON ¶
func (s RegexValidation) MarshalJSON() ([]byte, error)
type RepairClusterRequest ¶ added in v0.51.0
type RepairClusterRequest struct { // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN // decommissioning. Graceful decommissioning facilitates the removal of cluster // nodes without interrupting jobs in progress. The timeout specifies the // amount of time to wait for jobs finish before forcefully removing nodes. The // default timeout is 0 for forceful decommissioning, and the maximum timeout // period is 1 day. (see JSON Mapping—Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout // is supported in Dataproc image versions 1.2+. GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` // NodePools: Optional. Node pools and corresponding repair action to be taken. // All node pools should be unique in this request. i.e. Multiple entries for // the same node pool id are not allowed. NodePools []*NodePool `json:"nodePools,omitempty"` // ParentOperationId: Optional. operation id of the parent operation sending // the repair request ParentOperationId string `json:"parentOperationId,omitempty"` // RequestId: Optional. A unique ID used to identify the request. If the server // receives two RepairClusterRequests with the same ID, the second request is // ignored, and the first google.longrunning.Operation created and stored in // the backend is returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RepairClusterRequest: A request to repair a cluster.
func (RepairClusterRequest) MarshalJSON ¶ added in v0.51.0
func (s RepairClusterRequest) MarshalJSON() ([]byte, error)
type RepairNodeGroupRequest ¶ added in v0.166.0
type RepairNodeGroupRequest struct { // InstanceNames: Required. Name of instances to be repaired. These instances // must belong to specified node pool. InstanceNames []string `json:"instanceNames,omitempty"` // RepairAction: Required. Repair action to take on specified resources of the // node pool. // // Possible values: // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. // "REPLACE" - replace the specified list of nodes. RepairAction string `json:"repairAction,omitempty"` // RequestId: Optional. A unique ID used to identify the request. If the server // receives two RepairNodeGroupRequest with the same ID, the second request is // ignored and the first google.longrunning.Operation created and stored in the // backend is returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceNames") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstanceNames") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
func (RepairNodeGroupRequest) MarshalJSON ¶ added in v0.166.0
func (s RepairNodeGroupRequest) MarshalJSON() ([]byte, error)
type RepositoryConfig ¶ added in v0.140.0
type RepositoryConfig struct { // PypiRepositoryConfig: Optional. Configuration for PyPi repository. PypiRepositoryConfig *PyPiRepositoryConfig `json:"pypiRepositoryConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "PypiRepositoryConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PypiRepositoryConfig") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RepositoryConfig: Configuration for dependency repositories
func (RepositoryConfig) MarshalJSON ¶ added in v0.140.0
func (s RepositoryConfig) MarshalJSON() ([]byte, error)
type ReservationAffinity ¶ added in v0.15.0
type ReservationAffinity struct { // ConsumeReservationType: Optional. Type of reservation to consume // // Possible values: // "TYPE_UNSPECIFIED" // "NO_RESERVATION" - Do not consume from any allocated capacity. // "ANY_RESERVATION" - Consume any reservation available. // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must // specify key value fields for specifying the reservations. ConsumeReservationType string `json:"consumeReservationType,omitempty"` // Key: Optional. Corresponds to the label key of reservation resource. Key string `json:"key,omitempty"` // Values: Optional. Corresponds to the label values of reservation resource. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConsumeReservationType") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ReservationAffinity: Reservation Affinity for consuming Zonal reservation.
func (ReservationAffinity) MarshalJSON ¶ added in v0.15.0
func (s ReservationAffinity) MarshalJSON() ([]byte, error)
type ResizeNodeGroupRequest ¶ added in v0.106.0
type ResizeNodeGroupRequest struct { // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN // decommissioning. Graceful decommissioning // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) // allows the removal of nodes from the Compute Engine node group without // interrupting jobs in progress. This timeout specifies how long to wait for // jobs in progress to finish before forcefully removing nodes (and potentially // interrupting jobs). Default timeout is 0 (for forceful decommission), and // the maximum allowed timeout is 1 day. (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only // supported on Dataproc image versions 1.2 and higher. GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` // ParentOperationId: Optional. operation id of the parent operation sending // the resize request ParentOperationId string `json:"parentOperationId,omitempty"` // RequestId: Optional. A unique ID used to identify the request. If the server // receives two ResizeNodeGroupRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) // with the same ID, the second request is ignored and the first // google.longrunning.Operation created and stored in the backend is // returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // Size: Required. The number of running instances for the node group to // maintain. The group adds or removes instances to maintain the number of // instances specified by this parameter. Size int64 `json:"size,omitempty"` // ForceSendFields is a list of field names (e.g. // "GracefulDecommissionTimeout") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields // for more details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ResizeNodeGroupRequest: A request to resize a node group.
func (ResizeNodeGroupRequest) MarshalJSON ¶ added in v0.106.0
func (s ResizeNodeGroupRequest) MarshalJSON() ([]byte, error)
type RuntimeConfig ¶ added in v0.66.0
type RuntimeConfig struct { // AutotuningConfig: Optional. Autotuning configuration of the workload. AutotuningConfig *AutotuningConfig `json:"autotuningConfig,omitempty"` // Cohort: Optional. Cohort identifier. Identifies families of the workloads // having the same shape, e.g. daily ETL jobs. Cohort string `json:"cohort,omitempty"` // ContainerImage: Optional. Optional custom container image for the job // runtime environment. If not specified, a default container image will be // used. ContainerImage string `json:"containerImage,omitempty"` // Properties: Optional. A mapping of property names to values, which are used // to configure workload execution. Properties map[string]string `json:"properties,omitempty"` // RepositoryConfig: Optional. Dependency repository configuration. RepositoryConfig *RepositoryConfig `json:"repositoryConfig,omitempty"` // Version: Optional. Version of the batch runtime. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AutotuningConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutotuningConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RuntimeConfig: Runtime configuration for a workload.
func (RuntimeConfig) MarshalJSON ¶ added in v0.66.0
func (s RuntimeConfig) MarshalJSON() ([]byte, error)
type RuntimeInfo ¶ added in v0.66.0
type RuntimeInfo struct { // ApproximateUsage: Output only. Approximate workload resource usage, // calculated when the workload completes (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)).Note: This metric // calculation may change in the future, for example, to capture cumulative // workload resource consumption during workload execution (see the Dataproc // Serverless release notes // (https://cloud.google.com/dataproc-serverless/docs/release-notes) for // announcements, changes, fixes and other Dataproc developments). ApproximateUsage *UsageMetrics `json:"approximateUsage,omitempty"` // CurrentUsage: Output only. Snapshot of current workload resource usage. CurrentUsage *UsageSnapshot `json:"currentUsage,omitempty"` // DiagnosticOutputUri: Output only. A URI pointing to the location of the // diagnostics tarball. DiagnosticOutputUri string `json:"diagnosticOutputUri,omitempty"` // Endpoints: Output only. Map of remote access endpoints (such as web // interfaces and APIs) to their URIs. Endpoints map[string]string `json:"endpoints,omitempty"` // OutputUri: Output only. A URI pointing to the location of the stdout and // stderr of the workload. OutputUri string `json:"outputUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ApproximateUsage") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApproximateUsage") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RuntimeInfo: Runtime information about workload execution.
func (RuntimeInfo) MarshalJSON ¶ added in v0.66.0
func (s RuntimeInfo) MarshalJSON() ([]byte, error)
type SecurityConfig ¶ added in v0.7.0
type SecurityConfig struct { // IdentityConfig: Optional. Identity related configuration, including service // account based secure multi-tenancy user mappings. IdentityConfig *IdentityConfig `json:"identityConfig,omitempty"` // KerberosConfig: Optional. Kerberos related configuration. KerberosConfig *KerberosConfig `json:"kerberosConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "IdentityConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IdentityConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SecurityConfig: Security related configuration, including encryption, Kerberos, etc.
func (SecurityConfig) MarshalJSON ¶ added in v0.7.0
func (s SecurityConfig) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶ added in v0.3.0
NewService creates a new Service.
type Session ¶ added in v0.139.0
type Session struct { // CreateTime: Output only. The time when the session was created. CreateTime string `json:"createTime,omitempty"` // Creator: Output only. The email address of the user who created the session. Creator string `json:"creator,omitempty"` // EnvironmentConfig: Optional. Environment configuration for the session // execution. EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` // JupyterSession: Optional. Jupyter session config. JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` // Labels: Optional. The labels to associate with the session. Label keys must // contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if // present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with a session. Labels map[string]string `json:"labels,omitempty"` // Name: Required. The resource name of the session. Name string `json:"name,omitempty"` // RuntimeConfig: Optional. Runtime configuration for the session execution. RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` // RuntimeInfo: Output only. Runtime information about session execution. RuntimeInfo *RuntimeInfo `json:"runtimeInfo,omitempty"` // SessionTemplate: Optional. The session template used by the session.Only // resource names, including project ID and location, are valid.Example: * // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] // * // projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_ // id]The template must be in the same project and Dataproc region as the // session. SessionTemplate string `json:"sessionTemplate,omitempty"` // State: Output only. A state of the session. // // Possible values: // "STATE_UNSPECIFIED" - The session state is unknown. // "CREATING" - The session is created prior to running. // "ACTIVE" - The session is running. // "TERMINATING" - The session is terminating. // "TERMINATED" - The session is terminated successfully. // "FAILED" - The session is no longer running due to an error. State string `json:"state,omitempty"` // StateHistory: Output only. Historical state information for the session. StateHistory []*SessionStateHistory `json:"stateHistory,omitempty"` // StateMessage: Output only. Session state details, such as the failure // description if the state is FAILED. StateMessage string `json:"stateMessage,omitempty"` // StateTime: Output only. The time when the session entered the current state. StateTime string `json:"stateTime,omitempty"` // User: Optional. The email address of the user who owns the session. User string `json:"user,omitempty"` // Uuid: Output only. A session UUID (Unique Universal Identifier). The service // generates this value when it creates the session. Uuid string `json:"uuid,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Session: A representation of a session.
func (Session) MarshalJSON ¶ added in v0.139.0
type SessionOperationMetadata ¶ added in v0.57.0
type SessionOperationMetadata struct { // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` // Description: Short description of the operation. Description string `json:"description,omitempty"` // DoneTime: The time when the operation was finished. DoneTime string `json:"doneTime,omitempty"` // Labels: Labels associated with the operation. Labels map[string]string `json:"labels,omitempty"` // OperationType: The operation type. // // Possible values: // "SESSION_OPERATION_TYPE_UNSPECIFIED" - Session operation type is unknown. // "CREATE" - Create Session operation type. // "TERMINATE" - Terminate Session operation type. // "DELETE" - Delete Session operation type. OperationType string `json:"operationType,omitempty"` // Session: Name of the session for the operation. Session string `json:"session,omitempty"` // SessionUuid: Session UUID for the operation. SessionUuid string `json:"sessionUuid,omitempty"` // Warnings: Warnings encountered during operation execution. Warnings []string `json:"warnings,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SessionOperationMetadata: Metadata describing the Session operation.
func (SessionOperationMetadata) MarshalJSON ¶ added in v0.57.0
func (s SessionOperationMetadata) MarshalJSON() ([]byte, error)
type SessionStateHistory ¶ added in v0.139.0
type SessionStateHistory struct { // State: Output only. The state of the session at this point in the session // history. // // Possible values: // "STATE_UNSPECIFIED" - The session state is unknown. // "CREATING" - The session is created prior to running. // "ACTIVE" - The session is running. // "TERMINATING" - The session is terminating. // "TERMINATED" - The session is terminated successfully. // "FAILED" - The session is no longer running due to an error. State string `json:"state,omitempty"` // StateMessage: Output only. Details about the state at this point in the // session history. StateMessage string `json:"stateMessage,omitempty"` // StateStartTime: Output only. The time when the session entered the // historical state. StateStartTime string `json:"stateStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SessionStateHistory: Historical state information.
func (SessionStateHistory) MarshalJSON ¶ added in v0.139.0
func (s SessionStateHistory) MarshalJSON() ([]byte, error)
type SessionTemplate ¶ added in v0.139.0
type SessionTemplate struct { // CreateTime: Output only. The time when the template was created. CreateTime string `json:"createTime,omitempty"` // Creator: Output only. The email address of the user who created the // template. Creator string `json:"creator,omitempty"` // Description: Optional. Brief description of the template. Description string `json:"description,omitempty"` // EnvironmentConfig: Optional. Environment configuration for session // execution. EnvironmentConfig *EnvironmentConfig `json:"environmentConfig,omitempty"` // JupyterSession: Optional. Jupyter session config. JupyterSession *JupyterConfig `json:"jupyterSession,omitempty"` // Labels: Optional. Labels to associate with sessions created using this // template. Label keys must contain 1 to 63 characters, and must conform to // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, // but, if present, must contain 1 to 63 characters and conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with a session. Labels map[string]string `json:"labels,omitempty"` // Name: Required. The resource name of the session template. Name string `json:"name,omitempty"` // RuntimeConfig: Optional. Runtime configuration for session execution. RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` // UpdateTime: Output only. The time the template was last updated. UpdateTime string `json:"updateTime,omitempty"` // Uuid: Output only. A session template UUID (Unique Universal Identifier). // The service generates this value when it creates the session template. Uuid string `json:"uuid,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SessionTemplate: A representation of a session template.
func (SessionTemplate) MarshalJSON ¶ added in v0.139.0
func (s SessionTemplate) MarshalJSON() ([]byte, error)
type SetIamPolicyRequest ¶
type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the resource. The // size of the policy is limited to a few 10s of KB. An empty policy is a valid // policy but certain Google Cloud services (such as Projects) might reject // them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Policy") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SetIamPolicyRequest: Request message for SetIamPolicy method.
func (SetIamPolicyRequest) MarshalJSON ¶
func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error)
type ShieldedInstanceConfig ¶ added in v0.37.0
type ShieldedInstanceConfig struct { // EnableIntegrityMonitoring: Optional. Defines whether instances have // integrity monitoring enabled. EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` // EnableSecureBoot: Optional. Defines whether instances have Secure Boot // enabled. EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` // EnableVtpm: Optional. Defines whether instances have the vTPM enabled. EnableVtpm bool `json:"enableVtpm,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableIntegrityMonitoring") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnableIntegrityMonitoring") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ShieldedInstanceConfig: Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm).
func (ShieldedInstanceConfig) MarshalJSON ¶ added in v0.37.0
func (s ShieldedInstanceConfig) MarshalJSON() ([]byte, error)
type SoftwareConfig ¶
type SoftwareConfig struct { // ImageVersion: Optional. The version of software inside the cluster. It must // be one of the supported Dataproc Versions // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), // such as "1.2" (including a subminor version, such as "1.2.29"), or the // "preview" version // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). // If unspecified, it defaults to the latest Debian version. ImageVersion string `json:"imageVersion,omitempty"` // OptionalComponents: Optional. The set of components to activate on the // cluster. // // Possible values: // "COMPONENT_UNSPECIFIED" - Unspecified component. Specifying this will // cause Cluster creation to fail. // "ANACONDA" - The Anaconda python distribution. The Anaconda component is // not supported in the Dataproc 2.0 image. The 2.0 image is pre-installed with // Miniconda. // "DOCKER" - Docker // "DRUID" - The Druid query engine. (alpha) // "FLINK" - Flink // "HBASE" - HBase. (beta) // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for accessing // HCatalog). // "HUDI" - Hudi. // "JUPYTER" - The Jupyter Notebook. // "PRESTO" - The Presto query engine. // "TRINO" - The Trino query engine. // "RANGER" - The Ranger service. // "SOLR" - The Solr service. // "ZEPPELIN" - The Zeppelin notebook. // "ZOOKEEPER" - The Zookeeper service. OptionalComponents []string `json:"optionalComponents,omitempty"` // Properties: Optional. The properties to set on daemon config files.Property // keys are specified in prefix:property format, for example // core:hadoop.tmp.dir. The following are supported prefixes and their // mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml // distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: // mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: // yarn-site.xmlFor more information, see Cluster properties // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ImageVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SoftwareConfig: Specifies the selection and config of software inside the cluster.
func (SoftwareConfig) MarshalJSON ¶
func (s SoftwareConfig) MarshalJSON() ([]byte, error)
type SparkBatch ¶ added in v0.66.0
type SparkBatch struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. 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 that can be set as batch properties, such as --conf, since a // collision can occur that causes an incorrect batch submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be placed in the working directory // of each executor. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: Optional. HCFS URIs of jar files to add to the classpath of the // Spark driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // MainClass: Optional. The name of the driver main class. The jar file that // contains the class must be in the classpath or specified in jar_file_uris. MainClass string `json:"mainClass,omitempty"` // MainJarFileUri: Optional. The HCFS URI of the jar file that contains the // main class. MainJarFileUri string `json:"mainJarFileUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkBatch: A configuration for running an Apache Spark (https://spark.apache.org/) batch workload.
func (SparkBatch) MarshalJSON ¶ added in v0.66.0
func (s SparkBatch) MarshalJSON() ([]byte, error)
type SparkHistoryServerConfig ¶ added in v0.66.0
type SparkHistoryServerConfig struct { // DataprocCluster: Optional. Resource name of an existing Dataproc Cluster to // act as a Spark History Server for the workload.Example: // projects/[project_id]/regions/[region]/clusters/[cluster_name] DataprocCluster string `json:"dataprocCluster,omitempty"` // ForceSendFields is a list of field names (e.g. "DataprocCluster") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataprocCluster") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkHistoryServerConfig: Spark History Server configuration for the workload.
func (SparkHistoryServerConfig) MarshalJSON ¶ added in v0.66.0
func (s SparkHistoryServerConfig) MarshalJSON() ([]byte, error)
type SparkJob ¶
type SparkJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. 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 placed in the working directory // of each executor. 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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,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 // SparkJob.jar_file_uris. MainClass string `json:"mainClass,omitempty"` // MainJarFileUri: The 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 Dataproc // API might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkJob: A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN.
func (SparkJob) MarshalJSON ¶
type SparkRBatch ¶ added in v0.66.0
type SparkRBatch struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. Supported file types: .jar, .tar, // .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: Optional. The arguments to pass to the Spark driver. Do not include // arguments that can be set as batch properties, such as --conf, since a // collision can occur that causes an incorrect batch submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be placed in the working directory // of each executor. FileUris []string `json:"fileUris,omitempty"` // MainRFileUri: Required. The HCFS URI of the main R file to use as the // driver. Must be a .R or .r file. MainRFileUri string `json:"mainRFileUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkRBatch: A configuration for running an Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) batch workload.
func (SparkRBatch) MarshalJSON ¶ added in v0.66.0
func (s SparkRBatch) MarshalJSON() ([]byte, error)
type SparkRJob ¶ added in v0.15.0
type SparkRJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. 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 placed in the working directory // of each executor. Useful for naively parallel tasks. FileUris []string `json:"fileUris,omitempty"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // MainRFileUri: Required. The HCFS URI of the main R file to use as the // driver. Must be a .R file. MainRFileUri string `json:"mainRFileUri,omitempty"` // Properties: Optional. A mapping of property names to values, used to // configure SparkR. Properties that conflict with values set by the Dataproc // API might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ArchiveUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkRJob: A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN.
func (SparkRJob) MarshalJSON ¶ added in v0.15.0
type SparkSqlBatch ¶ added in v0.66.0
type SparkSqlBatch struct { // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark // CLASSPATH. JarFileUris []string `json:"jarFileUris,omitempty"` // QueryFileUri: Required. The HCFS URI of the script that contains Spark SQL // queries to execute. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryVariables: Optional. Mapping of query variable names to values // (equivalent to the Spark SQL command: SET name="value";). QueryVariables map[string]string `json:"queryVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "JarFileUris") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "JarFileUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkSqlBatch: A configuration for running Apache Spark SQL (https://spark.apache.org/sql/) queries as a batch workload.
func (SparkSqlBatch) MarshalJSON ¶ added in v0.66.0
func (s SparkSqlBatch) MarshalJSON() ([]byte, error)
type SparkSqlJob ¶
type SparkSqlJob struct { // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark // CLASSPATH. JarFileUris []string `json:"jarFileUris,omitempty"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,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 Dataproc API might 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "JarFileUris") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkSqlJob: A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries.
func (SparkSqlJob) MarshalJSON ¶
func (s SparkSqlJob) MarshalJSON() ([]byte, error)
type SparkStandaloneAutoscalingConfig ¶ added in v0.60.0
type SparkStandaloneAutoscalingConfig struct { // GracefulDecommissionTimeout: Required. Timeout for Spark graceful // decommissioning of spark workers. Specifies the duration to wait for spark // worker to complete spark decommissioning tasks before forcefully removing // workers. Only applicable to downscaling operations.Bounds: 0s, 1d. GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` // RemoveOnlyIdleWorkers: Optional. Remove only idle workers when scaling down // cluster RemoveOnlyIdleWorkers bool `json:"removeOnlyIdleWorkers,omitempty"` // ScaleDownFactor: Required. Fraction of required executors to remove from // Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling // down so that there are no more executors for the Spark Job.(more aggressive // scaling). A scale-down factor closer to 0 will result in a smaller magnitude // of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0. ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a // fraction of total cluster size before scaling occurs. For example, in a // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. // Default: 0.0. ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` // ScaleUpFactor: Required. Fraction of required workers to add to Spark // Standalone clusters. A scale-up factor of 1.0 will result in scaling up so // that there are no more required workers for the Spark Job (more aggressive // scaling). A scale-up factor closer to 0 will result in a smaller magnitude // of scaling up (less aggressive scaling).Bounds: 0.0, 1.0. ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction // of total cluster size before scaling occurs. For example, in a 20-worker // cluster, a threshold of 0.1 means the autoscaler must recommend at least a // 2-worker scale-up for the cluster to scale. A threshold of 0 means the // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. // Default: 0.0. ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` // ForceSendFields is a list of field names (e.g. // "GracefulDecommissionTimeout") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields // for more details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SparkStandaloneAutoscalingConfig: Basic autoscaling configurations for Spark Standalone.
func (SparkStandaloneAutoscalingConfig) MarshalJSON ¶ added in v0.60.0
func (s SparkStandaloneAutoscalingConfig) MarshalJSON() ([]byte, error)
func (*SparkStandaloneAutoscalingConfig) UnmarshalJSON ¶ added in v0.60.0
func (s *SparkStandaloneAutoscalingConfig) UnmarshalJSON(data []byte) error
type StartClusterRequest ¶ added in v0.40.0
type StartClusterRequest struct { // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` // RequestId: Optional. A unique ID used to identify the request. If the server // receives two StartClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s // with the same id, then the second request will be ignored and the first // google.longrunning.Operation created and stored in the backend is // returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StartClusterRequest: A request to start a cluster.
func (StartClusterRequest) MarshalJSON ¶ added in v0.40.0
func (s StartClusterRequest) MarshalJSON() ([]byte, error)
type StartupConfig ¶ added in v0.144.0
type StartupConfig struct { // RequiredRegistrationFraction: Optional. The config setting to enable cluster // creation/ updation to be successful only after // required_registration_fraction of instances are up and running. This // configuration is applicable to only secondary workers for now. The cluster // will fail if required_registration_fraction of instances are not available. // This will include instance creation, agent registration, and service // registration (if enabled). RequiredRegistrationFraction float64 `json:"requiredRegistrationFraction,omitempty"` // ForceSendFields is a list of field names (e.g. // "RequiredRegistrationFraction") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields // for more details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequiredRegistrationFraction") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StartupConfig: Configuration to handle the startup of instances during cluster create and update process.
func (StartupConfig) MarshalJSON ¶ added in v0.144.0
func (s StartupConfig) MarshalJSON() ([]byte, error)
func (*StartupConfig) UnmarshalJSON ¶ added in v0.144.0
func (s *StartupConfig) UnmarshalJSON(data []byte) error
type StateHistory ¶ added in v0.66.0
type StateHistory struct { // State: Output only. The state of the batch at this point in history. // // Possible values: // "STATE_UNSPECIFIED" - The batch state is unknown. // "PENDING" - The batch is created before running. // "RUNNING" - The batch is running. // "CANCELLING" - The batch is cancelling. // "CANCELLED" - The batch cancellation was successful. // "SUCCEEDED" - The batch completed successfully. // "FAILED" - The batch is no longer running due to an error. State string `json:"state,omitempty"` // StateMessage: Output only. Details about the state at this point in history. StateMessage string `json:"stateMessage,omitempty"` // StateStartTime: Output only. The time when the batch entered the historical // state. StateStartTime string `json:"stateStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StateHistory: Historical state information.
func (StateHistory) MarshalJSON ¶ added in v0.66.0
func (s StateHistory) 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 is a common // set of message types for APIs to use. Details []googleapi.RawMessage `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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []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). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type StopClusterRequest ¶ added in v0.40.0
type StopClusterRequest struct { // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` // RequestId: Optional. A unique ID used to identify the request. If the server // receives two StopClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s // with the same id, then the second request will be ignored and the first // google.longrunning.Operation created and stored in the backend is // returned.Recommendation: Set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUuid") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterUuid") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StopClusterRequest: A request to stop a cluster.
func (StopClusterRequest) MarshalJSON ¶ added in v0.40.0
func (s StopClusterRequest) MarshalJSON() ([]byte, error)
type SubmitJobRequest ¶
type SubmitJobRequest struct { // Job: Required. The job resource. Job *Job `json:"job,omitempty"` // RequestId: Optional. A unique id used to identify the request. If the server // receives two SubmitJobRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s // with the same id, then the second request will be ignored and the first Job // created and stored in the backend is returned.It is recommended to always // set this value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Job") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Job") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
SubmitJobRequest: A request to submit a job.
func (SubmitJobRequest) MarshalJSON ¶
func (s SubmitJobRequest) MarshalJSON() ([]byte, error)
type TemplateParameter ¶
type TemplateParameter struct { // Description: Optional. Brief description of the parameter. Must not exceed // 1024 characters. Description string `json:"description,omitempty"` // Fields: Required. Paths to all fields that the parameter replaces. A field // is allowed to appear in at most one parameter's list of field paths.A field // path is similar in syntax to a google.protobuf.FieldMask. For example, a // field path that references the zone field of a workflow template's cluster // selector would be specified as placement.clusterSelector.zone.Also, field // paths can reference fields using the following syntax: Values in maps can be // referenced by key: labels'key' placement.clusterSelector.clusterLabels'key' // placement.managedCluster.labels'key' // placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key' Jobs // in the jobs list can be referenced by step-id: // jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri // jobs'step-id'.pySparkJob.mainPythonFileUri // jobs'step-id'.hadoopJob.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 // jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 // Items in repeated fields can be referenced by a zero-based index: // jobs'step-id'.sparkJob.args0 Other examples: // jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 // jobs'step-id'.hiveJob.scriptVariables'key' // jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt may // not be possible to parameterize maps and repeated fields in their entirety // since only individual map values and individual items in repeated fields can // be referenced. For example, the following field paths are invalid: // placement.clusterSelector.clusterLabels jobs'step-id'.sparkJob.args Fields []string `json:"fields,omitempty"` // Name: Required. Parameter name. The parameter name is used as the key, and // paired with the parameter value, which are passed to the template when the // template is instantiated. The name must contain only capital letters (A-Z), // numbers (0-9), and underscores (_), and must not start with a number. The // maximum length is 40 characters. Name string `json:"name,omitempty"` // Validation: Optional. Validation rules to be applied to this parameter's // value. Validation *ParameterValidation `json:"validation,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TemplateParameter: A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
func (TemplateParameter) MarshalJSON ¶
func (s TemplateParameter) MarshalJSON() ([]byte, error)
type TerminateSessionRequest ¶ added in v0.139.0
type TerminateSessionRequest struct { // RequestId: Optional. A unique ID used to identify the request. If the // service receives two TerminateSessionRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s // with the same ID, the second request is ignored.Recommendation: Set this // value to a UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TerminateSessionRequest: A request to terminate an interactive session.
func (TerminateSessionRequest) MarshalJSON ¶ added in v0.139.0
func (s TerminateSessionRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsRequest ¶
type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the resource. Permissions // with wildcards (such as * or storage.*) are not allowed. For more // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TestIamPermissionsRequest: Request message for TestIamPermissions method.
func (TestIamPermissionsRequest) MarshalJSON ¶
func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsResponse ¶
type TestIamPermissionsResponse struct { // Permissions: A subset of TestPermissionsRequest.permissions that the caller // is allowed. Permissions []string `json:"permissions,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TestIamPermissionsResponse: Response message for TestIamPermissions method.
func (TestIamPermissionsResponse) MarshalJSON ¶
func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error)
type TrinoJob ¶ added in v0.96.0
type TrinoJob struct { // ClientTags: Optional. Trino client tags to attach to this query ClientTags []string `json:"clientTags,omitempty"` // 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"` // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` // OutputFormat: Optional. The format in which query output will be displayed. // See the Trino documentation for supported output formats OutputFormat string `json:"outputFormat,omitempty"` // Properties: Optional. A mapping of property names to values. Used to set // Trino session properties // (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the // --session flag in the Trino CLI 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"` // ForceSendFields is a list of field names (e.g. "ClientTags") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClientTags") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TrinoJob: A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster.
func (TrinoJob) MarshalJSON ¶ added in v0.96.0
type UsageMetrics ¶ added in v0.102.0
type UsageMetrics struct { // AcceleratorType: Optional. Accelerator type being used, if any AcceleratorType string `json:"acceleratorType,omitempty"` // MilliAcceleratorSeconds: Optional. Accelerator usage in (milliAccelerator x // seconds) (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliAcceleratorSeconds int64 `json:"milliAcceleratorSeconds,omitempty,string"` // MilliDcuSeconds: Optional. DCU (Dataproc Compute Units) usage in (milliDCU x // seconds) (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliDcuSeconds int64 `json:"milliDcuSeconds,omitempty,string"` // ShuffleStorageGbSeconds: Optional. Shuffle storage usage in (GB x seconds) // (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). ShuffleStorageGbSeconds int64 `json:"shuffleStorageGbSeconds,omitempty,string"` // ForceSendFields is a list of field names (e.g. "AcceleratorType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceleratorType") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
UsageMetrics: Usage metrics represent approximate total resources consumed by a workload.
func (UsageMetrics) MarshalJSON ¶ added in v0.102.0
func (s UsageMetrics) MarshalJSON() ([]byte, error)
type UsageSnapshot ¶ added in v0.106.0
type UsageSnapshot struct { // AcceleratorType: Optional. Accelerator type being used, if any AcceleratorType string `json:"acceleratorType,omitempty"` // MilliAccelerator: Optional. Milli (one-thousandth) accelerator. (see // Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)) MilliAccelerator int64 `json:"milliAccelerator,omitempty,string"` // MilliDcu: Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) // (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliDcu int64 `json:"milliDcu,omitempty,string"` // MilliDcuPremium: Optional. Milli (one-thousandth) Dataproc Compute Units // (DCUs) charged at premium tier (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliDcuPremium int64 `json:"milliDcuPremium,omitempty,string"` // ShuffleStorageGb: Optional. Shuffle Storage in gigabytes (GB). (see Dataproc // Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)) ShuffleStorageGb int64 `json:"shuffleStorageGb,omitempty,string"` // ShuffleStorageGbPremium: Optional. Shuffle Storage in gigabytes (GB) charged // at premium tier. (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)) ShuffleStorageGbPremium int64 `json:"shuffleStorageGbPremium,omitempty,string"` // SnapshotTime: Optional. The timestamp of the usage snapshot. SnapshotTime string `json:"snapshotTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceleratorType") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
UsageSnapshot: The usage snapshot represents the resources consumed by a workload at a specified time.
func (UsageSnapshot) MarshalJSON ¶ added in v0.106.0
func (s UsageSnapshot) MarshalJSON() ([]byte, error)
type ValueValidation ¶
type ValueValidation struct { // Values: Required. List of allowed values for the parameter. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Values") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Values") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ValueValidation: Validation based on a list of allowed values.
func (ValueValidation) MarshalJSON ¶
func (s ValueValidation) MarshalJSON() ([]byte, error)
type VirtualClusterConfig ¶ added in v0.75.0
type VirtualClusterConfig struct { // AuxiliaryServicesConfig: Optional. Configuration of auxiliary services used // by this cluster. AuxiliaryServicesConfig *AuxiliaryServicesConfig `json:"auxiliaryServicesConfig,omitempty"` // KubernetesClusterConfig: Required. The configuration for running the // Dataproc cluster on Kubernetes. KubernetesClusterConfig *KubernetesClusterConfig `json:"kubernetesClusterConfig,omitempty"` // StagingBucket: Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. If you do not // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage // location (US, ASIA, or EU) for your cluster's staging bucket according to // the Compute Engine zone where your cluster is deployed, and then create and // manage this project-level, per-location bucket (see Dataproc staging and // temp buckets // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). // This field requires a Cloud Storage bucket name, not a gs://... URI to a // Cloud Storage bucket. StagingBucket string `json:"stagingBucket,omitempty"` // ForceSendFields is a list of field names (e.g. "AuxiliaryServicesConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuxiliaryServicesConfig") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
VirtualClusterConfig: The Dataproc cluster config for a cluster that does not directly control the underlying compute resources, such as a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
func (VirtualClusterConfig) MarshalJSON ¶ added in v0.75.0
func (s VirtualClusterConfig) MarshalJSON() ([]byte, error)
type WorkflowGraph ¶
type WorkflowGraph struct { // Nodes: Output only. The workflow nodes. Nodes []*WorkflowNode `json:"nodes,omitempty"` // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Nodes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WorkflowGraph: The workflow graph.
func (WorkflowGraph) MarshalJSON ¶
func (s WorkflowGraph) MarshalJSON() ([]byte, error)
type WorkflowMetadata ¶
type WorkflowMetadata struct { // ClusterName: Output only. The name of the target cluster. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: Output only. The UUID of target cluster. ClusterUuid string `json:"clusterUuid,omitempty"` // CreateCluster: Output only. The create cluster operation metadata. CreateCluster *ClusterOperation `json:"createCluster,omitempty"` // DagEndTime: Output only. DAG end time, only set for workflows with // dag_timeout when DAG ends. DagEndTime string `json:"dagEndTime,omitempty"` // DagStartTime: Output only. DAG start time, only set for workflows with // dag_timeout when DAG begins. DagStartTime string `json:"dagStartTime,omitempty"` // DagTimeout: Output only. The timeout duration for the DAG of jobs, expressed // in seconds (see JSON representation of duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). DagTimeout string `json:"dagTimeout,omitempty"` // DeleteCluster: Output only. The delete cluster operation metadata. DeleteCluster *ClusterOperation `json:"deleteCluster,omitempty"` // EndTime: Output only. Workflow end time. EndTime string `json:"endTime,omitempty"` // Graph: Output only. The workflow graph. Graph *WorkflowGraph `json:"graph,omitempty"` // Parameters: Map from parameter names to values that were used for those // parameters. Parameters map[string]string `json:"parameters,omitempty"` // StartTime: Output only. Workflow start time. StartTime string `json:"startTime,omitempty"` // State: Output only. The workflow state. // // Possible values: // "UNKNOWN" - Unused. // "PENDING" - The operation has been created. // "RUNNING" - The operation is running. // "DONE" - The operation is done; either cancelled or completed. State string `json:"state,omitempty"` // Template: Output only. The resource name of the workflow template as // described in https://cloud.google.com/apis/design/resource_names. For // projects.regions.workflowTemplates, the resource name of the template has // the following format: // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For // projects.locations.workflowTemplates, the resource name of the template has // the following format: // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} Template string `json:"template,omitempty"` // Version: Output only. The version of template at the time of workflow // instantiation. Version int64 `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WorkflowMetadata: A Dataproc workflow template resource.
func (WorkflowMetadata) MarshalJSON ¶
func (s WorkflowMetadata) MarshalJSON() ([]byte, error)
type WorkflowNode ¶
type WorkflowNode struct { // Error: Output only. The error detail. Error string `json:"error,omitempty"` // JobId: Output only. The job id; populated after the node enters RUNNING // state. JobId string `json:"jobId,omitempty"` // PrerequisiteStepIds: Output only. Node's prerequisite nodes. PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` // State: Output only. The node state. // // Possible values: // "NODE_STATE_UNSPECIFIED" - State is unspecified. // "BLOCKED" - The node is awaiting prerequisite node to finish. // "RUNNABLE" - The node is runnable but not running. // "RUNNING" - The node is running. // "COMPLETED" - The node completed successfully. // "FAILED" - The node failed. A node can be marked FAILED because its // ancestor or peer failed. State string `json:"state,omitempty"` // StepId: Output only. The name of the node. StepId string `json:"stepId,omitempty"` // ForceSendFields is a list of field names (e.g. "Error") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Error") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WorkflowNode: The workflow node.
func (WorkflowNode) MarshalJSON ¶
func (s WorkflowNode) MarshalJSON() ([]byte, error)
type WorkflowTemplate ¶
type WorkflowTemplate struct { // CreateTime: Output only. The time template was created. CreateTime string `json:"createTime,omitempty"` // DagTimeout: Optional. Timeout duration for the DAG of jobs, expressed in // seconds (see JSON representation of duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). The // timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). // The timer begins when the first job is submitted. If the workflow is running // at the end of the timeout period, any remaining jobs are cancelled, the // workflow is ended, and if the workflow was running on a managed cluster, the // cluster is deleted. DagTimeout string `json:"dagTimeout,omitempty"` // EncryptionConfig: Optional. Encryption settings for encrypting workflow // template job arguments. EncryptionConfig *GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig `json:"encryptionConfig,omitempty"` Id string `json:"id,omitempty"` // Jobs: Required. The Directed Acyclic Graph of Jobs to submit. Jobs []*OrderedJob `json:"jobs,omitempty"` // Labels: Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow // instance.Label keys must contain 1 to 63 characters, and must conform to RFC // 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, // if present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be // associated with a template. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource name of the workflow template, as described // in https://cloud.google.com/apis/design/resource_names. For // projects.regions.workflowTemplates, the resource name of the template has // the following format: // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For // projects.locations.workflowTemplates, the resource name of the template has // the following format: // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} Name string `json:"name,omitempty"` // Parameters: Optional. Template parameters whose values are substituted into // the template. Values for parameters must be provided when the template is // instantiated. Parameters []*TemplateParameter `json:"parameters,omitempty"` // Placement: Required. WorkflowTemplate scheduling information. Placement *WorkflowTemplatePlacement `json:"placement,omitempty"` // UpdateTime: Output only. The time template was last updated. UpdateTime string `json:"updateTime,omitempty"` // Version: Optional. Used to perform a consistent read-modify-write.This field // should be left blank for a CreateWorkflowTemplate request. It is required // for an UpdateWorkflowTemplate request, and must match the current server // version. A typical update template flow would fetch the current template // with a GetWorkflowTemplate request, which will return the current template // with the version field filled in with the current server version. The user // updates other fields in the template, then returns it as part of the // UpdateWorkflowTemplate request. Version int64 `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WorkflowTemplate: A Dataproc workflow template resource.
func (WorkflowTemplate) MarshalJSON ¶
func (s WorkflowTemplate) MarshalJSON() ([]byte, error)
type WorkflowTemplatePlacement ¶
type WorkflowTemplatePlacement struct { // ClusterSelector: Optional. A selector that chooses target cluster for jobs // based on metadata.The selector is evaluated at the time each job is // submitted. ClusterSelector *ClusterSelector `json:"clusterSelector,omitempty"` // ManagedCluster: A cluster that is managed by the workflow. ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterSelector") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClusterSelector") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WorkflowTemplatePlacement: Specifies workflow execution target.Either managed_cluster or cluster_selector is required.
func (WorkflowTemplatePlacement) MarshalJSON ¶
func (s WorkflowTemplatePlacement) 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" - Status is unspecified. // "NEW" - Status is NEW. // "NEW_SAVING" - Status is NEW_SAVING. // "SUBMITTED" - Status is SUBMITTED. // "ACCEPTED" - Status is ACCEPTED. // "RUNNING" - Status is RUNNING. // "FINISHED" - Status is FINISHED. // "FAILED" - Status is FAILED. // "KILLED" - Status is 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
YarnApplication: A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
func (YarnApplication) MarshalJSON ¶
func (s YarnApplication) MarshalJSON() ([]byte, error)
func (*YarnApplication) UnmarshalJSON ¶
func (s *YarnApplication) UnmarshalJSON(data []byte) error