Skip to content

Add commented variables to make samples more friendly to copy and use#4365

Merged
engelke merged 2 commits into
GoogleCloudPlatform:masterfrom
yuyifan-google:master
Jul 24, 2020
Merged

Add commented variables to make samples more friendly to copy and use#4365
engelke merged 2 commits into
GoogleCloudPlatform:masterfrom
yuyifan-google:master

Conversation

@yuyifan-google

Copy link
Copy Markdown
Contributor

Description

Fixes #

Note: It's a good idea to open an issue first for discussion.

Checklist

@yuyifan-google yuyifan-google requested a review from a team as a code owner July 23, 2020 22:50
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 23, 2020
# [START asset_quickstart_search_all_iam_policies]
from google.cloud import asset_v1

# TODO scope = 'Scope of the search'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are these labeled TODO? This is just a description, right, not a future task. Or am I missing something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm following the style in some of our team's existing samples (e.g., createfeed.py)
Is there a particular style I should use for these commented variables?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, if that's been used before, let's keep it.

@engelke engelke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@yuyifan-google

Copy link
Copy Markdown
Contributor Author

Resource Exhausted. Can you rerun the tests? Thanks. This PR only added comments so shouldn't affect the test results at all.

@engelke

engelke commented Jul 24, 2020 via email

Copy link
Copy Markdown
Contributor

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.

4 participants