Skip to content
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

Merged
merged 11 commits into from
Nov 4, 2024

Conversation

jacspa96
Copy link
Contributor

Description

Fixes b/368503059

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@product-auto-label product-auto-label bot added api: dataplex Issues related to the Dataplex API. samples Issues that are directly related to samples. labels Oct 30, 2024
@jacspa96 jacspa96 marked this pull request as ready for review October 30, 2024 15:59
@jacspa96 jacspa96 requested review from a team as code owners October 30, 2024 15:59
Copy link

snippet-bot bot commented Oct 30, 2024

Here is the summary of changes.

You are about to add 5 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

.github/CODEOWNERS Outdated Show resolved Hide resolved
Copy link
Contributor

@m-strzelczyk m-strzelczyk left a 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 :)

.github/CODEOWNERS Show resolved Hide resolved
.github/CODEOWNERS Outdated Show resolved Hide resolved
Comment on lines 71 to 79
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
Copy link
Contributor

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()

.github/CODEOWNERS Outdated Show resolved Hide resolved
.github/CODEOWNERS Show resolved Hide resolved
@jacspa96 jacspa96 merged commit 4fe5495 into GoogleCloudPlatform:main Nov 4, 2024
11 checks passed
@jacspa96 jacspa96 deleted the aspect-types branch November 4, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: dataplex Issues related to the Dataplex API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants