From 227078eb368c77f2142d652342d3ab61e9002728 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 11 Jun 2020 04:36:19 -0700 Subject: [PATCH] feat: regenerate index files --- .kokoro/populate-secrets.sh | 12 ++++++++++++ discovery/index.json | 13 +++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh index 85801f403e2..e6ce8200d75 100755 --- a/.kokoro/populate-secrets.sh +++ b/.kokoro/populate-secrets.sh @@ -15,12 +15,19 @@ set -eo pipefail +function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} +function msg { println "$*" >&2 ;} +function println { printf '%s\n' "$(now) $*" ;} + + # Populates requested secrets set in SECRET_MANAGER_KEYS from service account: # kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" +msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" mkdir -p ${SECRET_LOCATION} for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") do + msg "Retrieving secret ${key}" docker run --entrypoint=gcloud \ --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ gcr.io/google.com/cloudsdktool/cloud-sdk \ @@ -29,4 +36,9 @@ do --project cloud-devrel-kokoro-resources \ --secret $key > \ "$SECRET_LOCATION/$key" + if [[ $? == 0 ]]; then + msg "Secret written to ${SECRET_LOCATION}/${key}" + else + msg "Error retrieving secret ${key}" + fi done diff --git a/discovery/index.json b/discovery/index.json index 7b49acca7a2..7f5ef59acec 100644 --- a/discovery/index.json +++ b/discovery/index.json @@ -4241,14 +4241,15 @@ "id": "youtube:v3", "name": "youtube", "version": "v3", - "title": "YouTube Data API v3", - "description": "The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.", - "discoveryRestUrl": "https://www.googleapis.com/$discovery/rest?version=v3", + "title": "YouTube Data API", + "description": "Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.", + "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest", + "discoveryLink": "./apis/youtube/v3/rest", "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "https://www.google.com/images/icons/product/youtube-16.png", + "x32": "https://www.google.com/images/icons/product/youtube-32.png" }, - "documentationLink": "https://developers.google.com/youtube/", + "documentationLink": "https://developers.google.com/youtube/v3", "preferred": true }, {