Skip to content

Commit f18f797

Browse files
authored
Merge pull request #152 from anAwesomeWave/feat/add-autoscaling-sa-dataproc
Add autoscaling_service_account_id field to dataproc create cluster wrapper.
2 parents b942437 + 23a810b commit f18f797

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ venv*
88
build/
99
dist
1010
.python-version
11+
.vscode/

yandexcloud/_wrappers/dataproc/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def create_cluster(
9595
initialization_actions=None,
9696
oslogin_enabled=False,
9797
labels=None,
98+
autoscaling_service_account_id=None,
9899
):
99100
"""
100101
Create Yandex.Cloud Data Proc cluster.
@@ -190,6 +191,8 @@ def create_cluster(
190191
:type oslogin_enabled: bool
191192
:param labels: Cluster labels as key:value pairs. No more than 64 per resource.
192193
:type labels: Dict[str, str]
194+
:param autoscaling_service_account_id: Service account to be used by the Instance Groups service.
195+
:type autoscaling_service_account_id: str
193196
194197
:return: Cluster ID
195198
:rtype: str
@@ -312,6 +315,7 @@ def create_cluster(
312315
security_group_ids=security_group_ids,
313316
log_group_id=log_group_id,
314317
labels=labels,
318+
autoscaling_service_account_id=autoscaling_service_account_id,
315319
)
316320
result = self.sdk.create_operation_and_get_result(
317321
request,

0 commit comments

Comments
 (0)