<
6D3F
script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"path":"cdn","repo":{"id":834236671,"defaultBranch":"main","name":"python-docs-samples","ownerLogin":"katiemn","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-07-26T18:14:24.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/21978337?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"imagen-customization","listCacheKey":"v0:1747764681.0","canEdit":false,"refType":"branch","currentOid":"bf3a623d76b5641d661254e6416a3081db26a78e"},"tree":{"items":[{"name":"README.rst","path":"cdn/README.rst","contentType":"file"},{"name":"README.rst.in","path":"cdn/README.rst.in","contentType":"file"},{"name":"requirements-test.txt","path":"cdn/requirements-test.txt","contentType":"file"},{"name":"requirements.txt","path":"cdn/requirements.txt","contentType":"file"},{"name":"snippets.py","path":"cdn/snippets.py","contentType":"file"},{"name":"snippets_test.py","path":"cdn/snippets_test.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.rst","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud CDN Python Samples\u003c/h1\u003e\u003ca id=\"user-content-google-cloud-cdn-python-samples\" class=\"anchor\" aria-label=\"Permalink: Google Cloud CDN Python Samples\" href=\"#google-cloud-cdn-python-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples\u0026amp;page=editor\u0026amp;open_in_editor=cdn/README.rst\" rel=\"nofollow\"\u003e\u003cimg alt=\"https://gstatic.com/cloudssh/images/open-btn.png\" src=\"https://camo.githubusercontent.com/4a90a81ab53e8d5a47b14891b795bb509a19a10c63100aa97e8bc8f1ab7426db/68747470733a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e706e67\" data-canonical-src=\"https://gstatic.com/cloudssh/images/open-btn.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003cp dir=\"auto\"\u003eThis directory contains samples for Google Cloud CDN. 'Google Cloud CDN'_ enables low-latency, low-cost content delivery using Google's global network\u003c/p\u003e\n\u003ca name=\"user-content-samples\"\u003e\u003c/a\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSamples\u003c/h2\u003e\u003ca id=\"user-content-samples\" class=\"anchor\" aria-label=\"Permalink: Samples\" href=\"#samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca name=\"user-content-snippets\"\u003e\u003c/a\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSnippets\u003c/h3\u003e\u003ca id=\"user-content-snippets\" class=\"anchor\" aria-label=\"Permalink: Snippets\" href=\"#snippets\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples\u0026amp;page=editor\u0026amp;open_in_editor=cdn/snippets.py,cdn/README.rst\" rel=\"nofollow\"\u003e\u003cimg alt=\"https://gstatic.com/cloudssh/images/open-btn.png\" src=\"https://camo.githubusercontent.com/4a90a81ab53e8d5a47b14891b795bb509a19a10c63100aa97e8bc8f1ab7426db/68747470733a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e706e67\" data-canonical-src=\"https://gstatic.com/cloudssh/images/open-btn.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003cp dir=\"auto\"\u003eTo run this sample:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ python snippets.py\n\nusage: snippets.py [-h] {sign-url} ...\n\nThis application demonstrates how to perform operations on data (content)\nwhen using Google Cloud CDN (Content Delivery Network).\n\nFor more information, see the README.md under /cdn and the documentation\nat https://cloud.google.com/cdn/docs.\n\npositional arguments:\n {sign-url}\n sign-url Sign a URL to grant temporary authorized access.\n\noptional arguments:\n -h, --help show this help message and exit\"\u003e\u003cpre\u003e$ python snippets.py\n\nusage: snippets.py [-h] {sign-url} ...\n\nThis application demonstrates how to perform operations on data (content)\nwhen using Google Cloud CDN (Content Delivery Network).\n\nFor more information, see the README.md under /cdn and the documentation\nat https://cloud.google.com/cdn/docs.\n\npositional arguments:\n {sign-url}\n sign-url Sign a URL to grant temporary authorized access.\n\noptional arguments:\n -h, --help show this \u003cspan class=\"pl-c1\"\u003ehelp\u003c/span\u003e message and \u003cspan class=\"pl-c1\"\u003eexit\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Google Cloud CDN Python Samples","anchor":"google-cloud-cdn-python-samples","htmlText":"Google Cloud CDN Python Samples"},{"level":2,"text":"Samples","anchor":"samples","htmlText":"Samples"},{"level":3,"text":"Snippets","anchor":"snippets","htmlText":"Snippets"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fkatiemn%2Fpython-docs-samples%2Ftree%2Fimagen-customization%2Fcdn"}},"totalCount":6,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"alloydb","path":"alloydb","contentType":"directory"},{"name":"aml-ai","path":"aml-ai","contentType":"directory"},{"name":"appengine","path":"appengine","contentType":"directory"},{"name":"asset","path":"asset","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"batch","path":"batch","contentType":"directory"},{"name":"bigquery-connection","path":"bigquery-connection","contentType":"directory"},{"name":"bigquery-datatransfer","path":"bigquery-datatransfer","contentType":"directory"},{"name":"bigquery-migration","path":"bigquery-migration","contentType":"directory"},{"name":"bigquery-reservation","path":"bigquery-reservation","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigquery_storage","path":"bigquery_storage","contentType":"directory"},{"name":"billing","path":"billing","contentType":"directory"},{"name":"blog","path":"blog","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-media-livestream","path":"cloud-media-livestream","contentType":"directory"},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"cloud_scheduler","path":"cloud_scheduler","contentType":"directory"},{"name":"cloud_tasks","path":"cloud_tasks","contentType":"directory"},{"name":"cloudbuild","path":"cloudbuild","contentType":"directory"},{"name":"composer","path":"composer","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"contact-center-insights","path":"contact-center-insights","contentType":"directory"},{"name":"container","path":"container","contentType":"directory"},{"name":"containeranalysis","path":"containeranalysis","contentType":"directory"},{"name":"contentwarehouse","path":"contentwarehouse","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"datalabeling","path":"datalabeling","contentType":"directory"},{"name":"dataplex","path":"dataplex","contentType":"directory"},{"name":"dataproc","path":"dataproc","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"dialogflow-cx","path":"dialogflow-cx","contentType":"directory"},{"name":"dialogflow","path":"dialogflow","contentType":"directory"},{"name":"discoveryengine","path":"discoveryengine","contentType":"directory"},{"name":"dlp","path":"dlp","contentType":"directory"},{"name":"documentai","path":"documentai","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"enterpriseknowledgegraph","path":"enterpriseknowledgegraph","contentType":"directory"},{"name":"error_reporting","path":"error_reporting","contentType":"directory"},{"name":"eventarc","path":"eventarc","contentType":"directory"},{"name":"firestore","path":"firestore","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"gemma2","path":"gemma2","contentType":"directory"},{"name":"genai","path":"genai","contentType":"directory"},{"name":"generative_ai","path":"generative_ai","contentType":"directory"},{"name":"healthcare","path":"healthcare","contentType":"directory"},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"kubernetes_engine","path":"kubernetes_engine","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"managedkafka","path":"managedkafka","contentType":"directory"},{"name":"media-translation","path":"media-translation","contentType":"directory"},{"name":"media","path":"media","contentType":"directory"},{"name":"media_cdn","path":"media_cdn","contentType":"directory"},{"name":"memorystore","path":"memorystore","contentType":"directory"},{"name":"model_armor","path":"model_armor","contentType":"directory"},{"name":"model_garden","path":"model_garden","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"notebooks","path":"notebooks","contentType":"directory"},{"name":"optimization","path":"optimization","contentType":"directory"},{"name":"parametermanager","path":"parametermanager","contentType":"directory"},{"name":"people-and-planet-ai","path":"people-and-planet-ai","contentType":"directory"},{"name":"practice-folder","path":"practice-folder","contentType":"directory"},{"name":"privateca","path":"privateca","contentType":"directory"},{"name":"profiler","path":"profiler","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"pubsublite","path":"pubsublite","contentType":"directory"},{"name":"recaptcha_enterprise","path":"recaptcha_enterprise","contentType":"directory"},{"name":"retail","path":"retail","contentType":"directory"},{"name":"run","path":"run","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"securitycenter","path":"securitycenter","contentType":"directory"},{"name":"service_extensions","path":"service_extensions","contentType":"directory"},{"name":"servicedirectory","path":"servicedirectory","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"storagecontrol","path":"storagecontrol","contentType":"directory"},{"name":"storagetransfer","path":"storagetransfer","contentType":"directory"},{"name":"tables","path":"tables","contentType":"directory"},{"name":"talent","path":"talent","contentType":"directory"},{"name":"testing","path":"testing","contentType":"directory"},{"name":"texttospeech","path":"texttospeech","contentType":"directory"},{"name":"tpu","path":"tpu","contentType":"directory"},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"videointelligence","path":"videointelligence","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":"vmwareengine","path":"vmwareengine","contentType":"directory"},{"name":"webrisk","path":"webrisk","contentType":"directory"},{"name":"workflows","path":"workflows","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".repo-metadata.json","path":".repo-metadata.json","contentType":"file"},{"name":".trampolinerc","path":".trampolinerc","contentType":"file"},{"name":".trampolinerc_tmpl","path":".trampolinerc_tmpl","contentType":"file"},{"name":"AUTHORING_GUIDE.md","path":"AUTHORING_GUIDE.md","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MAC_SETUP.md","path":"MAC_SETUP.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"favicon.ico","path":"favicon.ico","contentType":"file"},{"name":"noxfile-template.py","path":"noxfile-template.py","contentType":"file"},{"name":"noxfile_config.py","path":"noxfile_config.py","contentType":"file"},{"name":"owlbot.py","path":"owlbot.py","contentType":"file"},{"name":"pytest.ini","path":"pytest.ini","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"totalCount":119}},"fileTreeProcessingTime":26.674871,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/katiemn/python-docs-samples/branches":{"post":"n_AoXpVkRr03GIaXJ6VO28Y1RhNLcb97hQYjnXy7nOFDMYWT_lFtzciTOScxYsYeHRX1QsiolzS9A62m2ccfMQ"},"/katiemn/python-docs-samples/branches/fetch_and_merge/imagen-customization":{"post":"HhkoSEuIpSqxG594EVzgbNppCMnVGdEOT9WjUwIqI4DFOfYbNp3st4vAD7JH1oL86NeoV3ywBMqxmLqss4Z6Yg"},"/katiemn/python-docs-samples/branches/fetch_and_merge/imagen-customization?discard_changes=true":{"post":"QHlcY6WZMZ4gUj8VCJZypGqSJA6aYAb9o7CndD0f-0SbWYIw2Ix4AxqJr99eHBA0WCyEkDPJ0zld_b6LjLOipg"}}},"title":"python-docs-samples/cdn at imagen-customization · katiemn/python-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
You can’t perform that action at this time.