Skip to content

Add IAM doc snippets #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 24, 2018
Merged

Add IAM doc snippets #1609

merged 11 commits into from
Aug 24, 2018

Conversation

awkoren
Copy link
Contributor

@awkoren awkoren commented Aug 2, 2018

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 2, 2018
.gitignore Outdated
@@ -20,3 +20,5 @@ secrets.tar
junit.xml
credentials.dat
.nox
env/
.vscode/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please add final CR


# [START iam_view_grantable_roles]
def view_grantable_roles(full_resource_name):

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please remove the blank lines right after the def: here and elsewhere.

resource = '//cloudresourcemanager.googleapis.com/projects/' + project
grantable_roles.view_grantable_roles(resource)
out, _ = capsys.readouterr()
assert 'Title:' in out
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add final CR

name=resource, body=service_account).execute()

print(
'Updated display name for ' + service_account['email'] +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please string formatting (for instance .format()) rather than addition, here and ideally everywhere else, or at least everywhere with more than two components.

.gitignore Outdated
@@ -20,3 +20,5 @@ secrets.tar
junit.xml
credentials.dat
.nox
env/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid adding env/ to gitignore; I'd recommend putting your env folder one level up so it's not under git as part of development workflow.

@awkoren
Copy link
Contributor Author

awkoren commented Aug 22, 2018

Addressed all feedback

@andrewsg andrewsg merged commit 6ecb359 into GoogleCloudPlatform:master Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants