GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add IAM doc snippets by awkoren · Pull Request #1609 · GoogleCloudPlatform/python-docs-samples

Conversation

@awkoren

@awkoren awkoren commented Aug 2, 2018

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
awkoren added 6 commits May 31, 2018 13:12
@awkoren
Add env/ and .vscode/ to .gitignore
9dc4866
@awkoren
Add IAM requirements.txt
cb631f6
@awkoren
Python Service account keys (#5)
49afe25
Add IAM service account keys snippets
@awkoren
Python Quickstart (#3)
fdfa17b
Add IAM quickstart
@awkoren
Python Service accounts (#4)
d48de03
Add IAM service account snippets
@awkoren
Add query grantable roles and tests (#2)
5918d4e
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 2, 2018
andrewsg
andrewsg requested changes Aug 20, 2018
View reviewed changes
Comment thread .gitignore Outdated
credentials.dat
.nox
env/
.vscode/ No newline at end of file

@andrewsg andrewsg Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iam/api-client/grantable_roles.py Outdated

# [START iam_view_grantable_roles]
def view_grantable_roles(full_resource_name):

@andrewsg andrewsg Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iam/api-client/grantable_roles_test.py Outdated
resource = '//cloudresourcemanager.googleapis.com/projects/' + project
grantable_roles.view_grantable_roles(resource)
out, _ = capsys.readouterr()
assert 'Title:' in out No newline at end of file

@andrewsg andrewsg Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: add final CR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iam/api-client/service_accounts.py Outdated
name=resource, body=service_account).execute()

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

@andrewsg andrewsg Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .gitignore Outdated
junit.xml
credentials.dat
.nox
env/

@andrewsg andrewsg Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
awkoren added 5 commits August 22, 2018 13:04
@awkoren
Add whitespace and correct string formatting
2465d86
@awkoren
Add extra CR
4998169
@awkoren
Merge branch 'master' into master
2c41782
@awkoren
Lint
944e969
@awkoren
Merge branch 'master' of https://github.com/awkoren/python-docs-samples
577c00c
@awkoren

awkoren commented Aug 22, 2018

Copy link
Copy Markdown
Contributor Author

Addressed all feedback

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

andrewsg
andrewsg approved these changes Aug 24, 2018
View reviewed changes
@andrewsg
andrewsg merged commit 6ecb359 into GoogleCloudPlatform:master Aug 24, 2018
@parthea parthea mentioned this pull request Sep 8, 2026
migrate code from googleapis/python-bigquery #14589
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andrewsg andrewsg andrewsg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@awkoren @andrewsg @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.