in google_cloud_automlops/utils/utils.py [0:0]
def get_deploy_without_precheck_min_permissions(defaults: dict) -> list:
"""Creates the list of minimum required permissions to run the deploy() step based on the user
tooling selection determined during the generate() step. This function is called when
precheck=False, which decreases the required list of permissions.
Args:
defaults (dict): Contents of the Defaults yaml file (config/defaults.yaml).
Returns:
list: Minimum permissions to deploy with precheck=False.
"""
recommended_permissions = []
if not defaults['tooling']['use_ci']:
recommended_permissions.extend(['cloudbuild.builds.create', 'storage.buckets.update', 'aiplatform.pipelineJobs.create'])
return recommended_permissions