Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

chore(docs): Updating firewall samples. #134

Merged
merged 4 commits into from
Nov 8, 2021
Merged

chore(docs): Updating firewall samples. #134

merged 4 commits into from
Nov 8, 2021

Conversation

m-strzelczyk
Copy link
Contributor

Applying suggested changes.

Closes #133

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)

Fixes #133 馃

@m-strzelczyk m-strzelczyk requested a review from a team as a code owner October 18, 2021 13:14
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 18, 2021
@product-auto-label product-auto-label bot added api: compute Issues related to the googleapis/python-compute API. samples Issues that are directly related to samples. labels Oct 18, 2021
Applying suggested changes.

Closes #133
@@ -164,11 +166,11 @@ def delete_firewall_rule(project_id: str, firewall_rule_name: str):
create_firewall_rule(default_project_id, rule_name)
try:
print("Rule created:")
print_firewall_rule(default_project_id, rule_name)
print(get_firewall_rule(default_project_id, rule_name))
Copy link

Choose a reason for hiding this comment

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

Do we publish get_firewall_rule? It seems we don't, but we also didn't publish the print method then, so not a regression.

@parthea parthea merged commit 95817e3 into main Nov 8, 2021
@parthea parthea deleted the sample-firewall branch November 8, 2021 11:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: compute Issues related to the googleapis/python-compute API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updates to create_firewall_rule sample
4 participants