Documentation
¶
Overview ¶
Package dataflow provides access to the Google Dataflow API.
Usage example:
import "google.golang.org/api/dataflow/v1b3" ... dataflowService, err := dataflow.New(oauthHttpClient)
Index ¶
- Constants
- type ApproximateProgress
- type AutoscalingSettings
- type ComputationTopology
- type DataDiskAssignment
- type DerivedSource
- type Disk
- type DynamicSourceSplit
- type Environment
- type EnvironmentSdkPipelineOptions
- type EnvironmentUserAgent
- type EnvironmentVersion
- type FlattenInstruction
- type GoogleprotobufValue
- type InstructionInput
- type InstructionOutput
- type InstructionOutputCodec
- type Job
- type JobExecutionInfo
- type JobExecutionStageInfo
- type JobMessage
- type JobMetrics
- type KeyRangeDataDiskAssignment
- type KeyRangeLocation
- type LeaseWorkItemRequest
- type LeaseWorkItemResponse
- type ListJobMessagesResponse
- type ListJobsResponse
- type MapTask
- type MetricStructuredName
- type MetricUpdate
- type MountedDataDisk
- type MultiOutputInfo
- type Package
- type ParDoInstruction
- type ParDoInstructionUserFn
- type ParallelInstruction
- type PartialGroupByKeyInstruction
- type PartialGroupByKeyInstructionInputElementCodec
- type PartialGroupByKeyInstructionValueCombiningFn
- type Position
- type ProjectsJobsCreateCall
- func (c *ProjectsJobsCreateCall) Do() (*Job, error)
- func (c *ProjectsJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsJobsCreateCall
- func (c *ProjectsJobsCreateCall) ReplaceJobId(replaceJobId string) *ProjectsJobsCreateCall
- func (c *ProjectsJobsCreateCall) View(view string) *ProjectsJobsCreateCall
- type ProjectsJobsGetCall
- type ProjectsJobsGetMetricsCall
- type ProjectsJobsListCall
- func (c *ProjectsJobsListCall) Do() (*ListJobsResponse, error)
- func (c *ProjectsJobsListCall) Fields(s ...googleapi.Field) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) PageSize(pageSize int64) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) PageToken(pageToken string) *ProjectsJobsListCall
- func (c *ProjectsJobsListCall) View(view string) *ProjectsJobsListCall
- type ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) Do() (*ListJobMessagesResponse, error)
- func (c *ProjectsJobsMessagesListCall) EndTime(endTime string) *ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) MinimumImportance(minimumImportance string) *ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) PageSize(pageSize int64) *ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) PageToken(pageToken string) *ProjectsJobsMessagesListCall
- func (c *ProjectsJobsMessagesListCall) StartTime(startTime string) *ProjectsJobsMessagesListCall
- type ProjectsJobsMessagesService
- type ProjectsJobsPatchCall
- type ProjectsJobsService
- func (r *ProjectsJobsService) Create(projectId string, job *Job) *ProjectsJobsCreateCall
- func (r *ProjectsJobsService) Get(projectId string, jobId string) *ProjectsJobsGetCall
- func (r *ProjectsJobsService) GetMetrics(projectId string, jobId string) *ProjectsJobsGetMetricsCall
- func (r *ProjectsJobsService) List(projectId string) *ProjectsJobsListCall
- func (r *ProjectsJobsService) Patch(projectId string, jobId string, job *Job) *ProjectsJobsPatchCall
- func (r *ProjectsJobsService) Update(projectId string, jobId string, job *Job) *ProjectsJobsUpdateCall
- type ProjectsJobsUpdateCall
- type ProjectsJobsWorkItemsLeaseCall
- type ProjectsJobsWorkItemsReportStatusCall
- type ProjectsJobsWorkItemsService
- type ProjectsService
- type PubsubLocation
- type ReadInstruction
- type ReportWorkItemStatusRequest
- type ReportWorkItemStatusResponse
- type SeqMapTask
- type SeqMapTaskOutputInfo
- type SeqMapTaskUserFn
- type Service
- type ShellTask
- type SideInputInfo
- type SideInputInfoKind
- type Sink
- type SinkCodec
- type SinkSpec
- type Source
- type SourceBaseSpecs
- type SourceCodec
- type SourceFork
- type SourceGetMetadataRequest
- type SourceGetMetadataResponse
- type SourceMetadata
- type SourceOperationRequest
- type SourceOperationResponse
- type SourceSpec
- type SourceSplitOptions
- type SourceSplitRequest
- type SourceSplitResponse
- type SourceSplitShard
- type Status
- type StatusDetails
- type Step
- type StepProperties
- type StreamLocation
- type StreamingComputationRanges
- type StreamingComputationTask
- type StreamingSetupTask
- type StreamingSideInputLocation
- type StreamingStageLocation
- type TaskRunnerSettings
- type TopologyConfig
- type WorkItem
- type WorkItemServiceState
- type WorkItemServiceStateHarnessData
- type WorkItemStatus
- type WorkerPool
- type WorkerPoolPoolArgs
- type WorkerSettings
- type WriteInstruction
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View your email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApproximateProgress ¶
type AutoscalingSettings ¶
type ComputationTopology ¶
type ComputationTopology struct {
ComputationId string `json:"computationId,omitempty"`
Inputs []*StreamLocation `json:"inputs,omitempty"`
KeyRanges []*KeyRangeLocation `json:"keyRanges,omitempty"`
Outputs []*StreamLocation `json:"outputs,omitempty"`
}
type DataDiskAssignment ¶
type DerivedSource ¶
type DerivedSource struct {
// Possible values:
// "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT"
// "SOURCE_DERIVATION_MODE_INDEPENDENT"
// "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT"
// "SOURCE_DERIVATION_MODE_UNKNOWN"
DerivationMode string `json:"derivationMode,omitempty"`
Source *Source `json:"source,omitempty"`
}
type DynamicSourceSplit ¶
type DynamicSourceSplit struct {
Primary *DerivedSource `json:"primary,omitempty"`
Residual *DerivedSource `json:"residual,omitempty"`
}
type Environment ¶
type Environment struct {
ClusterManagerApiService string `json:"clusterManagerApiService,omitempty"`
Dataset string `json:"dataset,omitempty"`
Experiments []string `json:"experiments,omitempty"`
SdkPipelineOptions EnvironmentSdkPipelineOptions `json:"sdkPipelineOptions,omitempty"`
TempStoragePrefix string `json:"tempStoragePrefix,omitempty"`
UserAgent EnvironmentUserAgent `json:"userAgent,omitempty"`
Version EnvironmentVersion `json:"version,omitempty"`
WorkerPools []*WorkerPool `json:"workerPools,omitempty"`
}
type EnvironmentSdkPipelineOptions ¶
type EnvironmentSdkPipelineOptions interface{}
type EnvironmentUserAgent ¶
type EnvironmentUserAgent interface{}
type EnvironmentVersion ¶
type EnvironmentVersion interface{}
type FlattenInstruction ¶
type FlattenInstruction struct {
Inputs []*InstructionInput `json:"inputs,omitempty"`
}
type GoogleprotobufValue ¶
type GoogleprotobufValue interface{}
type InstructionInput ¶
type InstructionOutput ¶
type InstructionOutput struct {
Codec InstructionOutputCodec `json:"codec,omitempty"`
Name string `json:"name,omitempty"`
}
type InstructionOutputCodec ¶
type InstructionOutputCodec interface{}
type Job ¶
type Job struct {
CreateTime string `json:"createTime,omitempty"`
// Possible values:
// "JOB_STATE_CANCELLED"
// "JOB_STATE_DONE"
// "JOB_STATE_FAILED"
// "JOB_STATE_RUNNING"
// "JOB_STATE_STOPPED"
// "JOB_STATE_UNKNOWN"
CurrentState string `json:"currentState,omitempty"`
CurrentStateTime string `json:"currentStateTime,omitempty"`
Environment *Environment `json:"environment,omitempty"`
ExecutionInfo *JobExecutionInfo `json:"executionInfo,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ProjectId string `json:"projectId,omitempty"`
// Possible values:
// "JOB_STATE_CANCELLED"
// "JOB_STATE_DONE"
// "JOB_STATE_FAILED"
// "JOB_STATE_RUNNING"
// "JOB_STATE_STOPPED"
// "JOB_STATE_UNKNOWN"
RequestedState string `json:"requestedState,omitempty"`
Steps []*Step `json:"steps,omitempty"`
// Possible values:
// "JOB_TYPE_BATCH"
// "JOB_TYPE_STREAMING"
// "JOB_TYPE_UNKNOWN"
Type string `json:"type,omitempty"`
}
type JobExecutionInfo ¶
type JobExecutionInfo struct {
Stages map[string]JobExecutionStageInfo `json:"stages,omitempty"`
}
type JobExecutionStageInfo ¶
type JobExecutionStageInfo struct {
StepName []string `json:"stepName,omitempty"`
}
type JobMessage ¶
type JobMessage struct {
Id string `json:"id,omitempty"`
// Possible values:
// "JOB_MESSAGE_DEBUG"
// "JOB_MESSAGE_DETAILED"
// "JOB_MESSAGE_ERROR"
// "JOB_MESSAGE_IMPORTANCE_UNKNOWN"
// "JOB_MESSAGE_WARNING"
MessageImportance string `json:"messageImportance,omitempty"`
MessageText string `json:"messageText,omitempty"`
Time string `json:"time,omitempty"`
}
type JobMetrics ¶
type JobMetrics struct {
MetricTime string `json:"metricTime,omitempty"`
Metrics []*MetricUpdate `json:"metrics,omitempty"`
}
type KeyRangeLocation ¶
type LeaseWorkItemRequest ¶
type LeaseWorkItemRequest struct {
CurrentWorkerTime string `json:"currentWorkerTime,omitempty"`
RequestedLeaseDuration string `json:"requestedLeaseDuration,omitempty"`
WorkItemTypes []string `json:"workItemTypes,omitempty"`
WorkerCapabilities []string `json:"workerCapabilities,omitempty"`
WorkerId string `json:"workerId,omitempty"`
}
type LeaseWorkItemResponse ¶
type LeaseWorkItemResponse struct {
WorkItems []*WorkItem `json:"workItems,omitempty"`
}
type ListJobMessagesResponse ¶
type ListJobMessagesResponse struct {
JobMessages []*JobMessage `json:"jobMessages,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
}
type ListJobsResponse ¶
type MapTask ¶
type MapTask struct {
Instructions []*ParallelInstruction `json:"instructions,omitempty"`
StageName string `json:"stageName,omitempty"`
SystemName string `json:"systemName,omitempty"`
}
type MetricStructuredName ¶
type MetricUpdate ¶
type MetricUpdate struct {
Cumulative bool `json:"cumulative,omitempty"`
Internal interface{} `json:"internal,omitempty"`
Kind string `json:"kind,omitempty"`
MeanCount interface{} `json:"meanCount,omitempty"`
MeanSum interface{} `json:"meanSum,omitempty"`
Name *MetricStructuredName `json:"name,omitempty"`
Scalar interface{} `json:"scalar,omitempty"`
Set interface{} `json:"set,omitempty"`
UpdateTime string `json:"updateTime,omitempty"`
}
type MountedDataDisk ¶
type MountedDataDisk struct {
DataDisk string `json:"dataDisk,omitempty"`
}
type MultiOutputInfo ¶
type MultiOutputInfo struct {
Tag string `json:"tag,omitempty"`
}
type ParDoInstruction ¶
type ParDoInstruction struct {
Input *InstructionInput `json:"input,omitempty"`
MultiOutputInfos []*MultiOutputInfo `json:"multiOutputInfos,omitempty"`
NumOutputs int64 `json:"numOutputs,omitempty"`
SideInputs []*SideInputInfo `json:"sideInputs,omitempty"`
UserFn ParDoInstructionUserFn `json:"userFn,omitempty"`
}
type ParDoInstructionUserFn ¶
type ParDoInstructionUserFn interface{}
type ParallelInstruction ¶
type ParallelInstruction struct {
Flatten *FlattenInstruction `json:"flatten,omitempty"`
Name string `json:"name,omitempty"`
Outputs []*InstructionOutput `json:"outputs,omitempty"`
ParDo *ParDoInstruction `json:"parDo,omitempty"`
PartialGroupByKey *PartialGroupByKeyInstruction `json:"partialGroupByKey,omitempty"`
Read *ReadInstruction `json:"read,omitempty"`
SystemName string `json:"systemName,omitempty"`
Write *WriteInstruction `json:"write,omitempty"`
}
type PartialGroupByKeyInstruction ¶
type PartialGroupByKeyInstruction struct {
Input *InstructionInput `json:"input,omitempty"`
InputElementCodec PartialGroupByKeyInstructionInputElementCodec `json:"inputElementCodec,omitempty"`
ValueCombiningFn PartialGroupByKeyInstructionValueCombiningFn `json:"valueCombiningFn,omitempty"`
}
type PartialGroupByKeyInstructionInputElementCodec ¶
type PartialGroupByKeyInstructionInputElementCodec interface{}
type PartialGroupByKeyInstructionValueCombiningFn ¶
type PartialGroupByKeyInstructionValueCombiningFn interface{}
type ProjectsJobsCreateCall ¶
type ProjectsJobsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsCreateCall) Do ¶
func (c *ProjectsJobsCreateCall) Do() (*Job, error)
func (*ProjectsJobsCreateCall) Fields ¶
func (c *ProjectsJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsJobsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsCreateCall) ReplaceJobId ¶
func (c *ProjectsJobsCreateCall) ReplaceJobId(replaceJobId string) *ProjectsJobsCreateCall
ReplaceJobId sets the optional parameter "replaceJobId":
func (*ProjectsJobsCreateCall) View ¶
func (c *ProjectsJobsCreateCall) View(view string) *ProjectsJobsCreateCall
View sets the optional parameter "view":
Possible values:
"JOB_VIEW_ALL" "JOB_VIEW_SUMMARY" "JOB_VIEW_UNKNOWN"
type ProjectsJobsGetCall ¶
type ProjectsJobsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsGetCall) Do ¶
func (c *ProjectsJobsGetCall) Do() (*Job, error)
func (*ProjectsJobsGetCall) Fields ¶
func (c *ProjectsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsJobsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsGetCall) View ¶
func (c *ProjectsJobsGetCall) View(view string) *ProjectsJobsGetCall
View sets the optional parameter "view":
Possible values:
"JOB_VIEW_ALL" "JOB_VIEW_SUMMARY" "JOB_VIEW_UNKNOWN"
type ProjectsJobsGetMetricsCall ¶
type ProjectsJobsGetMetricsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsGetMetricsCall) Do ¶
func (c *ProjectsJobsGetMetricsCall) Do() (*JobMetrics, error)
func (*ProjectsJobsGetMetricsCall) Fields ¶
func (c *ProjectsJobsGetMetricsCall) Fields(s ...googleapi.Field) *ProjectsJobsGetMetricsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsGetMetricsCall) StartTime ¶
func (c *ProjectsJobsGetMetricsCall) StartTime(startTime string) *ProjectsJobsGetMetricsCall
StartTime sets the optional parameter "startTime":
type ProjectsJobsListCall ¶
type ProjectsJobsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsListCall) Do ¶
func (c *ProjectsJobsListCall) Do() (*ListJobsResponse, error)
func (*ProjectsJobsListCall) Fields ¶
func (c *ProjectsJobsListCall) Fields(s ...googleapi.Field) *ProjectsJobsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsListCall) PageSize ¶
func (c *ProjectsJobsListCall) PageSize(pageSize int64) *ProjectsJobsListCall
PageSize sets the optional parameter "pageSize":
func (*ProjectsJobsListCall) PageToken ¶
func (c *ProjectsJobsListCall) PageToken(pageToken string) *ProjectsJobsListCall
PageToken sets the optional parameter "pageToken":
func (*ProjectsJobsListCall) View ¶
func (c *ProjectsJobsListCall) View(view string) *ProjectsJobsListCall
View sets the optional parameter "view":
Possible values:
"JOB_VIEW_ALL" "JOB_VIEW_SUMMARY" "JOB_VIEW_UNKNOWN"
type ProjectsJobsMessagesListCall ¶
type ProjectsJobsMessagesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsMessagesListCall) Do ¶
func (c *ProjectsJobsMessagesListCall) Do() (*ListJobMessagesResponse, error)
func (*ProjectsJobsMessagesListCall) EndTime ¶
func (c *ProjectsJobsMessagesListCall) EndTime(endTime string) *ProjectsJobsMessagesListCall
EndTime sets the optional parameter "endTime":
func (*ProjectsJobsMessagesListCall) Fields ¶
func (c *ProjectsJobsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsJobsMessagesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsJobsMessagesListCall) MinimumImportance ¶
func (c *ProjectsJobsMessagesListCall) MinimumImportance(minimumImportance string) *ProjectsJobsMessagesListCall
MinimumImportance sets the optional parameter "minimumImportance":
Possible values:
"JOB_MESSAGE_DEBUG" "JOB_MESSAGE_DETAILED" "JOB_MESSAGE_ERROR" "JOB_MESSAGE_IMPORTANCE_UNKNOWN" "JOB_MESSAGE_WARNING"
func (*ProjectsJobsMessagesListCall) PageSize ¶
func (c *ProjectsJobsMessagesListCall) PageSize(pageSize int64) *ProjectsJobsMessagesListCall
PageSize sets the optional parameter "pageSize":
func (*ProjectsJobsMessagesListCall) PageToken ¶
func (c *ProjectsJobsMessagesListCall) PageToken(pageToken string) *ProjectsJobsMessagesListCall
PageToken sets the optional parameter "pageToken":
func (*ProjectsJobsMessagesListCall) StartTime ¶
func (c *ProjectsJobsMessagesListCall) StartTime(startTime string) *ProjectsJobsMessagesListCall
StartTime sets the optional parameter "startTime":
type ProjectsJobsMessagesService ¶
type ProjectsJobsMessagesService struct {
// contains filtered or unexported fields
}
func NewProjectsJobsMessagesService ¶
func NewProjectsJobsMessagesService(s *Service) *ProjectsJobsMessagesService
func (*ProjectsJobsMessagesService) List ¶
func (r *ProjectsJobsMessagesService) List(projectId string, jobId string) *ProjectsJobsMessagesListCall
List: Request the job status.
type ProjectsJobsPatchCall ¶
type ProjectsJobsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsPatchCall) Do ¶
func (c *ProjectsJobsPatchCall) Do() (*Job, error)
func (*ProjectsJobsPatchCall) Fields ¶
func (c *ProjectsJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsJobsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsJobsService ¶
type ProjectsJobsService struct {
Messages *ProjectsJobsMessagesService
WorkItems *ProjectsJobsWorkItemsService
// contains filtered or unexported fields
}
func NewProjectsJobsService ¶
func NewProjectsJobsService(s *Service) *ProjectsJobsService
func (*ProjectsJobsService) Create ¶
func (r *ProjectsJobsService) Create(projectId string, job *Job) *ProjectsJobsCreateCall
Create: Creates a dataflow job.
func (*ProjectsJobsService) Get ¶
func (r *ProjectsJobsService) Get(projectId string, jobId string) *ProjectsJobsGetCall
Get: Gets the state of the specified dataflow job.
func (*ProjectsJobsService) GetMetrics ¶
func (r *ProjectsJobsService) GetMetrics(projectId string, jobId string) *ProjectsJobsGetMetricsCall
GetMetrics: Request the job status.
func (*ProjectsJobsService) List ¶
func (r *ProjectsJobsService) List(projectId string) *ProjectsJobsListCall
List: List the jobs of a project
func (*ProjectsJobsService) Patch ¶
func (r *ProjectsJobsService) Patch(projectId string, jobId string, job *Job) *ProjectsJobsPatchCall
Patch: Updates the state of an existing dataflow job. This method supports patch semantics.
func (*ProjectsJobsService) Update ¶
func (r *ProjectsJobsService) Update(projectId string, jobId string, job *Job) *ProjectsJobsUpdateCall
Update: Updates the state of an existing dataflow job.
type ProjectsJobsUpdateCall ¶
type ProjectsJobsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsUpdateCall) Do ¶
func (c *ProjectsJobsUpdateCall) Do() (*Job, error)
func (*ProjectsJobsUpdateCall) Fields ¶
func (c *ProjectsJobsUpdateCall) Fields(s ...googleapi.Field) *ProjectsJobsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsJobsWorkItemsLeaseCall ¶
type ProjectsJobsWorkItemsLeaseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsWorkItemsLeaseCall) Do ¶
func (c *ProjectsJobsWorkItemsLeaseCall) Do() (*LeaseWorkItemResponse, error)
func (*ProjectsJobsWorkItemsLeaseCall) Fields ¶
func (c *ProjectsJobsWorkItemsLeaseCall) Fields(s ...googleapi.Field) *ProjectsJobsWorkItemsLeaseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsJobsWorkItemsReportStatusCall ¶
type ProjectsJobsWorkItemsReportStatusCall struct {
// contains filtered or unexported fields
}
func (*ProjectsJobsWorkItemsReportStatusCall) Do ¶
func (c *ProjectsJobsWorkItemsReportStatusCall) Do() (*ReportWorkItemStatusResponse, error)
func (*ProjectsJobsWorkItemsReportStatusCall) Fields ¶
func (c *ProjectsJobsWorkItemsReportStatusCall) Fields(s ...googleapi.Field) *ProjectsJobsWorkItemsReportStatusCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsJobsWorkItemsService ¶
type ProjectsJobsWorkItemsService struct {
// contains filtered or unexported fields
}
func NewProjectsJobsWorkItemsService ¶
func NewProjectsJobsWorkItemsService(s *Service) *ProjectsJobsWorkItemsService
func (*ProjectsJobsWorkItemsService) Lease ¶
func (r *ProjectsJobsWorkItemsService) Lease(projectId string, jobId string, leaseworkitemrequest *LeaseWorkItemRequest) *ProjectsJobsWorkItemsLeaseCall
Lease: Leases a dataflow WorkItem to run.
func (*ProjectsJobsWorkItemsService) ReportStatus ¶
func (r *ProjectsJobsWorkItemsService) ReportStatus(projectId string, jobId string, reportworkitemstatusrequest *ReportWorkItemStatusRequest) *ProjectsJobsWorkItemsReportStatusCall
ReportStatus: Reports the status of dataflow WorkItems leased by a worker.
type ProjectsService ¶
type ProjectsService struct {
Jobs *ProjectsJobsService
// contains filtered or unexported fields
}
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PubsubLocation ¶
type PubsubLocation struct {
DropLateData bool `json:"dropLateData,omitempty"`
IdLabel string `json:"idLabel,omitempty"`
Subscription string `json:"subscription,omitempty"`
TimestampLabel string `json:"timestampLabel,omitempty"`
Topic string `json:"topic,omitempty"`
TrackingSubscription string `json:"trackingSubscription,omitempty"`
}
type ReadInstruction ¶
type ReadInstruction struct {
Source *Source `json:"source,omitempty"`
}
type ReportWorkItemStatusRequest ¶
type ReportWorkItemStatusRequest struct {
CurrentWorkerTime string `json:"currentWorkerTime,omitempty"`
WorkItemStatuses []*WorkItemStatus `json:"workItemStatuses,omitempty"`
WorkerId string `json:"workerId,omitempty"`
}
type ReportWorkItemStatusResponse ¶
type ReportWorkItemStatusResponse struct {
WorkItemServiceStates []*WorkItemServiceState `json:"workItemServiceStates,omitempty"`
}
type SeqMapTask ¶
type SeqMapTask struct {
Inputs []*SideInputInfo `json:"inputs,omitempty"`
Name string `json:"name,omitempty"`
OutputInfos []*SeqMapTaskOutputInfo `json:"outputInfos,omitempty"`
StageName string `json:"stageName,omitempty"`
SystemName string `json:"systemName,omitempty"`
UserFn SeqMapTaskUserFn `json:"userFn,omitempty"`
}
type SeqMapTaskOutputInfo ¶
type SeqMapTaskUserFn ¶
type SeqMapTaskUserFn interface{}
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
}
type SideInputInfo ¶
type SideInputInfo struct {
Kind SideInputInfoKind `json:"kind,omitempty"`
Sources []*Source `json:"sources,omitempty"`
Tag string `json:"tag,omitempty"`
}
type SideInputInfoKind ¶
type SideInputInfoKind interface{}
type Source ¶
type Source struct {
BaseSpecs []SourceBaseSpecs `json:"baseSpecs,omitempty"`
Codec SourceCodec `json:"codec,omitempty"`
DoesNotNeedSplitting bool `json:"doesNotNeedSplitting,omitempty"`
Metadata *SourceMetadata `json:"metadata,omitempty"`
Spec SourceSpec `json:"spec,omitempty"`
}
type SourceBaseSpecs ¶
type SourceBaseSpecs interface{}
type SourceCodec ¶
type SourceCodec interface{}
type SourceFork ¶
type SourceFork struct {
Primary *SourceSplitShard `json:"primary,omitempty"`
PrimarySource *DerivedSource `json:"primarySource,omitempty"`
Residual *SourceSplitShard `json:"residual,omitempty"`
ResidualSource *DerivedSource `json:"residualSource,omitempty"`
}
type SourceGetMetadataRequest ¶
type SourceGetMetadataRequest struct {
Source *Source `json:"source,omitempty"`
}
type SourceGetMetadataResponse ¶
type SourceGetMetadataResponse struct {
Metadata *SourceMetadata `json:"metadata,omitempty"`
}
type SourceMetadata ¶
type SourceOperationRequest ¶
type SourceOperationRequest struct {
GetMetadata *SourceGetMetadataRequest `json:"getMetadata,omitempty"`
Split *SourceSplitRequest `json:"split,omitempty"`
}
type SourceOperationResponse ¶
type SourceOperationResponse struct {
GetMetadata *SourceGetMetadataResponse `json:"getMetadata,omitempty"`
Split *SourceSplitResponse `json:"split,omitempty"`
}
type SourceSpec ¶
type SourceSpec interface{}
type SourceSplitOptions ¶
type SourceSplitRequest ¶
type SourceSplitRequest struct {
Options *SourceSplitOptions `json:"options,omitempty"`
Source *Source `json:"source,omitempty"`
}
type SourceSplitResponse ¶
type SourceSplitResponse struct {
Bundles []*DerivedSource `json:"bundles,omitempty"`
// Possible values:
// "SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED"
// "SOURCE_SPLIT_OUTCOME_UNKNOWN"
// "SOURCE_SPLIT_OUTCOME_USE_CURRENT"
Outcome string `json:"outcome,omitempty"`
Shards []*SourceSplitShard `json:"shards,omitempty"`
}
type SourceSplitShard ¶
type SourceSplitShard struct {
// Possible values:
// "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT"
// "SOURCE_DERIVATION_MODE_INDEPENDENT"
// "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT"
// "SOURCE_DERIVATION_MODE_UNKNOWN"
DerivationMode string `json:"derivationMode,omitempty"`
Source *Source `json:"source,omitempty"`
}
type Status ¶
type Status struct {
Code int64 `json:"code,omitempty"`
Details []StatusDetails `json:"details,omitempty"`
Message string `json:"message,omitempty"`
}
type StatusDetails ¶
type StatusDetails interface{}
type Step ¶
type Step struct {
Kind string `json:"kind,omitempty"`
Name string `json:"name,omitempty"`
Properties StepProperties `json:"properties,omitempty"`
}
type StepProperties ¶
type StepProperties interface{}
type StreamLocation ¶
type StreamLocation struct {
PubsubLocation *PubsubLocation `json:"pubsubLocation,omitempty"`
SideInputLocation *StreamingSideInputLocation `json:"sideInputLocation,omitempty"`
StreamingStageLocation *StreamingStageLocation `json:"streamingStageLocation,omitempty"`
}
type StreamingComputationRanges ¶
type StreamingComputationRanges struct {
ComputationId string `json:"computationId,omitempty"`
RangeAssignments []*KeyRangeDataDiskAssignment `json:"rangeAssignments,omitempty"`
}
type StreamingComputationTask ¶
type StreamingComputationTask struct {
ComputationRanges []*StreamingComputationRanges `json:"computationRanges,omitempty"`
DataDisks []*MountedDataDisk `json:"dataDisks,omitempty"`
// Possible values:
// "STREAMING_COMPUTATION_TASK_START"
// "STREAMING_COMPUTATION_TASK_STOP"
// "STREAMING_COMPUTATION_TASK_UNKNOWN"
TaskType string `json:"taskType,omitempty"`
}
type StreamingSetupTask ¶
type StreamingSetupTask struct {
ReceiveWorkPort int64 `json:"receiveWorkPort,omitempty"`
StreamingComputationTopology *TopologyConfig `json:"streamingComputationTopology,omitempty"`
WorkerHarnessPort int64 `json:"workerHarnessPort,omitempty"`
}
type StreamingSideInputLocation ¶
type StreamingSideInputLocation struct {
Tag string `json:"tag,omitempty"`
}
type StreamingStageLocation ¶
type StreamingStageLocation struct {
StreamId string `json:"streamId,omitempty"`
}
type TaskRunnerSettings ¶
type TaskRunnerSettings struct {
Alsologtostderr bool `json:"alsologtostderr,omitempty"`
BaseTaskDir string `json:"baseTaskDir,omitempty"`
BaseUrl string `json:"baseUrl,omitempty"`
CommandlinesFileName string `json:"commandlinesFileName,omitempty"`
ContinueOnException bool `json:"continueOnException,omitempty"`
DataflowApiVersion string `json:"dataflowApiVersion,omitempty"`
HarnessCommand string `json:"harnessCommand,omitempty"`
LanguageHint string `json:"languageHint,omitempty"`
LogDir string `json:"logDir,omitempty"`
LogToSerialconsole bool `json:"logToSerialconsole,omitempty"`
LogUploadLocation string `json:"logUploadLocation,omitempty"`
OauthScopes []string `json:"oauthScopes,omitempty"`
ParallelWorkerSettings *WorkerSettings `json:"parallelWorkerSettings,omitempty"`
StreamingWorkerMainClass string `json:"streamingWorkerMainClass,omitempty"`
TaskGroup string `json:"taskGroup,omitempty"`
TaskUser string `json:"taskUser,omitempty"`
TempStoragePrefix string `json:"tempStoragePrefix,omitempty"`
VmId string `json:"vmId,omitempty"`
WorkflowFileName string `json:"workflowFileName,omitempty"`
}
type TopologyConfig ¶
type TopologyConfig struct {
Computations []*ComputationTopology `json:"computations,omitempty"`
DataDiskAssignments []*DataDiskAssignment `json:"dataDiskAssignments,omitempty"`
}
type WorkItem ¶
type WorkItem struct {
Configuration string `json:"configuration,omitempty"`
Id int64 `json:"id,omitempty,string"`
InitialReportIndex int64 `json:"initialReportIndex,omitempty,string"`
JobId string `json:"jobId,omitempty"`
LeaseExpireTime string `json:"leaseExpireTime,omitempty"`
MapTask *MapTask `json:"mapTask,omitempty"`
Packages []*Package `json:"packages,omitempty"`
ProjectId string `json:"projectId,omitempty"`
ReportStatusInterval string `json:"reportStatusInterval,omitempty"`
SeqMapTask *SeqMapTask `json:"seqMapTask,omitempty"`
ShellTask *ShellTask `json:"shellTask,omitempty"`
SourceOperationTask *SourceOperationRequest `json:"sourceOperationTask,omitempty"`
StreamingComputationTask *StreamingComputationTask `json:"streamingComputationTask,omitempty"`
StreamingSetupTask *StreamingSetupTask `json:"streamingSetupTask,omitempty"`
}
type WorkItemServiceState ¶
type WorkItemServiceState struct {
HarnessData WorkItemServiceStateHarnessData `json:"harnessData,omitempty"`
LeaseExpireTime string `json:"leaseExpireTime,omitempty"`
NextReportIndex int64 `json:"nextReportIndex,omitempty,string"`
ReportStatusInterval string `json:"reportStatusInterval,omitempty"`
SuggestedStopPoint *ApproximateProgress `json:"suggestedStopPoint,omitempty"`
SuggestedStopPosition *Position `json:"suggestedStopPosition,omitempty"`
}
type WorkItemServiceStateHarnessData ¶
type WorkItemServiceStateHarnessData interface{}
type WorkItemStatus ¶
type WorkItemStatus struct {
Completed bool `json:"completed,omitempty"`
DynamicSourceSplit *DynamicSourceSplit `json:"dynamicSourceSplit,omitempty"`
Errors []*Status `json:"errors,omitempty"`
MetricUpdates []*MetricUpdate `json:"metricUpdates,omitempty"`
Progress *ApproximateProgress `json:"progress,omitempty"`
ReportIndex int64 `json:"reportIndex,omitempty,string"`
RequestedLeaseDuration string `json:"requestedLeaseDuration,omitempty"`
SourceFork *SourceFork `json:"sourceFork,omitempty"`
SourceOperationResponse *SourceOperationResponse `json:"sourceOperationResponse,omitempty"`
StopPosition *Position `json:"stopPosition,omitempty"`
WorkItemId string `json:"workItemId,omitempty"`
}
type WorkerPool ¶
type WorkerPool struct {
AutoscalingSettings *AutoscalingSettings `json:"autoscalingSettings,omitempty"`
DataDisks []*Disk `json:"dataDisks,omitempty"`
// Possible values:
// "DEFAULT_PACKAGE_SET_JAVA"
// "DEFAULT_PACKAGE_SET_NONE"
// "DEFAULT_PACKAGE_SET_PYTHON"
// "DEFAULT_PACKAGE_SET_UNKNOWN"
DefaultPackageSet string `json:"defaultPackageSet,omitempty"`
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
DiskSourceImage string `json:"diskSourceImage,omitempty"`
DiskType string `json:"diskType,omitempty"`
Kind string `json:"kind,omitempty"`
MachineType string `json:"machineType,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
NumWorkers int64 `json:"numWorkers,omitempty"`
OnHostMaintenance string `json:"onHostMaintenance,omitempty"`
Packages []*Package `json:"packages,omitempty"`
PoolArgs WorkerPoolPoolArgs `json:"poolArgs,omitempty"`
TaskrunnerSettings *TaskRunnerSettings `json:"taskrunnerSettings,omitempty"`
// Possible values:
// "TEARDOWN_ALWAYS"
// "TEARDOWN_NEVER"
// "TEARDOWN_ON_SUCCESS"
// "TEARDOWN_POLICY_UNKNOWN"
TeardownPolicy string `json:"teardownPolicy,omitempty"`
Zone string `json:"zone,omitempty"`
}
type WorkerPoolPoolArgs ¶
type WorkerPoolPoolArgs interface{}
type WorkerSettings ¶
type WorkerSettings struct {
BaseUrl string `json:"baseUrl,omitempty"`
ReportingEnabled bool `json:"reportingEnabled,omitempty"`
ServicePath string `json:"servicePath,omitempty"`
ShuffleServicePath string `json:"shuffleServicePath,omitempty"`
TempStoragePrefix string `json:"tempStoragePrefix,omitempty"`
WorkerId string `json:"workerId,omitempty"`
}
type WriteInstruction ¶
type WriteInstruction struct {
Input *InstructionInput `json:"input,omitempty"`
Sink *Sink `json:"sink,omitempty"`
}