Skip to content

Instantly share code, notes, and snippets.

View ezequielpereira's full-sized avatar

Ezequiel Pereira ezequielpereira

View GitHub Profile
@ezequielpereira
ezequielpereira / example_insert_tp_req.txt
Last active November 18, 2022 20:09
Example request for creating a Cloud Deployment Manager Type Provider for Google App Engine Admin API - Test environment
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1
{
"name": "hack",
"descriptorUrl": "https://test-appengine.sandbox.googleapis.com/$discovery/rest?key=<KEY>",
"googleOptions": {
"gslbTarget": "blade:apphosting-admin-nightly",
"descriptorUrlServerSpec": "blade:apphosting-admin-nightly",
"ownershipKind": "GOOGLE",
"credentialType": "GAIAMINT",
@ezequielpereira
ezequielpereira / example.txt
Created May 22, 2020 11:06
Example Type Provider for the internal Google Corp Issue Tracker API (issuetracker.corp.googleapis.com)
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1
{
"name": "hack",
"descriptorUrl": "https://issuetracker.corp.googleapis.com/$discovery/rest?key=<KEY>",
"googleOptions": {
"gslbTarget": "blade:corp-issuetracker-api",
"descriptorUrlServerSpec": "blade:corp-issuetracker-api",
"ownershipKind": "GOOGLE",
"credentialType": "GAIAMINT",
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/cloud-platform.read-only": {
"description": "View your data across Google Cloud Platform services"
},