Skip to content

Commit

Permalink
feat(dataproc): update the API
Browse files Browse the repository at this point in the history
#### dataproc:v1
The following keys were added:
- schemas.JobScheduling.properties.maxFailuresTotal.description
- schemas.JobScheduling.properties.maxFailuresTotal.format
- schemas.JobScheduling.properties.maxFailuresTotal.type

The following keys were changed:
- schemas.LifecycleConfig.properties.idleDeleteTtl.description
- schemas.NodeGroupAffinity.properties.nodeGroupUri.description
- schemas.SoftwareConfig.properties.optionalComponents.items.enumDescriptions

#### dataproc:v1beta2
The following keys were added:
- schemas.JobScheduling.properties.maxFailuresTotal.description
- schemas.JobScheduling.properties.maxFailuresTotal.format
- schemas.JobScheduling.properties.maxFailuresTotal.type

The following keys were changed:
- schemas.LifecycleConfig.properties.idleDeleteTtl.description
- schemas.NodeGroupAffinity.properties.nodeGroupUri.description
- schemas.SoftwareConfig.properties.optionalComponents.items.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 21, 2020
1 parent a5848ec commit b8e9a1e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
13 changes: 9 additions & 4 deletions discovery/dataproc-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@
}
}
},
"revision": "20200925",
"revision": "20201015",
"rootUrl": "https://dataproc.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -3183,6 +3183,11 @@
"description": "Optional. Maximum number of times per hour a driver may be restarted as a result of driver exiting 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.",
"format": "int32",
"type": "integer"
},
"maxFailuresTotal": {
"description": "Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240",
"format": "int32",
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -3334,7 +3339,7 @@
"type": "string"
},
"idleDeleteTtl": {
"description": "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).",
"description": "Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).",
"format": "google-duration",
"type": "string"
},
Expand Down Expand Up @@ -3524,7 +3529,7 @@
"id": "NodeGroupAffinity",
"properties": {
"nodeGroupUri": {
"description": "Required. The name of a single node group (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) a cluster will be created on.",
"description": "Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1",
"type": "string"
}
},
Expand Down Expand Up @@ -3933,7 +3938,7 @@
],
"enumDescriptions": [
"Unspecified component. Specifying this will cause Cluster creation to fail.",
"The Anaconda python distribution.",
"The Anaconda python distribution. The Anaconda component is not supported in the Dataproc preview 2.0 image. The 2.0 preview image is pre-installed with Miniconda.",
"Docker",
"Flink",
"The Hive Web HCatalog (the REST service for accessing HCatalog).",
Expand Down
13 changes: 9 additions & 4 deletions discovery/dataproc-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@
}
}
},
"revision": "20200925",
"revision": "20201015",
"rootUrl": "https://dataproc.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -3318,6 +3318,11 @@
"description": "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.",
"format": "int32",
"type": "integer"
},
"maxFailuresTotal": {
"description": "Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240",
"format": "int32",
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -3469,7 +3474,7 @@
"type": "string"
},
"idleDeleteTtl": {
"description": "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).",
"description": "Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).",
"format": "google-duration",
"type": "string"
},
Expand Down Expand Up @@ -3685,7 +3690,7 @@
"id": "NodeGroupAffinity",
"properties": {
"nodeGroupUri": {
"description": "Required. The name of a single node group (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) a cluster will be created on.",
"description": "Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1",
"type": "string"
}
},
Expand Down Expand Up @@ -4097,7 +4102,7 @@
],
"enumDescriptions": [
"Unspecified component. Specifying this will cause Cluster creation to fail.",
"The Anaconda python distribution.",
"The Anaconda python distribution. The Anaconda component is not supported in the Dataproc preview 2.0 image. The 2.0 preview image is pre-installed with Miniconda.",
"Docker",
"The Druid query engine.",
"Flink",
Expand Down
8 changes: 6 additions & 2 deletions src/apis/dataproc/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ export namespace dataproc_v1 {
* Optional. Maximum number of times per hour a driver may be restarted as a result of driver exiting 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?: number | null;
/**
* Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240
*/
maxFailuresTotal?: number | null;
}
/**
* Dataproc job status.
Expand Down Expand Up @@ -992,7 +996,7 @@ export namespace dataproc_v1 {
*/
autoDeleteTtl?: string | null;
/**
* 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).
* Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
*/
idleDeleteTtl?: string | null;
/**
Expand Down Expand Up @@ -1109,7 +1113,7 @@ export namespace dataproc_v1 {
*/
export interface Schema$NodeGroupAffinity {
/**
* Required. The name of a single node group (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) a cluster will be created on.
* Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1
*/
nodeGroupUri?: string | null;
}
Expand Down
8 changes: 6 additions & 2 deletions src/apis/dataproc/v1beta2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ export namespace dataproc_v1beta2 {
* 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?: number | null;
/**
* Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240
*/
maxFailuresTotal?: number | null;
}
/**
* Dataproc job status.
Expand Down Expand Up @@ -1017,7 +1021,7 @@ export namespace dataproc_v1beta2 {
*/
autoDeleteTtl?: string | null;
/**
* 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).
* Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
*/
idleDeleteTtl?: string | null;
/**
Expand Down Expand Up @@ -1156,7 +1160,7 @@ export namespace dataproc_v1beta2 {
*/
export interface Schema$NodeGroupAffinity {
/**
* Required. The name of a single node group (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) a cluster will be created on.
* Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1
*/
nodeGroupUri?: string | null;
}
Expand Down

0 comments on commit b8e9a1e

Please sign in to comment.