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/
Creating a client ¶
Usage example:
import "google.golang.org/api/dataproc/v1beta2" ... 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 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 option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) dataprocService, err := dataproc.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AcceleratorConfig
- type AutoscalingConfig
- type AutoscalingPolicy
- type BasicAutoscalingAlgorithm
- type BasicYarnAutoscalingConfig
- type Binding
- type CancelJobRequest
- type Cluster
- type ClusterConfig
- type ClusterMetrics
- type ClusterOperation
- type ClusterOperationMetadata
- type ClusterOperationStatus
- type ClusterSelector
- type ClusterStatus
- type DiagnoseClusterRequest
- type DiagnoseClusterResults
- type DiskConfig
- type Empty
- type EncryptionConfig
- type EndpointConfig
- type Expr
- type GceClusterConfig
- type GetIamPolicyRequest
- type GetPolicyOptions
- type HadoopJob
- type HiveJob
- type InstanceGroupAutoscalingPolicyConfig
- type InstanceGroupConfig
- type InstantiateWorkflowTemplateRequest
- type Job
- type JobPlacement
- type JobReference
- type JobScheduling
- type JobStatus
- type KerberosConfig
- type LifecycleConfig
- type ListAutoscalingPoliciesResponse
- type ListClustersResponse
- type ListJobsResponse
- type ListOperationsResponse
- type ListWorkflowTemplatesResponse
- type LoggingConfig
- type ManagedCluster
- type ManagedGroupConfig
- type NodeInitializationAction
- type Operation
- type OrderedJob
- type ParameterValidation
- 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
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
- 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) *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 ProjectsLocationsService
- 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
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
- 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) InstanceId(instanceId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
- 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) *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
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
- 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) *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) 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) 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
- func (c *ProjectsRegionsClustersGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetIamPolicyCall
- func (c *ProjectsRegionsClustersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsClustersGetIamPolicyCall
- 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 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 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) *ProjectsRegionsClustersGetIamPolicyCall
- 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) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsClustersSetIamPolicyCall
- 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 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
- func (c *ProjectsRegionsJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetIamPolicyCall
- func (c *ProjectsRegionsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsJobsGetIamPolicyCall
- 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) *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) 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 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
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetIamPolicyCall
- func (c *ProjectsRegionsOperationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsOperationsGetIamPolicyCall
- 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) *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
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
- 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) InstanceId(instanceId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
- 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) *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 PySparkJob
- type QueryList
- type RegexValidation
- type ReservationAffinity
- type SecurityConfig
- type Service
- type SetIamPolicyRequest
- type SoftwareConfig
- type SparkJob
- type SparkRJob
- type SparkSqlJob
- type Status
- type SubmitJobRequest
- type TemplateParameter
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type ValueValidation
- type WorkflowGraph
- type WorkflowMetadata
- type WorkflowNode
- type WorkflowTemplate
- type WorkflowTemplatePlacement
- type YarnApplication
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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 AcceleratorTypesExamples * // https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, // nvidia-tesla-k80. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AcceleratorConfig: Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
func (*AcceleratorConfig) MarshalJSON ¶
func (s *AcceleratorConfig) MarshalJSON() ([]byte, error)
type AutoscalingConfig ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AutoscalingConfig: Autoscaling Policy config associated with the cluster.
func (*AutoscalingConfig) MarshalJSON ¶
func (s *AutoscalingConfig) MarshalJSON() ([]byte, error)
type AutoscalingPolicy ¶
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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AutoscalingPolicy: Describes an autoscaling policy for Dataproc cluster autoscaler.
func (*AutoscalingPolicy) MarshalJSON ¶
func (s *AutoscalingPolicy) MarshalJSON() ([]byte, error)
type BasicAutoscalingAlgorithm ¶
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"` // YarnConfig: Required. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BasicAutoscalingAlgorithm: Basic algorithm for autoscaling.
func (*BasicAutoscalingAlgorithm) MarshalJSON ¶
func (s *BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error)
type BasicYarnAutoscalingConfig ¶
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 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.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 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).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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
BasicYarnAutoscalingConfig: Basic autoscaling configurations for YARN.
func (*BasicYarnAutoscalingConfig) MarshalJSON ¶
func (s *BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error)
func (*BasicYarnAutoscalingConfig) UnmarshalJSON ¶
func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error
type Binding ¶
type Binding struct { // Condition: The condition that is associated with this binding. NOTE: // An unsatisfied condition will not allow user access via current // binding. Different bindings, including their conditions, are examined // independently. Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud // Platform 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. // user:{emailid}: An email address that represents a specific Google // account. For example, alice@example.com . // serviceAccount:{emailid}: An email address that represents a service // account. For example, // my-other-app@appspot.gserviceaccount.com. // group:{emailid}: An email address that represents a Google group. // For example, // admins@example.com. // 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. // domain:{domain}: The G Suite domain (primary) that represents all the // users of that domain. For example, google.com or example.com. Members []string `json:"members,omitempty"` // Role: Role that is assigned to members. For example, roles/viewer, // roles/editor, or roles/owner. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Binding: Associates members 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. Cluster names within a // project must be unique. Names of deleted clusters 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: Required. The cluster config. Note that Dataproc may set // default values, and values may change when clusters are updated. 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"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Cluster: Describes the identifying information, config, and status of a cluster of Compute Engine instances.
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"` // 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 bucket). ConfigBucket string `json:"configBucket,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"` // 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 <code>role</code> // 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/v1beta2/instanc // e/attributes/dataproc-role) // if [[ "${ROLE}" == 'Master' ]]; then // ... master specific actions ... // else // ... worker specific actions ... // fi // InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` // LifecycleConfig: Optional. The config setting for auto delete cluster // schedule. LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"` // MasterConfig: Optional. The Compute Engine config settings for the // master instance in a cluster. MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"` // SecondaryWorkerConfig: Optional. The Compute Engine config settings // for additional worker instances in a cluster. SecondaryWorkerConfig *InstanceGroupConfig `json:"secondaryWorkerConfig,omitempty"` // SecurityConfig: Optional. Security related configuration. SecurityConfig *SecurityConfig `json:"securityConfig,omitempty"` // SoftwareConfig: Optional. The config settings for software inside the // cluster. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` // WorkerConfig: Optional. The Compute Engine config settings for worker // instances in a cluster. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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: The 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { // 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. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: Output only. Optional 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. // "ERROR" - The cluster encountered an error. It is not ready for // use. // "DELETING" - The cluster is being deleted. It cannot be used. // "UPDATING" - The cluster is being updated. It continues to accept // and process jobs. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ClusterStatus: The status of a cluster and its instances.
func (*ClusterStatus) MarshalJSON ¶
func (s *ClusterStatus) MarshalJSON() ([]byte, error)
type DiagnoseClusterRequest ¶
type DiagnoseClusterRequest struct { }
DiagnoseClusterRequest: A request to collect cluster diagnostic information.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DiagnoseClusterResults: The location of diagnostic output.
func (*DiagnoseClusterResults) MarshalJSON ¶
func (s *DiagnoseClusterResults) MarshalJSON() ([]byte, error)
type DiskConfig ¶
type DiskConfig struct { // 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-ssd" (Persistent Disk Solid State // Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). BootDiskType string `json:"bootDiskType,omitempty"` // NumLocalSsds: Number of attached SSDs, from 0 to 4 (default is 0). If // SSDs are not attached, the boot disk is used to store runtime logs // and HDFS (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. NumLocalSsds int64 `json:"numLocalSsds,omitempty"` // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BootDiskSizeGb") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.
type EncryptionConfig ¶
type EncryptionConfig struct { // GcePdKmsKeyName: Optional. The Cloud KMS key name to use for PD disk // encryption for all instances in the cluster. GcePdKmsKeyName string `json:"gcePdKmsKeyName,omitempty"` // ForceSendFields is a list of field names (e.g. "GcePdKmsKeyName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EncryptionConfig: Encryption settings for the cluster.
func (*EncryptionConfig) MarshalJSON ¶
func (s *EncryptionConfig) MarshalJSON() ([]byte, error)
type EndpointConfig ¶
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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EndpointConfig: Endpoint config for this cluster
func (*EndpointConfig) MarshalJSON ¶
func (s *EndpointConfig) MarshalJSON() ([]byte, error)
type Expr ¶
type Expr struct { // Description: An 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.The application context of the containing // message determines which well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` // Location: An 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: An 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Expr: Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
func (*Expr) MarshalJSON ¶
type GceClusterConfig ¶
type GceClusterConfig struct { // InternalIpOnly: Optional. If true, all instances in the cluster will // only have internal IP addresses. By default, clusters are not // restricted to internal IP addresses, and will have ephemeral external // IP addresses assigned to each instance. This internal_ip_only // restriction can only be enabled for subnetwork enabled networks, and // all off-cluster dependencies must be configured to be accessible // without external IP addresses. InternalIpOnly bool `json:"internalIpOnly,omitempty"` // Metadata: The Compute Engine metadata entries to add to all instances // (see Project and instance metadata // (https://cloud.google.com/compute/docs/storing-retrieving-metadata#pro // ject_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 for more information).A full // URL, partial URI, or short name are valid. // Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/ // regions/global/default // projects/[project_id]/regions/global/default // de // fault NetworkUri string `json:"networkUri,omitempty"` // ReservationAffinity: Optional. Reservation Affinity for consuming // Zonal reservation. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` // ServiceAccount: Optional. The Dataproc service account (also see VM // Data Plane identity) used by Dataproc cluster VM instances to access // Google Cloud Platform services.If not specified, the Compute Engine // 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.goog // leapis.com/auth/logging.writeIf no scopes are specified, the // following defaults are also // provided: // https://www.googleapis.com/auth/bigquery // https://www.googlea // pis.com/auth/bigtable.admin.table // https://www.googleapis.com/auth/bigt // able.data // https://www.googleapis.com/auth/devstorage.full_control ServiceAccountScopes []string `json:"serviceAccountScopes,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/us-east1/subnetworks/sub0 // projects/[project_id]/regions/us-eas // t1/subnetworks/sub0 // sub0 SubnetworkUri string `json:"subnetworkUri,omitempty"` // Tags: The Compute Engine tags to add to all instances (see Tagging // instances). Tags []string `json:"tags,omitempty"` // ZoneUri: Optional. The zone where the Compute Engine cluster will be // located. On a create request, it is required in the "global" region. // If omitted in a non-global Dataproc region, the service will pick a // zone in the corresponding 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] // us-central1-f ZoneUri string `json:"zoneUri,omitempty"` // ForceSendFields is a list of field names (e.g. "InternalIpOnly") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InternalIpOnly") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. This field is only used by Cloud IAM. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GetIamPolicyRequest: Request message for GetIamPolicy method.
func (*GetIamPolicyRequest) MarshalJSON ¶
func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error)
type GetPolicyOptions ¶
type GetPolicyOptions struct { // RequestedPolicyVersion: Optional. The policy format version to be // returned.Valid values are 0, 1, and 3. Requests specifying an invalid // value will be rejected.Requests for policies with any conditional // bindings must specify version 3. Policies without any conditional // bindings may specify any valid value or leave the field unset. 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
func (*GetPolicyOptions) MarshalJSON ¶
func (s *GetPolicyOptions) MarshalJSON() ([]byte, error)
type HadoopJob ¶
type HadoopJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the // working directory of Hadoop drivers and tasks. Supported file types: // .jar, .tar, .tar.gz, .tgz, or .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as -libjars or -Dfoo=bar, that can be set as job // properties, since a collision may occur that causes an incorrect job // submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS (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 may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site and classes in user code. Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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/YA RN.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 may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and // classes in user code. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains Hive queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Hive command: SET name="value";). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HiveJob: A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.
func (*HiveJob) MarshalJSON ¶
type InstanceGroupAutoscalingPolicyConfig ¶
type InstanceGroupAutoscalingPolicyConfig struct { // MaxInstances: Optional. 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, // ). Required. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstanceGroupAutoscalingPolicyConfig: Configuration for the size bounds of an instance group, including its proportional size to other groups.
func (*InstanceGroupAutoscalingPolicyConfig) MarshalJSON ¶
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. It can be specified or may be inferred from // SoftwareConfig.image_version. ImageUri string `json:"imageUri,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"` // IsPreemptible: Optional. 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/us-east1-a/machineTypes/n1-standard-2 // projects/[project_id]/zone // s/us-east1-a/machineTypes/n1-standard-2 // n1-standard-2Auto Zone Exception: If you are using the Dataproc 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: Specifies the minimum cpu platform for the Instance // Group. See Dataproc→Minimum CPU Platform. MinCpuPlatform string `json:"minCpuPlatform,omitempty"` // NumInstances: Optional. The number of VM instances in the instance // group. For master instance groups, must be set to 1. NumInstances int64 `json:"numInstances,omitempty"` // ForceSendFields is a list of field names (e.g. "Accelerators") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 InstantiateWorkflowTemplateRequest ¶
type InstantiateWorkflowTemplateRequest struct { // InstanceId: Deprecated. Please use request_id field instead. InstanceId string `json:"instanceId,omitempty"` // Parameters: Optional. Map from parameter names to values that should // be used for those parameters. Values may not exceed 100 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. "InstanceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstantiateWorkflowTemplateRequest: A request to instantiate a workflow template.
func (*InstantiateWorkflowTemplateRequest) MarshalJSON ¶
func (s *InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error)
type Job ¶
type Job struct { // DriverControlFilesUri: Output only. If present, the location of // miscellaneous control files which may be used as part of job setup // and handling. If not present, control files may be placed in the same // location as driver_output_uri. DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` // DriverOutputResourceUri: Output only. A URI pointing to the location // of the stdout of the job's driver program. DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` 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 may 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 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 job. Labels map[string]string `json:"labels,omitempty"` PigJob *PigJob `json:"pigJob,omitempty"` // Placement: Required. Job information, including how, when, and where // to run the job. Placement *JobPlacement `json:"placement,omitempty"` PrestoJob *PrestoJob `json:"prestoJob,omitempty"` 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 <code>job_id</code>. Reference *JobReference `json:"reference,omitempty"` // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` SparkJob *SparkJob `json:"sparkJob,omitempty"` SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` // Status: Output only. The job status. Additional application-specific // status information may be contained in the <code>type_job</code> and // <code>yarn_applications</code> fields. Status *JobStatus `json:"status,omitempty"` // StatusHistory: Output only. The previous job status. StatusHistory []*JobStatus `json:"statusHistory,omitempty"` // SubmittedBy: Output only. The email address of the user submitting // the job. For jobs submitted on the cluster, the address is // <code>username@hostname</code>. SubmittedBy string `json:"submittedBy,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 may 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. // "DriverControlFilesUri") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DriverControlFilesUri") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Job: A Dataproc job resource.
func (*Job) MarshalJSON ¶
type JobPlacement ¶
type JobPlacement struct { // ClusterName: Required. The name of the cluster where the job will be // submitted. ClusterName string `json:"clusterName,omitempty"` // ClusterUuid: Output only. A cluster UUID generated by the Dataproc // service when the job is submitted. ClusterUuid string `json:"clusterUuid,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: Required. The ID of the Google Cloud Platform project that // the job belongs to. ProjectId string `json:"projectId,omitempty"` // ForceSendFields is a list of field names (e.g. "JobId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 may be restarted as a result of driver terminating with // non-zero code before job is reported failed.A job may be reported as // thrashing if driver exits with non-zero code 4 times within 10 minute // window.Maximum value is 10. MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
JobScheduling: Job scheduling options.
func (*JobScheduling) MarshalJSON ¶
func (s *JobScheduling) MarshalJSON() ([]byte, error)
type JobStatus ¶
type JobStatus struct { // Details: Output only. Optional Job state details, such as an error // description if the state is <code>ERROR</code>. 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 // may 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 // may 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
JobStatus: Dataproc job status.
func (*JobStatus) MarshalJSON ¶
type KerberosConfig ¶
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"` // a KMS 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. 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: Required. The uri of the KMS key used to encrypt various // 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: Required. 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
KerberosConfig: Specifies Kerberos related configuration.
func (*KerberosConfig) MarshalJSON ¶
func (s *KerberosConfig) MarshalJSON() ([]byte, error)
type LifecycleConfig ¶
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 10 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
LifecycleConfig: Specifies the cluster auto-delete schedule configuration.
func (*LifecycleConfig) MarshalJSON ¶
func (s *LifecycleConfig) MarshalJSON() ([]byte, error)
type ListAutoscalingPoliciesResponse ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListAutoscalingPoliciesResponse: A response to a request to list autoscaling policies in a project.
func (*ListAutoscalingPoliciesResponse) MarshalJSON ¶
func (s *ListAutoscalingPoliciesResponse) 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 // <code>ListClustersRequest</code>. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Clusters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 // <code>ListJobsRequest</code>. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Jobs") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) 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 // <code>ListWorkflowTemplatesRequest</code>. NextPageToken string `json:"nextPageToken,omitempty"` // Templates: Output only. WorkflowTemplates list. Templates []*WorkflowTemplate `json:"templates,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 may // include "root" package name to configure rootLogger. Examples: // 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' DriverLogLevels map[string]string `json:"driverLogLevels,omitempty"` // ForceSendFields is a list of field names (e.g. "DriverLogLevels") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // InstanceTemplateName: Output only. The name of the Instance Template // used for the Managed Instance Group. InstanceTemplateName string `json:"instanceTemplateName,omitempty"` // ForceSendFields is a list of field names (e.g. // "InstanceGroupManagerName") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ManagedGroupConfig: Specifies the resources used to actively manage an instance group.
func (*ManagedGroupConfig) MarshalJSON ¶
func (s *ManagedGroupConfig) 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)).Clu // ster creation fails with an explanatory error message (the name of // the executable that caused the error and the exceeded timeout period) // if the executable is not completed at end of the timeout period. ExecutionTimeout string `json:"executionTimeout,omitempty"` // ForceSendFields is a list of field names (e.g. "ExecutableFile") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 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 response of the operation in case of success. If // the original method returns no data on success, such as Delete, the // response is google.protobuf.Empty. If the original method is standard // Get/Create/Update, the response should be the resource. For other // methods, the response should have the type XxxResponse, where Xxx is // the original method name. For example, if the original method name is // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. Response 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` 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 *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"` PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` SparkJob *SparkJob `json:"sparkJob,omitempty"` 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"` // ForceSendFields is a list of field names (e.g. "HadoopJob") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HadoopJob") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ParameterValidation: Configuration for parameter validation.
func (*ParameterValidation) MarshalJSON ¶
func (s *ParameterValidation) 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 may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and // classes in user code. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains the Pig // queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Pig command: name=[value]). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 to 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 member. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 to a single role. Members 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.Optionally, a binding can 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.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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PrestoJob: A Dataproc job for running Presto (https://prestosql.io/) queries
func (*PrestoJob) MarshalJSON ¶
type ProjectsLocationsAutoscalingPoliciesCreateCall ¶
type ProjectsLocationsAutoscalingPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.create" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesCreateCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsAutoscalingPoliciesDeleteCall ¶
type ProjectsLocationsAutoscalingPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesDeleteCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsAutoscalingPoliciesGetCall ¶
type ProjectsLocationsAutoscalingPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.get" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall ¶
type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
type ProjectsLocationsAutoscalingPoliciesListCall ¶
type ProjectsLocationsAutoscalingPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesListCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesListCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.list" call. Exactly one of *ListAutoscalingPoliciesResponse or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesListCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsAutoscalingPoliciesListCall) PageSize ¶
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 ¶
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 ¶
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 ¶
type ProjectsLocationsAutoscalingPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAutoscalingPoliciesService ¶
func NewProjectsLocationsAutoscalingPoliciesService(s *Service) *ProjectsLocationsAutoscalingPoliciesService
func (*ProjectsLocationsAutoscalingPoliciesService) Create ¶
func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall
Create: Creates new autoscaling policy.
func (*ProjectsLocationsAutoscalingPoliciesService) Delete ¶
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.
func (*ProjectsLocationsAutoscalingPoliciesService) Get ¶
func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall
Get: Retrieves autoscaling policy.
func (*ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy ¶
func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string) *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.
func (*ProjectsLocationsAutoscalingPoliciesService) List ¶
func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall
List: Lists autoscaling policies in the project.
func (*ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy ¶
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
func (*ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions ¶
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.
func (*ProjectsLocationsAutoscalingPoliciesService) Update ¶
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.
type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall ¶
type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall ¶
type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsAutoscalingPoliciesUpdateCall ¶
type ProjectsLocationsAutoscalingPoliciesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Context ¶
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Do ¶
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.locations.autoscalingPolicies.update" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsLocationsAutoscalingPoliciesUpdateCall) Header ¶
func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { AutoscalingPolicies *ProjectsLocationsAutoscalingPoliciesService WorkflowTemplates *ProjectsLocationsWorkflowTemplatesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesCreateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.create" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesCreateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.locations.workflowTemplates.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsLocationsWorkflowTemplatesDeleteCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesGetCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.get" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesGetCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.workflowTemplates.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.workflowTemplates.instantiate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsLocationsWorkflowTemplatesInstantiateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.locations.workflowTemplates.instantiateInline" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) InstanceId ¶
func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall
InstanceId sets the optional parameter "instanceId": Deprecated. Please use request_id field instead.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesListCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
Do executes the "dataproc.projects.locations.workflowTemplates.list" call. Exactly one of *ListWorkflowTemplatesResponse or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesListCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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.
func (*ProjectsLocationsWorkflowTemplatesService) Delete ¶
func (r *ProjectsLocationsWorkflowTemplatesService) Delete(name string) *ProjectsLocationsWorkflowTemplatesDeleteCall
Delete: Deletes a workflow template. It does not cancel in-progress workflows.
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.
func (*ProjectsLocationsWorkflowTemplatesService) GetIamPolicy ¶
func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string) *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.
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. Also see Using WorkflowMetadata.On successful completion, Operation.response will be Empty.
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. Also see Using WorkflowMetadata.On successful completion, Operation.response will be Empty.
func (*ProjectsLocationsWorkflowTemplatesService) List ¶
func (r *ProjectsLocationsWorkflowTemplatesService) List(parent string) *ProjectsLocationsWorkflowTemplatesListCall
List: Lists workflows that match the specified filter in the request.
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
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.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.locations.workflowTemplates.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.locations.workflowTemplates.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsWorkflowTemplatesUpdateCall) Do ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.locations.workflowTemplates.update" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsLocationsWorkflowTemplatesUpdateCall) Header ¶
func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsAutoscalingPoliciesCreateCall ¶
type ProjectsRegionsAutoscalingPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.create" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesCreateCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsAutoscalingPoliciesDeleteCall ¶
type ProjectsRegionsAutoscalingPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Fields ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesDeleteCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsAutoscalingPoliciesGetCall ¶
type ProjectsRegionsAutoscalingPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.get" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall ¶
type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
type ProjectsRegionsAutoscalingPoliciesListCall ¶
type ProjectsRegionsAutoscalingPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesListCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesListCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.list" call. Exactly one of *ListAutoscalingPoliciesResponse or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesListCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch ¶
func (c *ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsAutoscalingPoliciesListCall) PageSize ¶
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 ¶
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 ¶
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 ¶
type ProjectsRegionsAutoscalingPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsRegionsAutoscalingPoliciesService ¶
func NewProjectsRegionsAutoscalingPoliciesService(s *Service) *ProjectsRegionsAutoscalingPoliciesService
func (*ProjectsRegionsAutoscalingPoliciesService) Create ¶
func (r *ProjectsRegionsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesCreateCall
Create: Creates new autoscaling policy.
func (*ProjectsRegionsAutoscalingPoliciesService) Delete ¶
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.
func (*ProjectsRegionsAutoscalingPoliciesService) Get ¶
func (r *ProjectsRegionsAutoscalingPoliciesService) Get(name string) *ProjectsRegionsAutoscalingPoliciesGetCall
Get: Retrieves autoscaling policy.
func (*ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy ¶
func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string) *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.
func (*ProjectsRegionsAutoscalingPoliciesService) List ¶
func (r *ProjectsRegionsAutoscalingPoliciesService) List(parent string) *ProjectsRegionsAutoscalingPoliciesListCall
List: Lists autoscaling policies in the project.
func (*ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy ¶
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
func (*ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions ¶
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.
func (*ProjectsRegionsAutoscalingPoliciesService) Update ¶
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.
type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall ¶
type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall ¶
type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsAutoscalingPoliciesUpdateCall ¶
type ProjectsRegionsAutoscalingPoliciesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Context ¶
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Do ¶
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error)
Do executes the "dataproc.projects.regions.autoscalingPolicies.update" call. Exactly one of *AutoscalingPolicy or error will be non-nil. 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 ¶
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 information.
func (*ProjectsRegionsAutoscalingPoliciesUpdateCall) Header ¶
func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsRegionsClustersCreateCall ¶
type ProjectsRegionsClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsRegionsClustersCreateCall) Context ¶
func (c *ProjectsRegionsClustersCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersCreateCall) Do ¶
func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsClustersCreateCall) Header ¶
func (c *ProjectsRegionsClustersCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 requests 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersDeleteCall) Do ¶
func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsClustersDeleteCall) Header ¶
func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 requests 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersDiagnoseCall) Do ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.diagnose" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsClustersDiagnoseCall) Header ¶
func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersGetCall) Do ¶
func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
Do executes the "dataproc.projects.regions.clusters.get" call. Exactly one of *Cluster or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Cluster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsClustersGetCall) Header ¶
func (c *ProjectsRegionsClustersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsClustersGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.clusters.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsClustersGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsClustersGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsClustersGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsRegionsClustersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsClustersGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersListCall) Do ¶
func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
Do executes the "dataproc.projects.regions.clusters.list" call. Exactly one of *ListClustersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClustersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
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, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR 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 an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsClustersListCall) IfNoneMatch ¶
func (c *ProjectsRegionsClustersListCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersPatchCall) Do ¶
func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.clusters.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout ¶
func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall
GracefulDecommissionTimeout sets the optional parameter "gracefulDecommissionTimeout": Timeout for graceful YARN decomissioning. 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)).Onl y supported on Dataproc image versions 1.2 and higher.
func (*ProjectsRegionsClustersPatchCall) Header ¶
func (c *ProjectsRegionsClustersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 requests 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" } } }
<strong>Note:</strong> currently only the following fields can be updated: <table> <tr> <td><strong>Mask</strong></td><td><strong>Purpos e</strong></td> </tr> <tr> <td>labels</td><td>Updates labels</td> </tr> <tr> <td>config.worker_config.num_instances</td><td> Resize primary worker group</td> </tr> <tr> <td>config.secondary_worker_config.num_in stances</td><td>Resize secondary worker group</td> </tr> <tr> <td>config.lifecycle_config.auto_delete_ttl</td> <td>Reset MAX TTL duration</td> </tr> <tr> <td>config.lifecycle_config.auto_delete_t ime</td><td>Update MAX TTL deletion timestamp</td> </tr> <tr> <td>config.lifecycle_config.idle_delete_ttl< /td><td>Update Idle TTL duration</td> </tr> <tr> <td>config.autoscaling_config.policy_uri< /td><td>Use, stop using, or change autoscaling policies</td> </tr> </table>
type ProjectsRegionsClustersService ¶
type ProjectsRegionsClustersService struct {
// 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.
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.
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. After the operation completes, Operation.response contains Empty.
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.
func (*ProjectsRegionsClustersService) GetIamPolicy ¶
func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string) *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.
func (*ProjectsRegionsClustersService) List ¶
func (r *ProjectsRegionsClustersService) List(projectId string, region string) *ProjectsRegionsClustersListCall
List: Lists all regions/{region}/clusters in a project.
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.
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.clusters.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsClustersSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsClustersTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.clusters.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 information.
func (*ProjectsRegionsClustersTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsCancelCall) Do ¶
func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.cancel" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsJobsCancelCall) Header ¶
func (c *ProjectsRegionsJobsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsDeleteCall) Do ¶
func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.jobs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsJobsDeleteCall) Header ¶
func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsGetCall) Do ¶
func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.get" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsJobsGetCall) Header ¶
func (c *ProjectsRegionsJobsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsJobsGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.jobs.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsJobsGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsJobsGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsRegionsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsJobsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsListCall) Do ¶
func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error)
Do executes the "dataproc.projects.regions.jobs.list" call. Exactly one of *ListJobsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListJobsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
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 an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsJobsListCall) IfNoneMatch ¶
func (c *ProjectsRegionsJobsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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" "ACTIVE" "NON_ACTIVE"
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsPatchCall) Do ¶
func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.patch" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsJobsPatchCall) Header ¶
func (c *ProjectsRegionsJobsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> 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 or regions/{region}/jobs.get.
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.
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.
func (*ProjectsRegionsJobsService) GetIamPolicy ¶
func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string) *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.
func (*ProjectsRegionsJobsService) List ¶
func (r *ProjectsRegionsJobsService) List(projectId string, region string) *ProjectsRegionsJobsListCall
List: Lists regions/{region}/jobs in a project.
func (*ProjectsRegionsJobsService) Patch ¶
func (r *ProjectsRegionsJobsService) Patch(projectId string, region string, jobId string, job *Job) *ProjectsRegionsJobsPatchCall
Patch: Updates a job in a project.
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
func (*ProjectsRegionsJobsService) Submit ¶
func (r *ProjectsRegionsJobsService) Submit(projectId string, region string, submitjobrequest *SubmitJobRequest) *ProjectsRegionsJobsSubmitCall
Submit: Submits a job to a cluster.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.jobs.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsJobsSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsSubmitCall) Do ¶
func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, error)
Do executes the "dataproc.projects.regions.jobs.submit" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsJobsSubmitCall) Header ¶
func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsJobsTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.jobs.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 information.
func (*ProjectsRegionsJobsTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsCancelCall) Do ¶
func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsOperationsCancelCall) Header ¶
func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsDeleteCall) Do ¶
func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsOperationsDeleteCall) Header ¶
func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsGetCall) Do ¶
func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsOperationsGetCall) Header ¶
func (c *ProjectsRegionsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.operations.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsOperationsGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsOperationsGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsOperationsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsRegionsOperationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsOperationsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsListCall) Do ¶
func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "dataproc.projects.regions.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
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 an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsRegionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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.
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.
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.
func (*ProjectsRegionsOperationsService) GetIamPolicy ¶
func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string) *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.
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.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.operations.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsOperationsSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsOperationsTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.operations.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 information.
func (*ProjectsRegionsOperationsTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesCreateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.create" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesCreateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "dataproc.projects.regions.workflowTemplates.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsWorkflowTemplatesDeleteCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesGetCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.get" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesGetCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch ¶
func (c *ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.workflowTemplates.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.workflowTemplates.instantiate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsWorkflowTemplatesInstantiateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "dataproc.projects.regions.workflowTemplates.instantiateInline" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*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 information.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) InstanceId ¶
func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall
InstanceId sets the optional parameter "instanceId": Deprecated. Please use request_id field instead.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesListCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error)
Do executes the "dataproc.projects.regions.workflowTemplates.list" call. Exactly one of *ListWorkflowTemplatesResponse or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesListCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch ¶
func (c *ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*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.
func (*ProjectsRegionsWorkflowTemplatesService) Delete ¶
func (r *ProjectsRegionsWorkflowTemplatesService) Delete(name string) *ProjectsRegionsWorkflowTemplatesDeleteCall
Delete: Deletes a workflow template. It does not cancel in-progress workflows.
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.
func (*ProjectsRegionsWorkflowTemplatesService) GetIamPolicy ¶
func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string) *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.
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. Also see Using WorkflowMetadata.On successful completion, Operation.response will be Empty.
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. Also see Using WorkflowMetadata.On successful completion, Operation.response will be Empty.
func (*ProjectsRegionsWorkflowTemplatesService) List ¶
func (r *ProjectsRegionsWorkflowTemplatesService) List(parent string) *ProjectsRegionsWorkflowTemplatesListCall
List: Lists workflows that match the specified filter in the request.
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 Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
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.
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.
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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "dataproc.projects.regions.workflowTemplates.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "dataproc.projects.regions.workflowTemplates.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsRegionsWorkflowTemplatesUpdateCall) Do ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error)
Do executes the "dataproc.projects.regions.workflowTemplates.update" call. Exactly one of *WorkflowTemplate or error will be non-nil. 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 information.
func (*ProjectsRegionsWorkflowTemplatesUpdateCall) Header ¶
func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 PySparkJob ¶
type PySparkJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the // working directory of .jar, .tar, .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be copied to the working // directory of Python drivers and distributed tasks. Useful for naively // parallel tasks. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: Optional. HCFS URIs of jar files to add to the // CLASSPATHs of the Python driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // 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 may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // PythonFileUris: Optional. HCFS file URIs of Python files to pass to // the PySpark framework. Supported file types: .py, .egg, and .zip. PythonFileUris []string `json:"pythonFileUris,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 // terminate a query with a semicolon. Multiple queries can be specified // in one string by separating each with a semicolon. Here is an example // of an Cloud Dataproc API snippet that uses a QueryList to specify a // HiveJob: // "hiveJob": { // "queryList": { // "queries": [ // "query1", // "query2", // "query3;query4", // ] // } // } // Queries []string `json:"queries,omitempty"` // ForceSendFields is a list of field names (e.g. "Queries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegexValidation: Validation based on regular expressions.
func (*RegexValidation) MarshalJSON ¶
func (s *RegexValidation) MarshalJSON() ([]byte, error)
type ReservationAffinity ¶
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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReservationAffinity: Reservation Affinity for consuming Zonal reservation.
func (*ReservationAffinity) MarshalJSON ¶
func (s *ReservationAffinity) MarshalJSON() ([]byte, error)
type SecurityConfig ¶
type SecurityConfig struct { // KerberosConfig: Kerberos related configuration. KerberosConfig *KerberosConfig `json:"kerberosConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "KerberosConfig") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "KerberosConfig") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SecurityConfig: Security related configuration, including encryption, Kerberos, etc.
func (*SecurityConfig) MarshalJSON ¶
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 ¶
NewService creates a new Service.
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 Cloud Platform 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SetIamPolicyRequest: Request message for SetIamPolicy method.
func (*SetIamPolicyRequest) MarshalJSON ¶
func (s *SetIamPolicyRequest) 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, such as "1.2" // (including a subminor version, such as "1.2.29"), or the "preview" // version. If unspecified, it defaults to the latest Debian version. ImageVersion string `json:"imageVersion,omitempty"` // OptionalComponents: The set of optional components to activate on the // cluster. // // Possible values: // "COMPONENT_UNSPECIFIED" - Unspecified component. // "ANACONDA" - The Anaconda python distribution. // "DRUID" - The Druid query engine. // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for // accessing HCatalog). // "JUPYTER" - The Jupyter Notebook. // "KERBEROS" - The Kerberos security feature. // "PRESTO" - The Presto query engine. // "ZEPPELIN" - The Zeppelin notebook. // "ZOOKEEPER" - The Zookeeper service. // "HBASE" - HBase. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SoftwareConfig: Specifies the selection and config of software inside the cluster.
func (*SoftwareConfig) MarshalJSON ¶
func (s *SoftwareConfig) MarshalJSON() ([]byte, error)
type SparkJob ¶
type SparkJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the // working directory of Spark drivers and tasks. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be copied to the working // directory of Spark drivers and distributed tasks. Useful for naively // parallel tasks. FileUris []string `json:"fileUris,omitempty"` // JarFileUris: Optional. HCFS URIs of jar files to add to the // CLASSPATHs of the Spark driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` // 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 // 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 may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SparkJob: A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. The specification of the main method to call to drive the job. Specify either the jar file that contains the main class or the main class name. To pass both a main jar and a main class in that jar, add the jar to CommonJob.jar_file_uris, and then specify the main class name in main_class.
func (*SparkJob) MarshalJSON ¶
type SparkRJob ¶
type SparkRJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the // working directory of Spark drivers and tasks. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` // FileUris: Optional. HCFS URIs of files to be copied to the working // directory of R drivers and distributed tasks. 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 may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
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 may be overwritten. Properties map[string]string `json:"properties,omitempty"` // QueryFileUri: The HCFS URI of the script that contains SQL queries. QueryFileUri string `json:"queryFileUri,omitempty"` // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Spark SQL command: SET name="value";). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` // ForceSendFields is a list of field names (e.g. "JarFileUris") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SparkSqlJob: A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries.
func (*SparkSqlJob) MarshalJSON ¶
func (s *SparkSqlJob) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 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 requests 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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' // placemen // t.managedCluster.labels'key' // placement.clusterSelector.clusterLabels'k // ey' // 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'.hadoop // Job.args0 // jobs'step-id'.hiveJob.scriptVariables'key' // jobs'step-id'.had // oopJob.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'.sparkJo // b.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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsResponse: Response message for TestIamPermissions method.
func (*TestIamPermissionsResponse) MarshalJSON ¶
func (s *TestIamPermissionsResponse) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ValueValidation: Validation based on a list of allowed values.
func (*ValueValidation) MarshalJSON ¶
func (s *ValueValidation) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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_STATUS_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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // Id: Required. The template 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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: Optional. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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: Output only. The application name. Name string `json:"name,omitempty"` // Progress: Output only. The numerical progress of the application, // from 1 to 100. Progress float64 `json:"progress,omitempty"` // State: Output only. 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: Output only. The HTTP URL of the ApplicationMaster, // HistoryServer, or TimelineServer that provides application-specific // information. The URL uses the internal hostname, and requires a proxy // server for resolution and, possibly, access. TrackingUrl string `json:"trackingUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
YarnApplication: A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</ code>.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