-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat(dataplex): add code samples for Aspect Types #12738
Conversation
Here is the summary of changes. You are about to add 5 region tags.
This comment is generated by snippet-bot.
|
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.
Very nice code!
Main issue is with the folder ownership in CODEOWNERS - would be best to have a team dedicated to those folders assigned :)
aspect_type = create_aspect_type.create_aspect_type( | ||
PROJECT_ID, LOCATION, aspect_type_id_to_create, [] | ||
) | ||
# Clean-up created Aspect Type | ||
delete_aspect_type.delete_aspect_type( | ||
PROJECT_ID, LOCATION, aspect_type_id_to_create | ||
) | ||
|
||
assert expected_aspect_type_to_create == aspect_type.name |
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.
We usually do it like:
try:
create()
assert
finally:
delete()
Co-authored-by: Maciej Strzelczyk <[email protected]>
Description
Fixes b/368503059
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)