blob: 03adb5379e035ae6a309c74a19176e48fe6db235 [file] [log] [blame]
{
"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_builders": {
"description": "Returns defined swarmbucket builders. Returns legacy bucket names, e.g. \"luci.chromium.try\", not \"chromium/try\". Can be used to discover builders.",
"httpMethod": "GET",
"id": "swarmbucket.get_builders",
"parameters": {
"bucket": {
"location": "query",
"repeated": true,
"type": "string"
}
},
"path": "builders",
"response": {
"$ref": "LegacySwarmbucketApiGetBuildersResponseMessage"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"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"
]
},
"set_next_build_number": {
"description": "Sets the build number that will be used for the next build.",
"httpMethod": "POST",
"id": "swarmbucket.set_next_build_number",
"path": "set_next_build_number",
"request": {
"$ref": "LegacySwarmbucketApiSetNextBuildNumberRequest",
"parameterName": "resource"
},
"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"
},
"LegacySwarmbucketApiBucketMessage": {
"id": "LegacySwarmbucketApiBucketMessage",
"properties": {
"builders": {
"items": {
"$ref": "LegacySwarmbucketApiBuilderMessage"
},
"type": "array"
},
"name": {
"type": "string"
},
"swarming_hostname": {
"type": "string"
}
},
"type": "object"
},
"LegacySwarmbucketApiBuilderMessage": {
"id": "LegacySwarmbucketApiBuilderMessage",
"properties": {
"category": {
"type": "string"
},
"name": {
"type": "string"
},
"properties_json": {
"type": "string"
},
"swarming_dimensions": {
"items": {
"type": "string"
},
"type": "array"
},
"swarming_hostname": {
"type": "string"
}
},
"type": "object"
},
"LegacySwarmbucketApiGetBuildersResponseMessage": {
"id": "LegacySwarmbucketApiGetBuildersResponseMessage",
"properties": {
"buckets": {
"items": {
"$ref": "LegacySwarmbucketApiBucketMessage"
},
"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"
},
"LegacySwarmbucketApiSetNextBuildNumberRequest": {
"id": "LegacySwarmbucketApiSetNextBuildNumberRequest",
"properties": {
"bucket": {
"required": true,
"type": "string"
},
"builder": {
"required": true,
"type": "string"
},
"next_number": {
"format": "int64",
"required": true,
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "swarmbucket/v1/",
"title": "Buildbucket-Swarming integration",
"version": "v1"
}