This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script para adicionar secrets ao Secret Manager do GCloud usando a API. Argumentos passados por linha de comando: | |
--project: ID do projeto no GCloud | |
--input_file: caminho do arquivo JSON com o env. Formato: `{ secret_key: secret_value }` | |
--access_token: token de acesso Gcloud. Possível obter por linha de comando: `$ gcloud auth print-access-token` | |
Se necessário, edite a variável `secret_body` para mudar o location padrão e o as tags desejadas | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios') | |
/* ... */ | |
const params = new URLSearchParams() | |
params.append('name', 'Akexorcist') | |
params.append('age', '28') | |
params.append('position', 'Android Developer') | |
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
params.append('awesome', true) |