Skip to content

Commit 127e5c0

Browse files
feat: [google-cloud-dataproc]add optional parameters (tarball-access) in DiagnoseClusterRequest (#13044)
BEGIN_COMMIT_OVERRIDE feat:add optional parameters (tarball-access) in DiagnoseClusterRequest END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 669375999 Source-Link: googleapis/googleapis@6a474b3 Source-Link: googleapis/googleapis-gen@3e834b4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLy5Pd2xCb3QueWFtbCIsImgiOiIzZTgzNGI0ZTBkZjY5NTdjNzI1MjRjN2I2M2Q0MWMzMDY4ZWJjY2I0In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 7e40c8c commit 127e5c0

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

packages/google-cloud-dataproc/google/cloud/dataproc_v1/types/clusters.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,10 @@ class DiagnoseClusterRequest(proto.Message):
23972397
for the diagnostic tarball. If not specified, a
23982398
task-specific directory in the cluster's staging
23992399
bucket will be used.
2400+
tarball_access (google.cloud.dataproc_v1.types.DiagnoseClusterRequest.TarballAccess):
2401+
Optional. (Optional) The access type to the
2402+
diagnostic tarball. If not specified, falls back
2403+
to default access of the bucket
24002404
diagnosis_interval (google.type.interval_pb2.Interval):
24012405
Optional. Time interval in which diagnosis
24022406
should be carried out on the cluster.
@@ -2410,6 +2414,25 @@ class DiagnoseClusterRequest(proto.Message):
24102414
performed.
24112415
"""
24122416

2417+
class TarballAccess(proto.Enum):
2418+
r"""Defines who has access to the diagnostic tarball
2419+
2420+
Values:
2421+
TARBALL_ACCESS_UNSPECIFIED (0):
2422+
Tarball Access unspecified. Falls back to
2423+
default access of the bucket
2424+
GOOGLE_CLOUD_SUPPORT (1):
2425+
Google Cloud Support group has read access to
2426+
the diagnostic tarball
2427+
GOOGLE_DATAPROC_DIAGNOSE (2):
2428+
Google Cloud Dataproc Diagnose service
2429+
account has read access to the diagnostic
2430+
tarball
2431+
"""
2432+
TARBALL_ACCESS_UNSPECIFIED = 0
2433+
GOOGLE_CLOUD_SUPPORT = 1
2434+
GOOGLE_DATAPROC_DIAGNOSE = 2
2435+
24132436
project_id: str = proto.Field(
24142437
proto.STRING,
24152438
number=1,
@@ -2426,6 +2449,11 @@ class DiagnoseClusterRequest(proto.Message):
24262449
proto.STRING,
24272450
number=4,
24282451
)
2452+
tarball_access: TarballAccess = proto.Field(
2453+
proto.ENUM,
2454+
number=5,
2455+
enum=TarballAccess,
2456+
)
24292457
diagnosis_interval: interval_pb2.Interval = proto.Field(
24302458
proto.MESSAGE,
24312459
number=6,

packages/google-cloud-dataproc/scripts/fixup_dataproc_v1_keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class dataprocCallTransformer(cst.CSTTransformer):
5454
'delete_session': ('name', 'request_id', ),
5555
'delete_session_template': ('name', ),
5656
'delete_workflow_template': ('name', 'version', ),
57-
'diagnose_cluster': ('project_id', 'region', 'cluster_name', 'tarball_gcs_dir', 'diagnosis_interval', 'jobs', 'yarn_application_ids', ),
57+
'diagnose_cluster': ('project_id', 'region', 'cluster_name', 'tarball_gcs_dir', 'tarball_access', 'diagnosis_interval', 'jobs', 'yarn_application_ids', ),
5858
'get_autoscaling_policy': ('name', ),
5959
'get_batch': ('name', ),
6060
'get_cluster': ('project_id', 'region', 'cluster_name', ),

0 commit comments

Comments
 (0)