Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dataproc]add optional parameters (tarball-access) in DiagnoseClusterRequest #5652

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,20 @@ message ListClustersResponse {

// A request to collect cluster diagnostic information.
message DiagnoseClusterRequest {
// Defines who has access to the diagnostic tarball
enum TarballAccess {
// Tarball Access unspecified. Falls back to default access of the bucket
TARBALL_ACCESS_UNSPECIFIED = 0;

// Google Cloud Support group has read access to the
// diagnostic tarball
GOOGLE_CLOUD_SUPPORT = 1;

// Google Cloud Dataproc Diagnose service account has read access to the
// diagnostic tarball
GOOGLE_DATAPROC_DIAGNOSE = 2;
}

// Required. The ID of the Google Cloud Platform project that the cluster
// belongs to.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
Expand All @@ -1556,6 +1570,10 @@ message DiagnoseClusterRequest {
// staging bucket will be used.
string tarball_gcs_dir = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. (Optional) The access type to the diagnostic tarball. If not
// specified, falls back to default access of the bucket
TarballAccess tarball_access = 5 [(google.api.field_behavior) = OPTIONAL];

// Optional. Time interval in which diagnosis should be carried out on the
// cluster.
google.type.Interval diagnosis_interval = 6
Expand Down
16 changes: 16 additions & 0 deletions packages/google-cloud-dataproc/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions packages/google-cloud-dataproc/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions packages/google-cloud-dataproc/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ function main(projectId, region, clusterName) {
* staging bucket will be used.
*/
// const tarballGcsDir = 'abc123'
/**
* Optional. (Optional) The access type to the diagnostic tarball. If not
* specified, falls back to default access of the bucket
*/
// const tarballAccess = {}
/**
* Optional. Time interval in which diagnosis should be carried out on the
* cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@
"segments": [
{
"start": 25,
"end": 86,
"end": 91,
"type": "FULL"
}
],
Expand All @@ -839,6 +839,10 @@
"name": "tarball_gcs_dir",
"type": "TYPE_STRING"
},
{
"name": "tarball_access",
"type": ".google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccess"
},
{
"name": "diagnosis_interval",
"type": ".google.type.Interval"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,9 @@ export class ClusterControllerClient {
* Optional. The output Cloud Storage directory for the diagnostic
* tarball. If not specified, a task-specific directory in the cluster's
* staging bucket will be used.
* @param {google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccess} [request.tarballAccess]
* Optional. (Optional) The access type to the diagnostic tarball. If not
* specified, falls back to default access of the bucket
* @param {google.type.Interval} [request.diagnosisInterval]
* Optional. Time interval in which diagnosis should be carried out on the
* cluster.
Expand Down
Loading