File: //snap/google-cloud-cli/394/help/man/man1/gcloud_source_repos_set-iam-policy.1
.TH "GCLOUD_SOURCE_REPOS_SET\-IAM\-POLICY" 1
.SH "NAME"
.HP
gcloud source repos set\-iam\-policy \- set the IAM policy for the named repository
.SH "SYNOPSIS"
.HP
\f5gcloud source repos set\-iam\-policy\fR \fIREPOSITORY_NAME\fR \fIPOLICY_FILE\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
This command sets the IAM policy for the given repository from the policy in the
provided file.
.SH "EXAMPLES"
To set the IAM policy, issue the following command:
.RS 2m
$ gcloud source repos set\-iam\-policy REPOSITORY_NAME POLICY_FILE
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIREPOSITORY_NAME\fR
Name of the repository.
.TP 2m
\fIPOLICY_FILE\fR
JSON or YAML file with IAM policy. See
https://cloud.google.com/resource\-manager/reference/rest/Shared.Types/Policy
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha source repos set\-iam\-policy
.RE
.RS 2m
$ gcloud beta source repos set\-iam\-policy
.RE