1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 14:56:05 +00:00

gcloud: Wed Apr 17 09:40:58 UTC 2024

This commit is contained in:
Automated 2024-04-17 09:40:58 +00:00
parent 7e2535c53d
commit 3740758467
178 changed files with 2958 additions and 1351 deletions

View file

@ -10,21 +10,21 @@ DESCRIPTION
Add IAM policy binding to a model.
EXAMPLES
To add an IAM policy binding for the role of 'roles/ml.admin' for the user
'test-user@gmail.com' on a model with identifier 'my_model', run:
To add an IAM policy binding for the role of roles/ml.admin for the user
test-user@gmail.com on a model with identifier my_model, run:
$ gcloud ml-engine models add-iam-policy-binding my_model \
--member='user:test-user@gmail.com' --role='roles/ml.admin'
To add an IAM policy binding for the role of 'roles/ml.admin' to the
service account 'test-proj1@example.domain.com', run:
To add an IAM policy binding for the role of roles/ml.admin to the service
account test-proj1@example.domain.com, run:
$ gcloud ml-engine models add-iam-policy-binding my_model \
--member='serviceAccount:test-proj1@example.domain.com' \
--role='roles/ml.admin'
To add an IAM policy binding for the role of 'roles/ml.admin' for all
authenticated users on a model with identifier 'my_model', run:
To add an IAM policy binding for the role of roles/ml.admin for all
authenticated users on a model with identifier my_model, run:
$ gcloud ml-engine models add-iam-policy-binding my_model \
--member='allAuthenticatedUsers' --role='roles/ml.admin'

View file

@ -12,14 +12,14 @@ DESCRIPTION
get-iam-policy for examples of how to specify a model resource.
EXAMPLES
To remove an IAM policy binding for the role of 'roles/ml.admin' for the
user 'test-user@gmail.com' on model with identifier 'my_model', run:
To remove an IAM policy binding for the role of roles/ml.admin for the user
test-user@gmail.com on model with identifier my_model, run:
$ gcloud ml-engine models remove-iam-policy-binding my_model \
--member='user:test-user@gmail.com' --role='roles/ml.admin'
To remove an IAM policy binding for the role of 'roles/ml.admin' from all
authenticated users on model 'my_model', run:
To remove an IAM policy binding for the role of roles/ml.admin from all
authenticated users on model my_model, run:
$ gcloud ml-engine models remove-iam-policy-binding my_model \
--member='allAuthenticatedUsers' --role='roles/ml.admin'