blob: 7fddf1dadb532a2bcbb526a1975e46efbe3b94f7 [file] [log] [blame]
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001{
2 "baseUrl": "https://artifactregistry.googleapis.com/",
3 "title": "Artifact Registry API",
4 "servicePath": "",
5 "version_module": true,
6 "resources": {
7 "operations": {
8 "methods": {
9 "get": {
10 "flatPath": "v1/operations/{operationsId}",
11 "path": "v1/{+name}",
12 "parameterOrder": [
13 "name"
14 ],
15 "httpMethod": "GET",
16 "response": {
17 "$ref": "Operation"
18 },
19 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
20 "id": "artifactregistry.operations.get",
21 "parameters": {
22 "name": {
23 "description": "The name of the operation resource.",
24 "pattern": "^operations/[^/]+$",
25 "required": true,
26 "location": "path",
27 "type": "string"
28 }
29 },
30 "scopes": [
31 "https://www.googleapis.com/auth/cloud-platform",
32 "https://www.googleapis.com/auth/cloud-platform.read-only"
33 ]
34 },
35 "list": {
36 "parameterOrder": [],
37 "flatPath": "v1/operations",
38 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
39 "scopes": [
40 "https://www.googleapis.com/auth/cloud-platform",
41 "https://www.googleapis.com/auth/cloud-platform.read-only"
42 ],
43 "id": "artifactregistry.operations.list",
44 "response": {
45 "$ref": "ListOperationsResponse"
46 },
47 "parameters": {
48 "pageToken": {
49 "type": "string",
50 "location": "query",
51 "description": "The standard list page token."
52 },
53 "filter": {
54 "location": "query",
55 "description": "The standard list filter.",
56 "type": "string"
57 },
58 "pageSize": {
59 "location": "query",
60 "type": "integer",
61 "description": "The standard list page size.",
62 "format": "int32"
63 },
64 "name": {
65 "description": "The name of the operation's parent resource.",
66 "location": "query",
67 "type": "string"
68 }
69 },
70 "httpMethod": "GET",
71 "path": "v1/operations"
72 },
73 "delete": {
74 "parameters": {
75 "name": {
76 "required": true,
77 "location": "path",
78 "type": "string",
79 "description": "The name of the operation resource to be deleted.",
80 "pattern": "^operations/.*$"
81 }
82 },
83 "id": "artifactregistry.operations.delete",
84 "scopes": [
85 "https://www.googleapis.com/auth/cloud-platform"
86 ],
87 "path": "v1/{+name}",
88 "httpMethod": "DELETE",
89 "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
90 "parameterOrder": [
91 "name"
92 ],
93 "response": {
94 "$ref": "Empty"
95 },
96 "flatPath": "v1/operations/{operationsId}"
97 },
98 "cancel": {
99 "request": {
100 "$ref": "CancelOperationRequest"
101 },
102 "parameterOrder": [
103 "name"
104 ],
105 "scopes": [
106 "https://www.googleapis.com/auth/cloud-platform"
107 ],
108 "id": "artifactregistry.operations.cancel",
109 "flatPath": "v1/operations/{operationsId}:cancel",
110 "response": {
111 "$ref": "Empty"
112 },
113 "path": "v1/{+name}:cancel",
114 "parameters": {
115 "name": {
116 "pattern": "^operations/.*$",
117 "location": "path",
118 "description": "The name of the operation resource to be cancelled.",
119 "type": "string",
120 "required": true
121 }
122 },
123 "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
124 "httpMethod": "POST"
125 }
126 }
127 }
128 },
129 "icons": {
130 "x32": "http://www.google.com/images/icons/product/search-32.gif",
131 "x16": "http://www.google.com/images/icons/product/search-16.gif"
132 },
133 "ownerName": "Google",
134 "fullyEncodeReservedExpansion": true,
135 "revision": "20201215",
136 "kind": "discovery#restDescription",
137 "basePath": "",
138 "documentationLink": "https://cloud.google.com/artifacts/docs/",
139 "name": "artifactregistry",
140 "rootUrl": "https://artifactregistry.googleapis.com/",
141 "auth": {
142 "oauth2": {
143 "scopes": {
144 "https://www.googleapis.com/auth/cloud-platform.read-only": {
145 "description": "View your data across Google Cloud Platform services"
146 },
147 "https://www.googleapis.com/auth/cloud-platform": {
148 "description": "View and manage your data across Google Cloud Platform services"
149 }
150 }
151 }
152 },
153 "protocol": "rest",
154 "discoveryVersion": "v1",
155 "version": "v1",
156 "canonicalName": "Artifact Registry",
157 "parameters": {
158 "oauth_token": {
159 "type": "string",
160 "description": "OAuth 2.0 token for the current user.",
161 "location": "query"
162 },
163 "access_token": {
164 "type": "string",
165 "description": "OAuth access token.",
166 "location": "query"
167 },
168 "key": {
169 "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.",
170 "type": "string",
171 "location": "query"
172 },
173 "alt": {
174 "description": "Data format for response.",
175 "location": "query",
176 "enumDescriptions": [
177 "Responses with Content-Type of application/json",
178 "Media download with context-dependent Content-Type",
179 "Responses with Content-Type of application/x-protobuf"
180 ],
181 "enum": [
182 "json",
183 "media",
184 "proto"
185 ],
186 "type": "string",
187 "default": "json"
188 },
189 "upload_protocol": {
190 "type": "string",
191 "location": "query",
192 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
193 },
194 "uploadType": {
195 "type": "string",
196 "location": "query",
197 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
198 },
199 "quotaUser": {
200 "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.",
201 "type": "string",
202 "location": "query"
203 },
204 "$.xgafv": {
205 "type": "string",
206 "enumDescriptions": [
207 "v1 error format",
208 "v2 error format"
209 ],
210 "location": "query",
211 "enum": [
212 "1",
213 "2"
214 ],
215 "description": "V1 error format."
216 },
217 "callback": {
218 "location": "query",
219 "description": "JSONP",
220 "type": "string"
221 },
222 "fields": {
223 "type": "string",
224 "description": "Selector specifying which fields to include in a partial response.",
225 "location": "query"
226 },
227 "prettyPrint": {
228 "type": "boolean",
229 "location": "query",
230 "description": "Returns response with indentations and line breaks.",
231 "default": "true"
232 }
233 },
234 "description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.",
235 "mtlsRootUrl": "https://artifactregistry.mtls.googleapis.com/",
236 "schemas": {
237 "Status": {
238 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
239 "properties": {
240 "message": {
241 "type": "string",
242 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client."
243 },
244 "code": {
245 "description": "The status code, which should be an enum value of google.rpc.Code.",
246 "format": "int32",
247 "type": "integer"
248 },
249 "details": {
250 "items": {
251 "additionalProperties": {
252 "type": "any",
253 "description": "Properties of the object. Contains field @type with type URL."
254 },
255 "type": "object"
256 },
257 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
258 "type": "array"
259 }
260 },
261 "id": "Status",
262 "type": "object"
263 },
264 "Operation": {
265 "id": "Operation",
266 "properties": {
267 "name": {
268 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
269 "type": "string"
270 },
271 "metadata": {
272 "additionalProperties": {
273 "type": "any",
274 "description": "Properties of the object. Contains field @type with type URL."
275 },
276 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
277 "type": "object"
278 },
279 "done": {
280 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
281 "type": "boolean"
282 },
283 "response": {
284 "additionalProperties": {
285 "description": "Properties of the object. Contains field @type with type URL.",
286 "type": "any"
287 },
288 "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
289 "type": "object"
290 },
291 "error": {
292 "description": "The error result of the operation in case of failure or cancellation.",
293 "$ref": "Status"
294 }
295 },
296 "description": "This resource represents a long-running operation that is the result of a network API call.",
297 "type": "object"
298 },
299 "DockerImage": {
300 "description": "DockerImage represents a docker artifact.",
301 "properties": {
302 "mediaType": {
303 "description": "Media type of this image, e.g. \"application/vnd.docker.distribution.manifest.v2+json\".",
304 "type": "string"
305 },
306 "uploadTime": {
307 "description": "Time the image was uploaded.",
308 "type": "string",
309 "format": "google-datetime"
310 },
311 "imageSizeBytes": {
312 "type": "string",
313 "format": "int64",
314 "description": "Calculated size of the image."
315 },
316 "uri": {
317 "type": "string",
318 "description": "Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf"
319 },
320 "tags": {
321 "description": "Tags attached to this image.",
322 "items": {
323 "type": "string"
324 },
325 "type": "array"
326 },
327 "name": {
328 "description": "Required. registry_location, project_id, repository_name and image id forms a unique image name:`projects//locations//repository//dockerimages/`. For example, \"projects/test-project/locations/us-west4/repositories/test-repo/dockerimages/ nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf\", where \"us-west4\" is the registry_location, \"test-project\" is the project_id, \"test-repo\" is the repository_name and \"nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf\" is the image's digest.",
329 "type": "string"
330 }
331 },
332 "id": "DockerImage",
333 "type": "object"
334 },
335 "CancelOperationRequest": {
336 "description": "The request message for Operations.CancelOperation.",
337 "properties": {},
338 "id": "CancelOperationRequest",
339 "type": "object"
340 },
341 "Empty": {
342 "properties": {},
343 "id": "Empty",
344 "type": "object",
345 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`."
346 },
347 "ListOperationsResponse": {
348 "id": "ListOperationsResponse",
349 "properties": {
350 "operations": {
351 "type": "array",
352 "description": "A list of operations that matches the specified filter in the request.",
353 "items": {
354 "$ref": "Operation"
355 }
356 },
357 "nextPageToken": {
358 "description": "The standard List next-page token.",
359 "type": "string"
360 }
361 },
362 "type": "object",
363 "description": "The response message for Operations.ListOperations."
364 }
365 },
366 "batchPath": "batch",
367 "ownerDomain": "google.com",
368 "id": "artifactregistry:v1"
369}