| { |
| "auth": { |
| "oauth2": { |
| "scopes": { |
| "https://www.googleapis.com/auth/userinfo.email": { |
| "description": "https://www.googleapis.com/auth/userinfo.email" |
| } |
| } |
| } |
| }, |
| "basePath": "/_ah/api/swarmbucket/v1", |
| "baseUrl": "https://cr-buildbucket.appspot.com/_ah/api/swarmbucket/v1", |
| "batchPath": "batch", |
| "description": "API specific to swarmbucket.", |
| "discoveryVersion": "v1", |
| "icons": { |
| "x16": "https://www.google.com/images/icons/product/search-16.gif", |
| "x32": "https://www.google.com/images/icons/product/search-32.gif" |
| }, |
| "id": "swarmbucket:v1", |
| "kind": "discovery#restDescription", |
| "methods": { |
| "get_task_def": { |
| "description": "Returns a swarming task definition for a build request.", |
| "httpMethod": "POST", |
| "id": "swarmbucket.get_task_def", |
| "path": "get_task_def", |
| "request": { |
| "$ref": "LegacySwarmbucketApiGetTaskDefinitionRequestMessage", |
| "parameterName": "resource" |
| }, |
| "response": { |
| "$ref": "LegacySwarmbucketApiGetTaskDefinitionResponseMessage" |
| }, |
| "scopes": [ |
| "https://www.googleapis.com/auth/userinfo.email" |
| ] |
| } |
| }, |
| "name": "swarmbucket", |
| "parameters": { |
| "alt": { |
| "default": "json", |
| "description": "Data format for the response.", |
| "enum": [ |
| "json" |
| ], |
| "enumDescriptions": [ |
| "Responses with Content-Type of application/json" |
| ], |
| "location": "query", |
| "type": "string" |
| }, |
| "fields": { |
| "description": "Selector specifying which fields to include in a partial response.", |
| "location": "query", |
| "type": "string" |
| }, |
| "key": { |
| "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| "location": "query", |
| "type": "string" |
| }, |
| "oauth_token": { |
| "description": "OAuth 2.0 token for the current user.", |
| "location": "query", |
| "type": "string" |
| }, |
| "prettyPrint": { |
| "default": "true", |
| "description": "Returns response with indentations and line breaks.", |
| "location": "query", |
| "type": "boolean" |
| }, |
| "quotaUser": { |
| "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", |
| "location": "query", |
| "type": "string" |
| }, |
| "userIp": { |
| "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", |
| "location": "query", |
| "type": "string" |
| } |
| }, |
| "protocol": "rest", |
| "rootUrl": "https://cr-buildbucket.appspot.com/_ah/api/", |
| "schemas": { |
| "LegacyApiPubSubCallbackMessage": { |
| "id": "LegacyApiPubSubCallbackMessage", |
| "properties": { |
| "auth_token": { |
| "type": "string" |
| }, |
| "topic": { |
| "required": true, |
| "type": "string" |
| }, |
| "user_data": { |
| "type": "string" |
| } |
| }, |
| "type": "object" |
| }, |
| "LegacyApiPutRequestMessage": { |
| "id": "LegacyApiPutRequestMessage", |
| "properties": { |
| "bucket": { |
| "required": true, |
| "type": "string" |
| }, |
| "canary_preference": { |
| "enum": [ |
| "AUTO", |
| "CANARY", |
| "PROD" |
| ], |
| "enumDescriptions": [ |
| "", |
| "", |
| "" |
| ], |
| "type": "string" |
| }, |
| "client_operation_id": { |
| "type": "string" |
| }, |
| "experimental": { |
| "type": "boolean" |
| }, |
| "lease_expiration_ts": { |
| "format": "int64", |
| "type": "string" |
| }, |
| "parameters_json": { |
| "type": "string" |
| }, |
| "pubsub_callback": { |
| "$ref": "LegacyApiPubSubCallbackMessage" |
| }, |
| "tags": { |
| "items": { |
| "type": "string" |
| }, |
| "type": "array" |
| } |
| }, |
| "type": "object" |
| }, |
| "LegacySwarmbucketApiGetTaskDefinitionRequestMessage": { |
| "id": "LegacySwarmbucketApiGetTaskDefinitionRequestMessage", |
| "properties": { |
| "build_request": { |
| "$ref": "LegacyApiPutRequestMessage", |
| "required": true |
| } |
| }, |
| "type": "object" |
| }, |
| "LegacySwarmbucketApiGetTaskDefinitionResponseMessage": { |
| "id": "LegacySwarmbucketApiGetTaskDefinitionResponseMessage", |
| "properties": { |
| "swarming_host": { |
| "type": "string" |
| }, |
| "task_definition": { |
| "type": "string" |
| } |
| }, |
| "type": "object" |
| } |
| }, |
| "servicePath": "swarmbucket/v1/", |
| "title": "Buildbucket-Swarming integration", |
| "version": "v1" |
| } |