vendor: update all dependencies to latest versions
This commit is contained in:
parent
911d121bb9
commit
b017fcfe9a
3048 changed files with 537057 additions and 189681 deletions
6527
vendor/google.golang.org/api/dataflow/v1b3/dataflow-api.json
generated
vendored
6527
vendor/google.golang.org/api/dataflow/v1b3/dataflow-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
476
vendor/google.golang.org/api/dataflow/v1b3/dataflow-gen.go
generated
vendored
476
vendor/google.golang.org/api/dataflow/v1b3/dataflow-gen.go
generated
vendored
|
@ -837,6 +837,10 @@ type CounterStructuredName struct {
|
|||
// counter's origin.
|
||||
OriginNamespace string `json:"originNamespace,omitempty"`
|
||||
|
||||
// OriginalShuffleStepName: The GroupByKey step name from the original
|
||||
// graph.
|
||||
OriginalShuffleStepName string `json:"originalShuffleStepName,omitempty"`
|
||||
|
||||
// OriginalStepName: System generated name of the original step in the
|
||||
// user's graph, before
|
||||
// optimization.
|
||||
|
@ -850,6 +854,15 @@ type CounterStructuredName struct {
|
|||
// "VALUE" - Counter reports a value.
|
||||
Portion string `json:"portion,omitempty"`
|
||||
|
||||
// SideInput: ID of a side input being read from/written to. Side inputs
|
||||
// are identified
|
||||
// by a pair of (reader, input_index). The reader is usually equal to
|
||||
// the
|
||||
// original name, but it may be different, if a ParDo emits it's
|
||||
// Iterator /
|
||||
// Map side input object.
|
||||
SideInput *SideInputId `json:"sideInput,omitempty"`
|
||||
|
||||
// WorkerId: ID of a particular worker.
|
||||
WorkerId string `json:"workerId,omitempty"`
|
||||
|
||||
|
@ -1314,9 +1327,8 @@ type DistributionUpdate struct {
|
|||
// distribution.
|
||||
Count *SplitInt64 `json:"count,omitempty"`
|
||||
|
||||
// LogBuckets: (Optional) Logarithmic histogram of values.
|
||||
// Each log may be in no more than one bucket. Order does not matter.
|
||||
LogBuckets []*LogBucket `json:"logBuckets,omitempty"`
|
||||
// Histogram: (Optional) Histogram of value counts for the distribution.
|
||||
Histogram *Histogram `json:"histogram,omitempty"`
|
||||
|
||||
// Max: The maximum value present in the distribution.
|
||||
Max *SplitInt64 `json:"max,omitempty"`
|
||||
|
@ -1913,6 +1925,57 @@ func (s *GetTemplateResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Histogram: Histogram of value counts for a distribution.
|
||||
//
|
||||
// Buckets have an inclusive lower bound and exclusive upper bound and
|
||||
// use
|
||||
// "1,2,5 bucketing": The first bucket range is from [0,1) and all
|
||||
// subsequent
|
||||
// bucket boundaries are powers of ten multiplied by 1, 2, or 5. Thus,
|
||||
// bucket
|
||||
// boundaries are 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000,
|
||||
// ...
|
||||
// Negative values are not supported.
|
||||
type Histogram struct {
|
||||
// BucketCounts: Counts of values in each bucket. For efficiency, prefix
|
||||
// and trailing
|
||||
// buckets with count = 0 are elided. Buckets can store the full range
|
||||
// of
|
||||
// values of an unsigned long, with ULLONG_MAX falling into the 59th
|
||||
// bucket
|
||||
// with range [1e19, 2e19).
|
||||
BucketCounts googleapi.Int64s `json:"bucketCounts,omitempty"`
|
||||
|
||||
// FirstBucketOffset: Starting index of first stored bucket. The
|
||||
// non-inclusive upper-bound of
|
||||
// the ith bucket is given by:
|
||||
// pow(10,(i-first_bucket_offset)/3) *
|
||||
// (1,2,5)[(i-first_bucket_offset)%3]
|
||||
FirstBucketOffset int64 `json:"firstBucketOffset,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BucketCounts") 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. "BucketCounts") 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:"-"`
|
||||
}
|
||||
|
||||
func (s *Histogram) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Histogram
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// InstructionInput: An input of an instruction, as a reference to an
|
||||
// output of a
|
||||
// producer instruction.
|
||||
|
@ -2895,44 +2958,6 @@ func (s *ListJobsResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// LogBucket: Bucket of values for Distribution's logarithmic histogram.
|
||||
type LogBucket struct {
|
||||
// Count: Number of values in this bucket.
|
||||
Count int64 `json:"count,omitempty,string"`
|
||||
|
||||
// Log: floor(log2(value)); defined to be zero for nonpositive values.
|
||||
// log(-1) = 0
|
||||
// log(0) = 0
|
||||
// log(1) = 0
|
||||
// log(2) = 1
|
||||
// log(3) = 1
|
||||
// log(4) = 2
|
||||
// log(5) = 2
|
||||
Log int64 `json:"log,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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:"-"`
|
||||
}
|
||||
|
||||
func (s *LogBucket) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LogBucket
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// MapTask: MapTask consists of an ordered set of instructions, each of
|
||||
// which
|
||||
// describes one particular low-level operation for the worker
|
||||
|
@ -4176,6 +4201,40 @@ func (s *ShellTask) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SideInputId: Uniquely identifies a side input.
|
||||
type SideInputId struct {
|
||||
// DeclaringStepName: The step that receives and usually consumes this
|
||||
// side input.
|
||||
DeclaringStepName string `json:"declaringStepName,omitempty"`
|
||||
|
||||
// InputIndex: The index of the side input, from the list of
|
||||
// non_parallel_inputs.
|
||||
InputIndex int64 `json:"inputIndex,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DeclaringStepName")
|
||||
// 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. "DeclaringStepName") 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:"-"`
|
||||
}
|
||||
|
||||
func (s *SideInputId) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SideInputId
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// SideInputInfo: Information about a side input of a DoFn or an input
|
||||
// of a SeqDoFn.
|
||||
type SideInputInfo struct {
|
||||
|
@ -4913,9 +4972,9 @@ type Status struct {
|
|||
// google.rpc.Code.
|
||||
Code int64 `json:"code,omitempty"`
|
||||
|
||||
// Details: A list of messages that carry the error details. There will
|
||||
// be a
|
||||
// common set of message types for APIs to use.
|
||||
// Details: 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
|
||||
|
@ -5912,6 +5971,10 @@ type WorkItemStatus struct {
|
|||
// P' and R' must be together equivalent to P, etc.
|
||||
StopPosition *Position `json:"stopPosition,omitempty"`
|
||||
|
||||
// TotalThrottlerWaitTimeSeconds: Total time the worker spent being
|
||||
// throttled by external systems.
|
||||
TotalThrottlerWaitTimeSeconds float64 `json:"totalThrottlerWaitTimeSeconds,omitempty"`
|
||||
|
||||
// WorkItemId: Identifies the WorkItem.
|
||||
WorkItemId string `json:"workItemId,omitempty"`
|
||||
|
||||
|
@ -5938,6 +6001,20 @@ func (s *WorkItemStatus) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *WorkItemStatus) UnmarshalJSON(data []byte) error {
|
||||
type noMethod WorkItemStatus
|
||||
var s1 struct {
|
||||
TotalThrottlerWaitTimeSeconds gensupport.JSONFloat64 `json:"totalThrottlerWaitTimeSeconds"`
|
||||
*noMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.TotalThrottlerWaitTimeSeconds = float64(s1.TotalThrottlerWaitTimeSeconds)
|
||||
return nil
|
||||
}
|
||||
|
||||
// WorkerHealthReport: WorkerHealthReport contains information about the
|
||||
// health of a worker.
|
||||
//
|
||||
|
@ -6057,6 +6134,9 @@ type WorkerMessage struct {
|
|||
// WorkerMetrics: Resource metrics reported by workers.
|
||||
WorkerMetrics *ResourceUtilizationReport `json:"workerMetrics,omitempty"`
|
||||
|
||||
// WorkerShutdownNotice: Shutdown notice by workers.
|
||||
WorkerShutdownNotice *WorkerShutdownNotice `json:"workerShutdownNotice,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Labels") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -6177,6 +6257,10 @@ type WorkerMessageResponse struct {
|
|||
// (currently empty).
|
||||
WorkerMetricsResponse *ResourceUtilizationReportResponse `json:"workerMetricsResponse,omitempty"`
|
||||
|
||||
// WorkerShutdownNoticeResponse: Service's response to shutdown notice
|
||||
// (currently empty).
|
||||
WorkerShutdownNoticeResponse *WorkerShutdownNoticeResponse `json:"workerShutdownNoticeResponse,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "WorkerHealthReportResponse") to unconditionally include in API
|
||||
// requests. By default, fields with empty values are omitted from API
|
||||
|
@ -6450,6 +6534,51 @@ func (s *WorkerSettings) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// WorkerShutdownNotice: Shutdown notification from workers. This is to
|
||||
// be sent by the shutdown
|
||||
// script of the worker VM so that the backend knows that the VM is
|
||||
// being
|
||||
// shut down.
|
||||
type WorkerShutdownNotice struct {
|
||||
// Reason: The reason for the worker shutdown.
|
||||
// Current possible values are:
|
||||
// "UNKNOWN": shutdown reason is unknown.
|
||||
// "PREEMPTION": shutdown reason is preemption.
|
||||
// Other possible reasons may be added in the future.
|
||||
// Note that this must match the names of the enum specified
|
||||
// in
|
||||
// google3/cloud/dataflow/router/protos/cloud_worker_messages_service.
|
||||
// proto.
|
||||
Reason string `json:"reason,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Reason") 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. "Reason") 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:"-"`
|
||||
}
|
||||
|
||||
func (s *WorkerShutdownNotice) MarshalJSON() ([]byte, error) {
|
||||
type noMethod WorkerShutdownNotice
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// WorkerShutdownNoticeResponse: Service-side response to WorkerMessage
|
||||
// issuing shutdown notice.
|
||||
type WorkerShutdownNoticeResponse struct {
|
||||
}
|
||||
|
||||
// WriteInstruction: An instruction that writes records.
|
||||
// Takes one input, produces no outputs.
|
||||
type WriteInstruction struct {
|
||||
|
@ -6619,6 +6748,257 @@ func (c *ProjectsWorkerMessagesCall) Do(opts ...googleapi.CallOption) (*SendWork
|
|||
|
||||
}
|
||||
|
||||
// method id "dataflow.projects.jobs.aggregated":
|
||||
|
||||
type ProjectsJobsAggregatedCall struct {
|
||||
s *Service
|
||||
projectId string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Aggregated: List the jobs of a project across all regions.
|
||||
func (r *ProjectsJobsService) Aggregated(projectId string) *ProjectsJobsAggregatedCall {
|
||||
c := &ProjectsJobsAggregatedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
return c
|
||||
}
|
||||
|
||||
// Filter sets the optional parameter "filter": The kind of filter to
|
||||
// use.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNKNOWN"
|
||||
// "ALL"
|
||||
// "TERMINATED"
|
||||
// "ACTIVE"
|
||||
func (c *ProjectsJobsAggregatedCall) Filter(filter string) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("filter", filter)
|
||||
return c
|
||||
}
|
||||
|
||||
// Location sets the optional parameter "location": The location that
|
||||
// contains this job.
|
||||
func (c *ProjectsJobsAggregatedCall) Location(location string) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("location", location)
|
||||
return c
|
||||
}
|
||||
|
||||
// PageSize sets the optional parameter "pageSize": If there are many
|
||||
// jobs, limit response to at most this many.
|
||||
// The actual number of jobs returned will be the lesser of
|
||||
// max_responses
|
||||
// and an unspecified server-defined limit.
|
||||
func (c *ProjectsJobsAggregatedCall) PageSize(pageSize int64) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Set this to the
|
||||
// 'next_page_token' field of a previous response
|
||||
// to request additional results in a long list.
|
||||
func (c *ProjectsJobsAggregatedCall) PageToken(pageToken string) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
}
|
||||
|
||||
// View sets the optional parameter "view": Level of information
|
||||
// requested in response. Default is `JOB_VIEW_SUMMARY`.
|
||||
//
|
||||
// Possible values:
|
||||
// "JOB_VIEW_UNKNOWN"
|
||||
// "JOB_VIEW_SUMMARY"
|
||||
// "JOB_VIEW_ALL"
|
||||
// "JOB_VIEW_DESCRIPTION"
|
||||
func (c *ProjectsJobsAggregatedCall) View(view string) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("view", view)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *ProjectsJobsAggregatedCall) Fields(s ...googleapi.Field) *ProjectsJobsAggregatedCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *ProjectsJobsAggregatedCall) IfNoneMatch(entityTag string) *ProjectsJobsAggregatedCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// 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 (c *ProjectsJobsAggregatedCall) Context(ctx context.Context) *ProjectsJobsAggregatedCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *ProjectsJobsAggregatedCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ProjectsJobsAggregatedCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1b3/projects/{projectId}/jobs:aggregated")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"projectId": c.projectId,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "dataflow.projects.jobs.aggregated" 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 (c *ProjectsJobsAggregatedCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &ListJobsResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "List the jobs of a project across all regions.",
|
||||
// "flatPath": "v1b3/projects/{projectId}/jobs:aggregated",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "dataflow.projects.jobs.aggregated",
|
||||
// "parameterOrder": [
|
||||
// "projectId"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "filter": {
|
||||
// "description": "The kind of filter to use.",
|
||||
// "enum": [
|
||||
// "UNKNOWN",
|
||||
// "ALL",
|
||||
// "TERMINATED",
|
||||
// "ACTIVE"
|
||||
// ],
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "location": {
|
||||
// "description": "The location that contains this job.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "pageSize": {
|
||||
// "description": "If there are many jobs, limit response to at most this many.\nThe actual number of jobs returned will be the lesser of max_responses\nand an unspecified server-defined limit.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Set this to the 'next_page_token' field of a previous response\nto request additional results in a long list.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "projectId": {
|
||||
// "description": "The project which owns the jobs.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "view": {
|
||||
// "description": "Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.",
|
||||
// "enum": [
|
||||
// "JOB_VIEW_UNKNOWN",
|
||||
// "JOB_VIEW_SUMMARY",
|
||||
// "JOB_VIEW_ALL",
|
||||
// "JOB_VIEW_DESCRIPTION"
|
||||
// ],
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1b3/projects/{projectId}/jobs:aggregated",
|
||||
// "response": {
|
||||
// "$ref": "ListJobsResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/compute",
|
||||
// "https://www.googleapis.com/auth/compute.readonly",
|
||||
// "https://www.googleapis.com/auth/userinfo.email"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *ProjectsJobsAggregatedCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error {
|
||||
c.ctx_ = ctx
|
||||
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
|
||||
for {
|
||||
x, err := c.Do()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f(x); err != nil {
|
||||
return err
|
||||
}
|
||||
if x.NextPageToken == "" {
|
||||
return nil
|
||||
}
|
||||
c.PageToken(x.NextPageToken)
|
||||
}
|
||||
}
|
||||
|
||||
// method id "dataflow.projects.jobs.create":
|
||||
|
||||
type ProjectsJobsCreateCall struct {
|
||||
|
@ -7179,7 +7559,7 @@ type ProjectsJobsListCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: List the jobs of a project.
|
||||
// List: List the jobs of a project in a given region.
|
||||
func (r *ProjectsJobsService) List(projectId string) *ProjectsJobsListCall {
|
||||
c := &ProjectsJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
@ -7331,7 +7711,7 @@ func (c *ProjectsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsRespon
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "List the jobs of a project.",
|
||||
// "description": "List the jobs of a project in a given region.",
|
||||
// "flatPath": "v1b3/projects/{projectId}/jobs",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "dataflow.projects.jobs.list",
|
||||
|
@ -9140,7 +9520,7 @@ type ProjectsLocationsJobsListCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: List the jobs of a project.
|
||||
// List: List the jobs of a project in a given region.
|
||||
func (r *ProjectsLocationsJobsService) List(projectId string, location string) *ProjectsLocationsJobsListCall {
|
||||
c := &ProjectsLocationsJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
@ -9287,7 +9667,7 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJ
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "List the jobs of a project.",
|
||||
// "description": "List the jobs of a project in a given region.",
|
||||
// "flatPath": "v1b3/projects/{projectId}/locations/{location}/jobs",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "dataflow.projects.locations.jobs.list",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue