Skip to content

Commit

Permalink
feat: [dataproc]add optional parameters (tarball-access) in DiagnoseC…
Browse files Browse the repository at this point in the history
…lusterRequest (#5652)

* feat:add optional parameters (tarball-access) in DiagnoseClusterRequest

PiperOrigin-RevId: 669375999

Source-Link: googleapis/googleapis@6a474b3

Source-Link: googleapis/googleapis-gen@3e834b4
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLy5Pd2xCb3QueWFtbCIsImgiOiIzZTgzNGI0ZTBkZjY5NTdjNzI1MjRjN2I2M2Q0MWMzMDY4ZWJjY2I0In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Sep 3, 2024
1 parent 2436415 commit 2d1df0f
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 1 deletion.
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

0 comments on commit 2d1df0f

Please sign in to comment.