vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+1513 -1505
View File
File diff suppressed because it is too large Load Diff
+151 -134
View File
@@ -167,8 +167,8 @@ type AcceleratorConfig struct {
}
func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) {
type noMethod AcceleratorConfig
raw := noMethod(*s)
type NoMethod AcceleratorConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -183,7 +183,7 @@ type Cluster struct {
// project must be unique. Names of deleted clusters can be reused.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID (Unique Universal
// ClusterUuid: Output only. A cluster UUID (Unique Universal
// Identifier). Cloud Dataproc generates this value when it creates the
// cluster.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -209,10 +209,10 @@ type Cluster struct {
// cluster belongs to.
ProjectId string `json:"projectId,omitempty"`
// Status: Output-only. Cluster status.
// Status: Output only. Cluster status.
Status *ClusterStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous cluster status.
// StatusHistory: Output only. The previous cluster status.
StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -237,8 +237,8 @@ type Cluster struct {
}
func (s *Cluster) MarshalJSON() ([]byte, error) {
type noMethod Cluster
raw := noMethod(*s)
type NoMethod Cluster
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -307,8 +307,8 @@ type ClusterConfig struct {
}
func (s *ClusterConfig) MarshalJSON() ([]byte, error) {
type noMethod ClusterConfig
raw := noMethod(*s)
type NoMethod ClusterConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -340,35 +340,35 @@ type ClusterMetrics struct {
}
func (s *ClusterMetrics) MarshalJSON() ([]byte, error) {
type noMethod ClusterMetrics
raw := noMethod(*s)
type NoMethod ClusterMetrics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClusterOperationMetadata: Metadata describing the operation.
type ClusterOperationMetadata struct {
// ClusterName: Output-only. Name of the cluster for the operation.
// ClusterName: Output only. Name of the cluster for the operation.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. Cluster UUID for the operation.
// ClusterUuid: Output only. Cluster UUID for the operation.
ClusterUuid string `json:"clusterUuid,omitempty"`
// Description: Output-only. Short description of operation.
// Description: Output only. Short description of operation.
Description string `json:"description,omitempty"`
// Labels: Output-only. Labels associated with the operation
// Labels: Output only. Labels associated with the operation
Labels map[string]string `json:"labels,omitempty"`
// OperationType: Output-only. The operation type.
// OperationType: Output only. The operation type.
OperationType string `json:"operationType,omitempty"`
// Status: Output-only. Current operation status.
// Status: Output only. Current operation status.
Status *ClusterOperationStatus `json:"status,omitempty"`
// StatusHistory: Output-only. The previous operation status.
// StatusHistory: Output only. The previous operation status.
StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"`
// Warnings: Output-only. Errors encountered during operation execution.
// Warnings: Output only. Errors encountered during operation execution.
Warnings []string `json:"warnings,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClusterName") to
@@ -389,22 +389,22 @@ type ClusterOperationMetadata struct {
}
func (s *ClusterOperationMetadata) MarshalJSON() ([]byte, error) {
type noMethod ClusterOperationMetadata
raw := noMethod(*s)
type NoMethod ClusterOperationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClusterOperationStatus: The status of the operation.
type ClusterOperationStatus struct {
// Details: Output-only.A message containing any operation metadata
// Details: Output only. A message containing any operation metadata
// details.
Details string `json:"details,omitempty"`
// InnerState: Output-only. A message containing the detailed operation
// InnerState: Output only. A message containing the detailed operation
// state.
InnerState string `json:"innerState,omitempty"`
// State: Output-only. A message containing the operation state.
// State: Output only. A message containing the operation state.
//
// Possible values:
// "UNKNOWN" - Unused.
@@ -413,7 +413,7 @@ type ClusterOperationStatus struct {
// "DONE" - The operation is done; either cancelled or completed.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time this state was entered.
// 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
@@ -434,17 +434,17 @@ type ClusterOperationStatus struct {
}
func (s *ClusterOperationStatus) MarshalJSON() ([]byte, error) {
type noMethod ClusterOperationStatus
raw := noMethod(*s)
type NoMethod ClusterOperationStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClusterStatus: The status of a cluster and its instances.
type ClusterStatus struct {
// Detail: Output-only. Optional details of cluster's state.
// Detail: Output only. Optional details of cluster's state.
Detail string `json:"detail,omitempty"`
// State: Output-only. The cluster's state.
// State: Output only. The cluster's state.
//
// Possible values:
// "UNKNOWN" - The cluster state is unknown.
@@ -459,14 +459,14 @@ type ClusterStatus struct {
// and process jobs.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. Time when this state was entered.
// StateStartTime: Output only. Time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information that includes
// Substate: Output only. Additional state information that includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "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.
@@ -493,8 +493,8 @@ type ClusterStatus struct {
}
func (s *ClusterStatus) MarshalJSON() ([]byte, error) {
type noMethod ClusterStatus
raw := noMethod(*s)
type NoMethod ClusterStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -505,7 +505,7 @@ type DiagnoseClusterRequest struct {
// DiagnoseClusterResults: The location of diagnostic output.
type DiagnoseClusterResults struct {
// OutputUri: Output-only. The Google Cloud Storage URI of the
// OutputUri: Output only. The Google 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"`
@@ -528,8 +528,8 @@ type DiagnoseClusterResults struct {
}
func (s *DiagnoseClusterResults) MarshalJSON() ([]byte, error) {
type noMethod DiagnoseClusterResults
raw := noMethod(*s)
type NoMethod DiagnoseClusterResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -568,8 +568,8 @@ type DiskConfig struct {
}
func (s *DiskConfig) MarshalJSON() ([]byte, error) {
type noMethod DiskConfig
raw := noMethod(*s)
type NoMethod DiskConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -696,8 +696,8 @@ type GceClusterConfig struct {
}
func (s *GceClusterConfig) MarshalJSON() ([]byte, error) {
type noMethod GceClusterConfig
raw := noMethod(*s)
type NoMethod GceClusterConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -767,8 +767,8 @@ type HadoopJob struct {
}
func (s *HadoopJob) MarshalJSON() ([]byte, error) {
type noMethod HadoopJob
raw := noMethod(*s)
type NoMethod HadoopJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -821,8 +821,8 @@ type HiveJob struct {
}
func (s *HiveJob) MarshalJSON() ([]byte, error) {
type noMethod HiveJob
raw := noMethod(*s)
type NoMethod HiveJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -838,7 +838,7 @@ type InstanceGroupConfig struct {
// DiskConfig: Optional. Disk option config settings.
DiskConfig *DiskConfig `json:"diskConfig,omitempty"`
// ImageUri: Output-only. The Google Compute Engine image resource used
// ImageUri: Output only. The Google Compute Engine image resource used
// for cluster instances. Inferred from SoftwareConfig.image_version.
ImageUri string `json:"imageUri,omitempty"`
@@ -863,7 +863,7 @@ type InstanceGroupConfig struct {
// n1-standard-2
MachineTypeUri string `json:"machineTypeUri,omitempty"`
// ManagedGroupConfig: Output-only. The config for Google Compute Engine
// ManagedGroupConfig: Output only. The config for Google Compute Engine
// Instance Group Manager that manages this group. This is only used for
// preemptible instance groups.
ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"`
@@ -890,20 +890,20 @@ type InstanceGroupConfig struct {
}
func (s *InstanceGroupConfig) MarshalJSON() ([]byte, error) {
type noMethod InstanceGroupConfig
raw := noMethod(*s)
type NoMethod InstanceGroupConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Job: A Cloud Dataproc job resource.
type Job struct {
// DriverControlFilesUri: Output-only. If present, the location of
// 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
// DriverOutputResourceUri: Output only. A URI pointing to the location
// of the stdout of the job's driver program.
DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"`
@@ -946,15 +946,15 @@ type Job struct {
// SparkSqlJob: Job is a SparkSql job.
SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"`
// Status: Output-only. The job status. Additional application-specific
// 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: Output only. The previous job status.
StatusHistory []*JobStatus `json:"statusHistory,omitempty"`
// YarnApplications: Output-only. The collection of YARN applications
// 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"`
@@ -983,8 +983,8 @@ type Job struct {
}
func (s *Job) MarshalJSON() ([]byte, error) {
type noMethod Job
raw := noMethod(*s)
type NoMethod Job
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -994,7 +994,7 @@ type JobPlacement struct {
// submitted.
ClusterName string `json:"clusterName,omitempty"`
// ClusterUuid: Output-only. A cluster UUID generated by the Cloud
// ClusterUuid: Output only. A cluster UUID generated by the Cloud
// Dataproc service when the job is submitted.
ClusterUuid string `json:"clusterUuid,omitempty"`
@@ -1016,8 +1016,8 @@ type JobPlacement struct {
}
func (s *JobPlacement) MarshalJSON() ([]byte, error) {
type noMethod JobPlacement
raw := noMethod(*s)
type NoMethod JobPlacement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1053,14 +1053,12 @@ type JobReference struct {
}
func (s *JobReference) MarshalJSON() ([]byte, error) {
type noMethod JobReference
raw := noMethod(*s)
type NoMethod JobReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// JobScheduling: Job scheduling options.Beta Feature: These options are
// available for testing purposes only. They may be changed before final
// release.
// JobScheduling: Job scheduling options.
type JobScheduling struct {
// MaxFailuresPerHour: Optional. Maximum number of times per hour a
// driver may be restarted as a result of driver terminating with
@@ -1088,18 +1086,18 @@ type JobScheduling struct {
}
func (s *JobScheduling) MarshalJSON() ([]byte, error) {
type noMethod JobScheduling
raw := noMethod(*s)
type NoMethod JobScheduling
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// JobStatus: Cloud Dataproc job status.
type JobStatus struct {
// Details: Output-only. Optional job state details, such as an error
// 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.
// State: Output only. A state message specifying the overall job state.
//
// Possible values:
// "STATE_UNSPECIFIED" - The job state is unknown.
@@ -1121,14 +1119,14 @@ type JobStatus struct {
// only.
State string `json:"state,omitempty"`
// StateStartTime: Output-only. The time when this state was entered.
// StateStartTime: Output only. The time when this state was entered.
StateStartTime string `json:"stateStartTime,omitempty"`
// Substate: Output-only. Additional state information, which includes
// Substate: Output only. Additional state information, which includes
// status reported by the agent.
//
// Possible values:
// "UNSPECIFIED"
// "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
@@ -1158,17 +1156,17 @@ type JobStatus struct {
}
func (s *JobStatus) MarshalJSON() ([]byte, error) {
type noMethod JobStatus
raw := noMethod(*s)
type NoMethod JobStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListClustersResponse: The list of all clusters in a project.
type ListClustersResponse struct {
// Clusters: Output-only. The clusters in the project.
// Clusters: Output only. The clusters in the project.
Clusters []*Cluster `json:"clusters,omitempty"`
// NextPageToken: Output-only. This token is included in the response if
// NextPageToken: Output only. This token is included in the response if
// there are more results to fetch. To fetch additional results, provide
// this value as the page_token in a subsequent ListClustersRequest.
NextPageToken string `json:"nextPageToken,omitempty"`
@@ -1195,14 +1193,14 @@ type ListClustersResponse struct {
}
func (s *ListClustersResponse) MarshalJSON() ([]byte, error) {
type noMethod ListClustersResponse
raw := noMethod(*s)
type NoMethod ListClustersResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListJobsResponse: A list of jobs in a project.
type ListJobsResponse struct {
// Jobs: Output-only. Jobs list.
// Jobs: Output only. Jobs list.
Jobs []*Job `json:"jobs,omitempty"`
// NextPageToken: Optional. This token is included in the response if
@@ -1233,8 +1231,8 @@ type ListJobsResponse struct {
}
func (s *ListJobsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListJobsResponse
raw := noMethod(*s)
type NoMethod ListJobsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1270,8 +1268,8 @@ type ListOperationsResponse struct {
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListOperationsResponse
raw := noMethod(*s)
type NoMethod ListOperationsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1301,19 +1299,19 @@ type LoggingConfig struct {
}
func (s *LoggingConfig) MarshalJSON() ([]byte, error) {
type noMethod LoggingConfig
raw := noMethod(*s)
type NoMethod LoggingConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedGroupConfig: Specifies the resources used to actively manage
// an instance group.
type ManagedGroupConfig struct {
// InstanceGroupManagerName: Output-only. The name of the Instance Group
// 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
// InstanceTemplateName: Output only. The name of the Instance Template
// used for the Managed Instance Group.
InstanceTemplateName string `json:"instanceTemplateName,omitempty"`
@@ -1337,8 +1335,8 @@ type ManagedGroupConfig struct {
}
func (s *ManagedGroupConfig) MarshalJSON() ([]byte, error) {
type noMethod ManagedGroupConfig
raw := noMethod(*s)
type NoMethod ManagedGroupConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1375,8 +1373,8 @@ type NodeInitializationAction struct {
}
func (s *NodeInitializationAction) MarshalJSON() ([]byte, error) {
type noMethod NodeInitializationAction
raw := noMethod(*s)
type NoMethod NodeInitializationAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1436,8 +1434,8 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
type NoMethod Operation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1494,8 +1492,8 @@ type PigJob struct {
}
func (s *PigJob) MarshalJSON() ([]byte, error) {
type noMethod PigJob
raw := noMethod(*s)
type NoMethod PigJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1556,8 +1554,8 @@ type PySparkJob struct {
}
func (s *PySparkJob) MarshalJSON() ([]byte, error) {
type noMethod PySparkJob
raw := noMethod(*s)
type NoMethod PySparkJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1598,8 +1596,8 @@ type QueryList struct {
}
func (s *QueryList) MarshalJSON() ([]byte, error) {
type noMethod QueryList
raw := noMethod(*s)
type NoMethod QueryList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1644,8 +1642,8 @@ type SoftwareConfig struct {
}
func (s *SoftwareConfig) MarshalJSON() ([]byte, error) {
type noMethod SoftwareConfig
raw := noMethod(*s)
type NoMethod SoftwareConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1707,8 +1705,8 @@ type SparkJob struct {
}
func (s *SparkJob) MarshalJSON() ([]byte, error) {
type noMethod SparkJob
raw := noMethod(*s)
type NoMethod SparkJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1755,8 +1753,8 @@ type SparkSqlJob struct {
}
func (s *SparkSqlJob) MarshalJSON() ([]byte, error) {
type noMethod SparkSqlJob
raw := noMethod(*s)
type NoMethod SparkSqlJob
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1831,8 +1829,8 @@ type Status struct {
}
func (s *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1859,8 +1857,8 @@ type SubmitJobRequest struct {
}
func (s *SubmitJobRequest) MarshalJSON() ([]byte, error) {
type noMethod SubmitJobRequest
raw := noMethod(*s)
type NoMethod SubmitJobRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1915,18 +1913,18 @@ type YarnApplication struct {
}
func (s *YarnApplication) MarshalJSON() ([]byte, error) {
type noMethod YarnApplication
raw := noMethod(*s)
type NoMethod YarnApplication
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *YarnApplication) UnmarshalJSON(data []byte) error {
type noMethod YarnApplication
type NoMethod YarnApplication
var s1 struct {
Progress gensupport.JSONFloat64 `json:"progress"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -2037,7 +2035,7 @@ func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*O
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2177,7 +2175,7 @@ func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*O
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2330,7 +2328,7 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2491,7 +2489,7 @@ func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Clus
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2678,7 +2676,7 @@ func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*Lis
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2776,6 +2774,19 @@ func (r *ProjectsRegionsClustersService) Patch(projectId string, region string,
return c
}
// 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.Only supported on Dataproc image versions 1.2 and higher.
func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall {
c.urlParams_.Set("gracefulDecommissionTimeout", gracefulDecommissionTimeout)
return c
}
// 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
@@ -2898,7 +2909,7 @@ func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Op
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2919,6 +2930,12 @@ func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Op
// "required": true,
// "type": "string"
// },
// "gracefulDecommissionTimeout": {
// "description": "Optional. 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.Only supported on Dataproc image versions 1.2 and higher.",
// "format": "google-duration",
// "location": "query",
// "type": "string"
// },
// "projectId": {
// "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.",
// "location": "path",
@@ -3060,7 +3077,7 @@ func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3208,7 +3225,7 @@ func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3366,7 +3383,7 @@ func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, err
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3443,7 +3460,7 @@ func (c *ProjectsRegionsJobsListCall) ClusterName(clusterName string) *ProjectsR
// 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 INACTIVE. Only the
// 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 = *
@@ -3453,8 +3470,8 @@ func (c *ProjectsRegionsJobsListCall) Filter(filter string) *ProjectsRegionsJobs
}
// JobStateMatcher sets the optional parameter "jobStateMatcher":
// Specifies enumerated categories of jobs to list (default = match ALL
// jobs).
// Specifies enumerated categories of jobs to list. (default = match ALL
// jobs).If filter is provided, jobStateMatcher will be ignored.
//
// Possible values:
// "ALL"
@@ -3569,7 +3586,7 @@ func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJob
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3589,12 +3606,12 @@ func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJob
// "type": "string"
// },
// "filter": {
// "description": "Optional. 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 INACTIVE. 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 = *",
// "description": "Optional. 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 = *",
// "location": "query",
// "type": "string"
// },
// "jobStateMatcher": {
// "description": "Optional. Specifies enumerated categories of jobs to list (default = match ALL jobs).",
// "description": "Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.",
// "enum": [
// "ALL",
// "ACTIVE",
@@ -3777,7 +3794,7 @@ func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, e
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3934,7 +3951,7 @@ func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -4077,7 +4094,7 @@ func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -4205,7 +4222,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -4346,7 +4363,7 @@ func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Op
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -4515,7 +4532,7 @@ func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*L
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil