go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/api/buildbucket/swarmbucket/v1/swarmbucket-api.json (about) 1 { 2 "auth": { 3 "oauth2": { 4 "scopes": { 5 "https://www.googleapis.com/auth/userinfo.email": { 6 "description": "https://www.googleapis.com/auth/userinfo.email" 7 } 8 } 9 } 10 }, 11 "basePath": "/_ah/api/swarmbucket/v1", 12 "baseUrl": "https://cr-buildbucket.appspot.com/_ah/api/swarmbucket/v1", 13 "batchPath": "batch", 14 "description": "API specific to swarmbucket.", 15 "discoveryVersion": "v1", 16 "icons": { 17 "x16": "https://www.google.com/images/icons/product/search-16.gif", 18 "x32": "https://www.google.com/images/icons/product/search-32.gif" 19 }, 20 "id": "swarmbucket:v1", 21 "kind": "discovery#restDescription", 22 "methods": { 23 "get_task_def": { 24 "description": "Returns a swarming task definition for a build request.", 25 "httpMethod": "POST", 26 "id": "swarmbucket.get_task_def", 27 "path": "get_task_def", 28 "request": { 29 "$ref": "LegacySwarmbucketApiGetTaskDefinitionRequestMessage", 30 "parameterName": "resource" 31 }, 32 "response": { 33 "$ref": "LegacySwarmbucketApiGetTaskDefinitionResponseMessage" 34 }, 35 "scopes": [ 36 "https://www.googleapis.com/auth/userinfo.email" 37 ] 38 } 39 }, 40 "name": "swarmbucket", 41 "parameters": { 42 "alt": { 43 "default": "json", 44 "description": "Data format for the response.", 45 "enum": [ 46 "json" 47 ], 48 "enumDescriptions": [ 49 "Responses with Content-Type of application/json" 50 ], 51 "location": "query", 52 "type": "string" 53 }, 54 "fields": { 55 "description": "Selector specifying which fields to include in a partial response.", 56 "location": "query", 57 "type": "string" 58 }, 59 "key": { 60 "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.", 61 "location": "query", 62 "type": "string" 63 }, 64 "oauth_token": { 65 "description": "OAuth 2.0 token for the current user.", 66 "location": "query", 67 "type": "string" 68 }, 69 "prettyPrint": { 70 "default": "true", 71 "description": "Returns response with indentations and line breaks.", 72 "location": "query", 73 "type": "boolean" 74 }, 75 "quotaUser": { 76 "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.", 77 "location": "query", 78 "type": "string" 79 }, 80 "userIp": { 81 "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", 82 "location": "query", 83 "type": "string" 84 } 85 }, 86 "protocol": "rest", 87 "rootUrl": "https://cr-buildbucket.appspot.com/_ah/api/", 88 "schemas": { 89 "LegacyApiPubSubCallbackMessage": { 90 "id": "LegacyApiPubSubCallbackMessage", 91 "properties": { 92 "auth_token": { 93 "type": "string" 94 }, 95 "topic": { 96 "required": true, 97 "type": "string" 98 }, 99 "user_data": { 100 "type": "string" 101 } 102 }, 103 "type": "object" 104 }, 105 "LegacyApiPutRequestMessage": { 106 "id": "LegacyApiPutRequestMessage", 107 "properties": { 108 "bucket": { 109 "required": true, 110 "type": "string" 111 }, 112 "canary_preference": { 113 "enum": [ 114 "AUTO", 115 "CANARY", 116 "PROD" 117 ], 118 "enumDescriptions": [ 119 "", 120 "", 121 "" 122 ], 123 "type": "string" 124 }, 125 "client_operation_id": { 126 "type": "string" 127 }, 128 "experimental": { 129 "type": "boolean" 130 }, 131 "lease_expiration_ts": { 132 "format": "int64", 133 "type": "string" 134 }, 135 "parameters_json": { 136 "type": "string" 137 }, 138 "pubsub_callback": { 139 "$ref": "LegacyApiPubSubCallbackMessage" 140 }, 141 "tags": { 142 "items": { 143 "type": "string" 144 }, 145 "type": "array" 146 } 147 }, 148 "type": "object" 149 }, 150 "LegacySwarmbucketApiGetTaskDefinitionRequestMessage": { 151 "id": "LegacySwarmbucketApiGetTaskDefinitionRequestMessage", 152 "properties": { 153 "build_request": { 154 "$ref": "LegacyApiPutRequestMessage", 155 "required": true 156 } 157 }, 158 "type": "object" 159 }, 160 "LegacySwarmbucketApiGetTaskDefinitionResponseMessage": { 161 "id": "LegacySwarmbucketApiGetTaskDefinitionResponseMessage", 162 "properties": { 163 "swarming_host": { 164 "type": "string" 165 }, 166 "task_definition": { 167 "type": "string" 168 } 169 }, 170 "type": "object" 171 } 172 }, 173 "servicePath": "swarmbucket/v1/", 174 "title": "Buildbucket-Swarming integration", 175 "version": "v1" 176 }