Skip to content

Commit 0afbd9a

Browse files
chore: cleanup un-wanted region tags (GoogleCloudPlatform#9289)
Old region tags are replaced with product specific region tags. Please check b/272509882 for more details. Region tags were added using https://togithub.com/GoogleCloudPlatform/python-docs-samples/pull/9258 ## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md) - [ ] README is updated to include [all relevant information](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file) - [ ] **Tests** pass: `nox -s py-3.9` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones) - [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones) - [x] Please **merge** this PR for me once it is approved. - [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/CODEOWNERS) with the codeowners for this sample
1 parent e4b3d0f commit 0afbd9a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cdn/snippets.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from six.moves import urllib
3131

3232

33-
# [START sign_url]
3433
# [START cloudcdn_sign_url]
3534
def sign_url(url, key_name, base64_key, expiration_time):
3635
"""Gets the Signed URL string for the specified URL and configuration.
@@ -115,10 +114,8 @@ def sign_url_prefix(url, url_prefix, key_name, base64_key, expiration_time):
115114

116115
print(signed_url)
117116
# [END cloudcdn_sign_url_prefix]
118-
# [END sign_url]
119117

120118

121-
# [START cdn_sign_cookie]
122119
# [START cloudcdn_sign_cookie]
123120
def sign_cookie(url_prefix, key_name, base64_key, expiration_time):
124121
"""Gets the Signed cookie value for the specified URL prefix and configuration.
@@ -151,7 +148,6 @@ def sign_cookie(url_prefix, key_name, base64_key, expiration_time):
151148
signed_policy = u'Cloud-CDN-Cookie={policy}:Signature={signature}'.format(
152149
policy=policy, signature=signature)
153150
print(signed_policy)
154-
# [END cdn_sign_cookie]
155151
# [END cloudcdn_sign_cookie]
156152

157153

0 commit comments

Comments
 (0)