on develop help sign in
Updating cloudbuild service definition
5f0a518Brendan Hay
gen/model/cloudbuild/v1/cloudbuild-api.json+837−797
@@ -1,433 +1,90 @@
1{
1{
2− "id": "cloudbuild:v1",
2+ "schemas": {
3− "auth": {
3+ "BuildOptions": {
4− "oauth2": {
4+ "properties": {
5− "scopes": {
5+ "requestedVerifyOption": {
6− "https://www.googleapis.com/auth/cloud-platform": {
6+ "description": "Requested verifiability options.",
7− "description": "View and manage your data across Google Cloud Platform services"
7+ "type": "string",
8− }
8+ "enumDescriptions": [
9− }
9+ "Not a verifiable build. (default)",
10− }
10+ "Verified build."
11− },
12− "description": "Builds container images in the cloud.",
13− "protocol": "rest",
14− "title": "Google Cloud Container Builder API",
15− "resources": {
16− "projects": {
17− "resources": {
18− "triggers": {
19− "methods": {
20− "create": {
21− "id": "cloudbuild.projects.triggers.create",
22− "response": {
23− "$ref": "BuildTrigger"
24− },
25− "parameterOrder": [
26− "projectId"
27− ],
28− "description": "Creates a new BuildTrigger.\n\nThis API is experimental.",
29− "request": {
30− "$ref": "BuildTrigger"
31− },
32− "flatPath": "v1/projects/{projectId}/triggers",
33− "httpMethod": "POST",
34− "parameters": {
35− "projectId": {
36− "description": "ID of the project for which to configure automatic builds.",
37− "required": true,
38− "location": "path",
39− "type": "string"
40− }
41− },
42− "path": "v1/projects/{projectId}/triggers",
43− "scopes": [
44− "https://www.googleapis.com/auth/cloud-platform"
45− ]
46− },
47− "get": {
48− "id": "cloudbuild.projects.triggers.get",
49− "response": {
50− "$ref": "BuildTrigger"
51− },
52− "parameterOrder": [
53− "projectId",
54− "triggerId"
55− ],
56− "description": "Gets information about a BuildTrigger.\n\nThis API is experimental.",
57− "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
58− "httpMethod": "GET",
59− "parameters": {
60− "projectId": {
61− "description": "ID of the project that owns the trigger.",
62− "required": true,
63− "location": "path",
64− "type": "string"
65− },
66− "triggerId": {
67− "description": "ID of the BuildTrigger to get.",
68− "required": true,
69− "location": "path",
70− "type": "string"
71− }
72− },
73− "path": "v1/projects/{projectId}/triggers/{triggerId}",
74− "scopes": [
75− "https://www.googleapis.com/auth/cloud-platform"
76− ]
77− },
78− "list": {
79− "id": "cloudbuild.projects.triggers.list",
80− "response": {
81− "$ref": "ListBuildTriggersResponse"
82− },
83− "parameterOrder": [
84− "projectId"
85− ],
86− "description": "Lists existing BuildTrigger.\n\nThis API is experimental.",
87− "flatPath": "v1/projects/{projectId}/triggers",
88− "httpMethod": "GET",
89− "parameters": {
90− "projectId": {
91− "description": "ID of the project for which to list BuildTriggers.",
92− "required": true,
93− "location": "path",
94− "type": "string"
95− }
96− },
97− "path": "v1/projects/{projectId}/triggers",
98− "scopes": [
99− "https://www.googleapis.com/auth/cloud-platform"
100− ]
101− },
102− "delete": {
103− "id": "cloudbuild.projects.triggers.delete",
104− "response": {
105− "$ref": "Empty"
106− },
107− "parameterOrder": [
108− "projectId",
109− "triggerId"
110− ],
111− "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
112− "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
113− "httpMethod": "DELETE",
114− "parameters": {
115− "projectId": {
116− "description": "ID of the project that owns the trigger.",
117− "required": true,
118− "location": "path",
119− "type": "string"
120− },
121− "triggerId": {
122− "description": "ID of the BuildTrigger to delete.",
123− "required": true,
124− "location": "path",
125− "type": "string"
126− }
127− },
128− "path": "v1/projects/{projectId}/triggers/{triggerId}",
129− "scopes": [
130− "https://www.googleapis.com/auth/cloud-platform"
131− ]
132− },
133− "patch": {
134− "id": "cloudbuild.projects.triggers.patch",
135− "response": {
136− "$ref": "BuildTrigger"
137− },
138− "parameterOrder": [
139− "projectId",
140− "triggerId"
141− ],
142− "description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
143− "request": {
144− "$ref": "BuildTrigger"
145− },
146− "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
147− "httpMethod": "PATCH",
148− "parameters": {
149− "projectId": {
150− "description": "ID of the project that owns the trigger.",
151− "required": true,
152− "location": "path",
153− "type": "string"
154− },
155− "triggerId": {
156− "description": "ID of the BuildTrigger to update.",
157− "required": true,
158− "location": "path",
159− "type": "string"
160− }
161− },
162− "path": "v1/projects/{projectId}/triggers/{triggerId}",
163− "scopes": [
164− "https://www.googleapis.com/auth/cloud-platform"
165− ]
166− }
167− }
168− },
169− "builds": {
170− "methods": {
171− "create": {
172− "id": "cloudbuild.projects.builds.create",
173− "response": {
174− "$ref": "Operation"
175− },
176− "parameterOrder": [
177− "projectId"
178− ],
179− "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
180− "request": {
181− "$ref": "Build"
182− },
183− "flatPath": "v1/projects/{projectId}/builds",
184− "httpMethod": "POST",
185− "parameters": {
186− "projectId": {
187− "description": "ID of the project.",
188− "required": true,
189− "location": "path",
190− "type": "string"
191− }
192− },
193− "path": "v1/projects/{projectId}/builds",
194− "scopes": [
195− "https://www.googleapis.com/auth/cloud-platform"
196− ]
197− },
198− "get": {
199− "id": "cloudbuild.projects.builds.get",
200− "response": {
201− "$ref": "Build"
202− },
203− "parameterOrder": [
204− "projectId",
205− "id"
206− ],
207− "description": "Returns information about a previously requested build.\n\nThe Build that is returned includes its status (e.g., success or failure,\nor in-progress), and timing information.",
208− "flatPath": "v1/projects/{projectId}/builds/{id}",
209− "httpMethod": "GET",
210− "parameters": {
211− "projectId": {
212− "description": "ID of the project.",
213− "required": true,
214− "location": "path",
215− "type": "string"
216− },
217− "id": {
218− "description": "ID of the build.",
219− "required": true,
220− "location": "path",
221− "type": "string"
222− }
223− },
224− "path": "v1/projects/{projectId}/builds/{id}",
225− "scopes": [
226− "https://www.googleapis.com/auth/cloud-platform"
227− ]
228− },
229− "list": {
230− "id": "cloudbuild.projects.builds.list",
231− "response": {
232− "$ref": "ListBuildsResponse"
233− },
234− "parameterOrder": [
235− "projectId"
236− ],
237− "description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.",
238− "flatPath": "v1/projects/{projectId}/builds",
239− "httpMethod": "GET",
240− "parameters": {
241− "pageSize": {
242− "description": "Number of results to return in the list.",
243− "location": "query",
244− "type": "integer",
245− "format": "int32"
246− },
247− "filter": {
248− "description": "The raw filter text to constrain the results.",
249− "location": "query",
250− "type": "string"
251− },
252− "projectId": {
253− "description": "ID of the project.",
254− "required": true,
255− "location": "path",
256− "type": "string"
257− },
258− "pageToken": {
259− "description": "Token to provide to skip to a particular spot in the list.",
260− "location": "query",
261− "type": "string"
262− }
263− },
264− "path": "v1/projects/{projectId}/builds",
265− "scopes": [
266− "https://www.googleapis.com/auth/cloud-platform"
267− ]
268− },
269− "cancel": {
270− "id": "cloudbuild.projects.builds.cancel",
271− "response": {
272− "$ref": "Build"
273− },
274− "parameterOrder": [
275− "projectId",
276− "id"
277− ],
278− "description": "Cancels a requested build in progress.",
279− "request": {
280− "$ref": "CancelBuildRequest"
281− },
282− "flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
283− "httpMethod": "POST",
284− "parameters": {
285− "projectId": {
286− "description": "ID of the project.",
287− "required": true,
288− "location": "path",
289− "type": "string"
290− },
291− "id": {
292− "description": "ID of the build.",
293− "required": true,
294− "location": "path",
295− "type": "string"
296− }
297− },
298− "path": "v1/projects/{projectId}/builds/{id}:cancel",
299− "scopes": [
300− "https://www.googleapis.com/auth/cloud-platform"
301− ]
302− }
303− }
304− }
305− }
306− },
307− "operations": {
308− "methods": {
309− "get": {
310− "id": "cloudbuild.operations.get",
311− "response": {
312− "$ref": "Operation"
313− },
314− "parameterOrder": [
315− "name"
316 ],
11 ],
317− "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
12+ "enum": [
318− "flatPath": "v1/operations/{operationsId}",
13+ "NOT_VERIFIED",
319− "httpMethod": "GET",
14+ "VERIFIED"
320− "parameters": {
321− "name": {
322− "description": "The name of the operation resource.",
323− "required": true,
324− "pattern": "^operations/.+$",
325− "location": "path",
326− "type": "string"
327− }
328− },
329− "path": "v1/{+name}",
330− "scopes": [
331− "https://www.googleapis.com/auth/cloud-platform"
332 ]
15 ]
333 },
16 },
334− "list": {
17+ "sourceProvenanceHash": {
335− "id": "cloudbuild.operations.list",
18+ "description": "Requested hash for SourceProvenance.",
336− "response": {
19+ "type": "array",
337− "$ref": "ListOperationsResponse"
20+ "items": {
338− },
21+ "type": "string",
339− "parameterOrder": [
22+ "enum": [
340− "name"
23+ "NONE",
24+ "SHA256"
341− ],
25+ ]
342− "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`.",
343− "flatPath": "v1/operations",
344− "httpMethod": "GET",
345− "parameters": {
346− "pageSize": {
347− "description": "The standard list page size.",
348− "location": "query",
349− "type": "integer",
350− "format": "int32"
351− },
352− "filter": {
353− "description": "The standard list filter.",
354− "location": "query",
355− "type": "string"
356− },
357− "name": {
358− "description": "The name of the operation collection.",
359− "required": true,
360− "pattern": "^operations$",
361− "location": "path",
362− "type": "string"
363− },
364− "pageToken": {
365− "description": "The standard list page token.",
366− "location": "query",
367− "type": "string"
368− }
369 },
26 },
370− "path": "v1/{+name}",
27+ "enumDescriptions": [
371− "scopes": [
28+ "No hash requested.",
372− "https://www.googleapis.com/auth/cloud-platform"
29+ "Use a sha256 hash."
373 ]
30 ]
374 }
31 }
375− }
32+ },
376− }
33+ "id": "BuildOptions",
377− },
34+ "description": "Optional arguments to enable specific features of builds.",
378− "schemas": {
35+ "type": "object"
379− "Status": {
36+ },
380− "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
37+ "StorageSource": {
38+ "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
381 "type": "object",
39 "type": "object",
382 "properties": {
40 "properties": {
383− "code": {
41+ "bucket": {
384− "description": "The status code, which should be an enum value of google.rpc.Code.",
42+ "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
385− "type": "integer",
43+ "type": "string"
386− "format": "int32"
387 },
44 },
388− "details": {
45+ "object": {
389− "description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.",
46+ "type": "string",
390− "type": "array",
47+ "description": "Google Cloud Storage object containing source.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\nbuild."
391− "items": {
392− "additionalProperties": {
393− "description": "Properties of the object. Contains field @type with type URL.",
394− "type": "any"
395− },
396− "type": "object"
397− }
398 },
48 },
399− "message": {
49+ "generation": {
400− "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
401− "type": "string"
50+ "type": "string",
51+ "description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
52+ "format": "int64"
402 }
53 }
403 },
54 },
404− "id": "Status"
55+ "id": "StorageSource"
405 },
56 },
406− "BuildOperationMetadata": {
57+ "Results": {
407− "description": "Metadata for build operations.",
408 "type": "object",
58 "type": "object",
409 "properties": {
59 "properties": {
410− "build": {
60+ "buildStepImages": {
411− "description": "The build that the operation is tracking.",
61+ "type": "array",
412− "$ref": "Build"
62+ "items": {
63+ "type": "string"
64+ },
65+ "description": "List of build step digests, in order corresponding to build step indices."
66+ },
67+ "images": {
68+ "description": "Images that were built as a part of the build.",
69+ "type": "array",
70+ "items": {
71+ "$ref": "BuiltImage"
72+ }
413 }
73 }
414 },
74 },
415− "id": "BuildOperationMetadata"
75+ "id": "Results",
76+ "description": "Results describes the artifacts created by the build pipeline."
416 },
77 },
417− "Source": {
78+ "BuildOperationMetadata": {
418− "description": "Source describes the location of the source in a supported storage\nservice.",
79+ "description": "Metadata for build operations.",
419− "type": "object",
80+ "type": "object",
420− "properties": {
81+ "properties": {
421− "storageSource": {
82+ "build": {
422− "description": "If provided, get the source from this location in in Google Cloud\nStorage.",
83+ "$ref": "Build",
423− "$ref": "StorageSource"
84+ "description": "The build that the operation is tracking."
424− },
425− "repoSource": {
426− "description": "If provided, get source from this location in a Cloud Repo.",
427− "$ref": "RepoSource"
428 }
85 }
429 },
86 },
430− "id": "Source"
87+ "id": "BuildOperationMetadata"
431 },
88 },
432 "SourceProvenance": {
89 "SourceProvenance": {
433 "description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.",
90 "description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.",
@@ -438,202 +95,307 @@
438 "$ref": "RepoSource"
95 "$ref": "RepoSource"
439 },
96 },
440 "resolvedStorageSource": {
97 "resolvedStorageSource": {
98+ "$ref": "StorageSource",
441− "description": "A copy of the build's source.storage_source, if exists, with any\ngenerations resolved.",
99+ "description": "A copy of the build's source.storage_source, if exists, with any\ngenerations resolved."
442− "$ref": "StorageSource"
443 },
100 },
444 "fileHashes": {
101 "fileHashes": {
445− "description": "Hash(es) of the build source, which can be used to verify that the original\nsource integrity was maintained in the build. Note that FileHashes will\nonly be populated if BuildOptions has requested a SourceProvenanceHash.\n\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\n\nIf the build source came in a single package such as a gzipped tarfile\n(.tar.gz), the FileHash will be for the single path to that file.\n@OutputOnly",
102+ "type": "object",
446 "additionalProperties": {
103 "additionalProperties": {
447 "$ref": "FileHashes"
104 "$ref": "FileHashes"
448 },
105 },
449− "type": "object"
106+ "description": "Hash(es) of the build source, which can be used to verify that the original\nsource integrity was maintained in the build. Note that FileHashes will\nonly be populated if BuildOptions has requested a SourceProvenanceHash.\n\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\n\nIf the build source came in a single package such as a gzipped tarfile\n(.tar.gz), the FileHash will be for the single path to that file.\n@OutputOnly"
450 }
107 }
451 },
108 },
452 "id": "SourceProvenance"
109 "id": "SourceProvenance"
453 },
110 },
111+ "CancelOperationRequest": {
112+ "description": "The request message for Operations.CancelOperation.",
113+ "type": "object",
114+ "properties": {},
115+ "id": "CancelOperationRequest"
116+ },
454 "Operation": {
117 "Operation": {
455 "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
118 "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
456 "type": "object",
119 "type": "object",
457 "properties": {
120 "properties": {
458− "error": {
121+ "response": {
459− "description": "The error result of the operation in case of failure or cancellation.",
122+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
460− "$ref": "Status"
123+ "type": "object",
461− },
462− "done": {
463− "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
464− "type": "boolean"
465− },
466− "metadata": {
467− "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
468 "additionalProperties": {
124 "additionalProperties": {
469 "description": "Properties of the object. Contains field @type with type URL.",
125 "description": "Properties of the object. Contains field @type with type URL.",
470 "type": "any"
126 "type": "any"
471− },
127+ }
472− "type": "object"
473 },
128 },
474− "response": {
129+ "name": {
475− "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
130+ "type": "string",
131+ "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`."
132+ },
133+ "error": {
134+ "$ref": "Status",
135+ "description": "The error result of the operation in case of failure or cancellation."
136+ },
137+ "metadata": {
476 "additionalProperties": {
138 "additionalProperties": {
477 "description": "Properties of the object. Contains field @type with type URL.",
139 "description": "Properties of the object. Contains field @type with type URL.",
478 "type": "any"
140 "type": "any"
479 },
141 },
142+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
480 "type": "object"
143 "type": "object"
481 },
144 },
482− "name": {
145+ "done": {
483− "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
146+ "type": "boolean",
484− "type": "string"
147+ "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable."
485 }
148 }
486 },
149 },
487 "id": "Operation"
150 "id": "Operation"
488 },
151 },
489− "BuildTrigger": {
152+ "ListBuildTriggersResponse": {
490− "description": "Configuration for an automated build in response to source repository\nchanges.",
153+ "id": "ListBuildTriggersResponse",
154+ "description": "Response containing existing BuildTriggers.",
491 "type": "object",
155 "type": "object",
492 "properties": {
156 "properties": {
493− "id": {
157+ "triggers": {
494− "description": "Unique identifier of the trigger.\n\n@OutputOnly",
158+ "description": "BuildTriggers for the project, sorted by create_time descending.",
159+ "type": "array",
160+ "items": {
161+ "$ref": "BuildTrigger"
162+ }
163+ }
164+ }
165+ },
166+ "BuiltImage": {
167+ "description": "BuiltImage describes an image built by the pipeline.",
168+ "type": "object",
169+ "properties": {
170+ "name": {
171+ "description": "Name used to push the container image to Google Container Registry, as\npresented to `docker push`.",
495 "type": "string"
172 "type": "string"
496 },
173 },
497− "description": {
174+ "digest": {
498− "description": "Human-readable description of this trigger.",
175+ "description": "Docker Registry 2.0 digest.",
176+ "type": "string"
177+ }
178+ },
179+ "id": "BuiltImage"
180+ },
181+ "BuildStep": {
182+ "id": "BuildStep",
183+ "description": "BuildStep describes a step to perform in the build pipeline.",
184+ "type": "object",
185+ "properties": {
186+ "dir": {
187+ "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
499 "type": "string"
188 "type": "string"
500 },
189 },
501− "triggerTemplate": {
190+ "env": {
502− "description": "Template describing the types of source changes to trigger a build.\n\nBranch and tag names in trigger templates are interpreted as regular\nexpressions. Any branch or tag change that matches that regular expression\nwill trigger a build.",
191+ "description": "A list of environment variable definitions to be used when running a step.\n\nThe elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\"\nbeing given the value \"VALUE\".",
503− "$ref": "RepoSource"
192+ "type": "array",
193+ "items": {
194+ "type": "string"
195+ }
504 },
196 },
505− "disabled": {
197+ "waitFor": {
506− "description": "If true, the trigger will never result in a build.",
198+ "description": "The ID(s) of the step(s) that this build step depends on.\nThis build step will not start until all the build steps in wait_for\nhave completed successfully. If wait_for is empty, this build step will\nstart when all previous build steps in the Build.Steps list have completed\nsuccessfully.",
507− "type": "boolean"
199+ "type": "array",
200+ "items": {
201+ "type": "string"
202+ }
508 },
203 },
509− "createTime": {
204+ "args": {
510− "description": "Time when the trigger was created.\n\n@OutputOnly",
205+ "description": "A list of arguments that will be presented to the step when it is started.\n\nIf the image used to run the step's container has an entrypoint, these args\nwill be used as arguments to that entrypoint. If the image does not define\nan entrypoint, the first element in args will be used as the entrypoint,\nand the remainder will be used as arguments.",
206+ "type": "array",
207+ "items": {
511− "type": "string",
208+ "type": "string"
512− "format": "google-datetime"
209+ }
513 },
210 },
514− "filename": {
211+ "name": {
515− "description": "Path, from the source root, to a file whose contents is used for the\ntemplate.",
212+ "description": "The name of the container image that will run this particular build step.\n\nIf the image is already available in the host's Docker daemon's cache, it\nwill be run directly. If not, the host will attempt to pull the image\nfirst, using the builder service account's credentials if necessary.\n\nThe Docker daemon's cache will already have the latest versions of all of\nthe officially supported build steps\n(https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon\nwill also have cached many of the layers for some popular images, like\n\"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to\nuse them.\n\nIf you built an image in a previous build step, it will be stored in the\nhost's Docker daemon's cache and is available to use as the name for a\nlater build step.",
516 "type": "string"
213 "type": "string"
517 },
214 },
518− "build": {
215+ "entrypoint": {
519− "description": "Contents of the build template.",
216+ "description": "Optional entrypoint to be used instead of the build step image's default\nIf unset, the image's default will be used.",
520− "$ref": "Build"
217+ "type": "string"
218+ },
219+ "id": {
220+ "description": "Optional unique identifier for this build step, used in wait_for to\nreference this build step as a dependency.",
221+ "type": "string"
521 }
222 }
522− },
223+ }
523− "id": "BuildTrigger"
524 },
224 },
525− "BuiltImage": {
225+ "RepoSource": {
526− "description": "BuiltImage describes an image built by the pipeline.",
527 "type": "object",
226 "type": "object",
528 "properties": {
227 "properties": {
529− "digest": {
228+ "tagName": {
530− "description": "Docker Registry 2.0 digest.",
229+ "description": "Name of the tag to build.",
531 "type": "string"
230 "type": "string"
532 },
231 },
533− "name": {
232+ "commitSha": {
534− "description": "Name used to push the container image to Google Container Registry, as\npresented to `docker push`.",
233+ "description": "Explicit commit SHA to build.",
234+ "type": "string"
235+ },
236+ "projectId": {
237+ "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
238+ "type": "string"
239+ },
240+ "repoName": {
241+ "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
242+ "type": "string"
243+ },
244+ "branchName": {
245+ "description": "Name of the branch to build.",
535 "type": "string"
246 "type": "string"
536 }
247 }
537 },
248 },
538− "id": "BuiltImage"
249+ "id": "RepoSource",
250+ "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository."
539 },
251 },
540 "Hash": {
252 "Hash": {
253+ "id": "Hash",
541 "description": "Container message for hash values.",
254 "description": "Container message for hash values.",
542 "type": "object",
255 "type": "object",
543 "properties": {
256 "properties": {
544− "value": {
545− "description": "The hash value.",
546− "type": "string",
547− "format": "byte"
548− },
549 "type": {
257 "type": {
550− "description": "The type of hash that was performed.",
258+ "type": "string",
551− "enum": [
552− "NONE",
553− "SHA256"
554− ],
555 "enumDescriptions": [
259 "enumDescriptions": [
556 "No hash requested.",
260 "No hash requested.",
557 "Use a sha256 hash."
261 "Use a sha256 hash."
558 ],
262 ],
263+ "enum": [
264+ "NONE",
265+ "SHA256"
266+ ],
267+ "description": "The type of hash that was performed."
268+ },
269+ "value": {
270+ "description": "The hash value.",
271+ "format": "byte",
559 "type": "string"
272 "type": "string"
560 }
273 }
561− },
274+ }
562− "id": "Hash"
563 },
275 },
564− "StorageSource": {
276+ "FileHashes": {
565− "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
277+ "description": "Container message for hashes of byte content of files, used in\nSourceProvenance messages to verify integrity of source input to the build.",
566 "type": "object",
278 "type": "object",
567 "properties": {
279 "properties": {
568− "bucket": {
280+ "fileHash": {
569− "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
281+ "description": "Collection of file hashes.",
570− "type": "string"
282+ "type": "array",
571− },
283+ "items": {
572− "generation": {
284+ "$ref": "Hash"
573− "description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
285+ }
574− "type": "string",
575− "format": "int64"
576− },
577− "object": {
578− "description": "Google Cloud Storage object containing source.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\nbuild.",
579− "type": "string"
580 }
286 }
581 },
287 },
582− "id": "StorageSource"
288+ "id": "FileHashes"
583 },
289 },
584− "Results": {
290+ "Status": {
585− "description": "Results describes the artifacts created by the build pipeline.",
291+ "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
586 "type": "object",
292 "type": "object",
587 "properties": {
293 "properties": {
588− "images": {
294+ "code": {
589− "description": "Images that were built as a part of the build.",
295+ "description": "The status code, which should be an enum value of google.rpc.Code.",
296+ "format": "int32",
590− "type": "array",
297+ "type": "integer"
591− "items": {
592− "$ref": "BuiltImage"
593− }
594 },
298 },
595− "buildStepImages": {
299+ "message": {
596− "description": "List of build step digests, in order corresponding to build step indices.",
300+ "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
301+ "type": "string"
302+ },
303+ "details": {
304+ "description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.",
597 "type": "array",
305 "type": "array",
598 "items": {
306 "items": {
599− "type": "string"
307+ "type": "object",
308+ "additionalProperties": {
309+ "type": "any",
310+ "description": "Properties of the object. Contains field @type with type URL."
311+ }
600 }
312 }
601 }
313 }
602 },
314 },
603− "id": "Results"
315+ "id": "Status"
316+ },
317+ "Empty": {
318+ "properties": {},
319+ "id": "Empty",
320+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
321+ "type": "object"
322+ },
323+ "BuildTrigger": {
324+ "description": "Configuration for an automated build in response to source repository\nchanges.",
325+ "type": "object",
326+ "properties": {
327+ "disabled": {
328+ "description": "If true, the trigger will never result in a build.",
329+ "type": "boolean"
330+ },
331+ "createTime": {
332+ "description": "Time when the trigger was created.\n\n@OutputOnly",
333+ "format": "google-datetime",
334+ "type": "string"
335+ },
336+ "filename": {
337+ "description": "Path, from the source root, to a file whose contents is used for the\ntemplate.",
338+ "type": "string"
339+ },
340+ "triggerTemplate": {
341+ "$ref": "RepoSource",
342+ "description": "Template describing the types of source changes to trigger a build.\n\nBranch and tag names in trigger templates are interpreted as regular\nexpressions. Any branch or tag change that matches that regular expression\nwill trigger a build."
343+ },
344+ "id": {
345+ "description": "Unique identifier of the trigger.\n\n@OutputOnly",
346+ "type": "string"
347+ },
348+ "build": {
349+ "$ref": "Build",
350+ "description": "Contents of the build template."
351+ },
352+ "description": {
353+ "description": "Human-readable description of this trigger.",
354+ "type": "string"
355+ }
356+ },
357+ "id": "BuildTrigger"
604 },
358 },
605 "Build": {
359 "Build": {
606 "description": "A build resource in the Container Builder API.\n\nAt a high level, a Build describes where to find source code, how to build\nit (for example, the builder image to run on the source), and what tag to\napply to the built image when it is pushed to Google Container Registry.\n\nFields can include the following variables which will be expanded when the\nbuild is created:\n\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID of the build.\n- $REPO_NAME: the source repository name specified by RepoSource.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the tag name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or\n resolved from the specified branch or tag.",
360 "description": "A build resource in the Container Builder API.\n\nAt a high level, a Build describes where to find source code, how to build\nit (for example, the builder image to run on the source), and what tag to\napply to the built image when it is pushed to Google Container Registry.\n\nFields can include the following variables which will be expanded when the\nbuild is created:\n\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID of the build.\n- $REPO_NAME: the source repository name specified by RepoSource.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the tag name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or\n resolved from the specified branch or tag.",
607 "type": "object",
361 "type": "object",
608 "properties": {
362 "properties": {
609− "id": {
363+ "images": {
610− "description": "Unique identifier of the build.\n@OutputOnly",
364+ "description": "A list of images to be pushed upon the successful completion of all build\nsteps.\n\nThe images will be pushed using the builder service account's credentials.\n\nThe digests of the pushed images will be stored in the Build resource's\nresults field.\n\nIf any of the images fail to be pushed, the build is marked FAILURE.",
365+ "type": "array",
366+ "items": {
367+ "type": "string"
368+ }
369+ },
370+ "projectId": {
371+ "description": "ID of the project.\n@OutputOnly.",
611 "type": "string"
372 "type": "string"
612 },
373 },
613− "sourceProvenance": {
374+ "finishTime": {
614− "description": "A permanent fixed identifier for source.\n@OutputOnly",
375+ "description": "Time at which execution of the build was finished.\n\nThe difference between finish_time and start_time is the duration of the\nbuild's execution.\n@OutputOnly",
615− "$ref": "SourceProvenance"
376+ "format": "google-datetime",
377+ "type": "string"
616 },
378 },
617− "results": {
379+ "logUrl": {
618− "description": "Results of the build.\n@OutputOnly",
380+ "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly",
619− "$ref": "Results"
381+ "type": "string"
382+ },
383+ "options": {
384+ "$ref": "BuildOptions",
385+ "description": "Special options for this build."
386+ },
387+ "source": {
388+ "$ref": "Source",
389+ "description": "Describes where to find the source files to build."
390+ },
391+ "statusDetail": {
392+ "description": "Customer-readable message about the current status.\n@OutputOnly",
393+ "type": "string"
620 },
394 },
621 "status": {
395 "status": {
622− "description": "Status of the build.\n@OutputOnly",
396+ "type": "string",
623− "enum": [
624− "STATUS_UNKNOWN",
625− "QUEUING",
626− "QUEUED",
627− "WORKING",
628− "SUCCESS",
629− "FAILURE",
630− "INTERNAL_ERROR",
631− "TIMEOUT",
632− "CANCELLED"
633− ],
634 "enumDescriptions": [
397 "enumDescriptions": [
635 "Status of the build is unknown.",
398 "Status of the build is unknown.",
636− "Build has been received and is being queued.",
637 "Build is queued; work has not yet begun.",
399 "Build is queued; work has not yet begun.",
638 "Build is being executed.",
400 "Build is being executed.",
639 "Build finished successfully.",
401 "Build finished successfully.",
@@ -642,21 +404,30 @@
642 "Build took longer than was allowed.",
404 "Build took longer than was allowed.",
643 "Build was canceled by a user."
405 "Build was canceled by a user."
644 ],
406 ],
645− "type": "string"
407+ "enum": [
646− },
408+ "STATUS_UNKNOWN",
647− "options": {
409+ "QUEUED",
648− "description": "Special options for this build.",
410+ "WORKING",
649− "$ref": "BuildOptions"
411+ "SUCCESS",
650− },
412+ "FAILURE",
651− "finishTime": {
413+ "INTERNAL_ERROR",
414+ "TIMEOUT",
415+ "CANCELLED"
416+ ],
652− "description": "Time at which execution of the build was finished.\n@OutputOnly",
417+ "description": "Status of the build.\n@OutputOnly"
653− "type": "string",
654− "format": "google-datetime"
655 },
418 },
656 "timeout": {
419 "timeout": {
657 "description": "Amount of time that this build should be allowed to run, to second\ngranularity. If this amount of time elapses, work on the build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten minutes.",
420 "description": "Amount of time that this build should be allowed to run, to second\ngranularity. If this amount of time elapses, work on the build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten minutes.",
658− "type": "string",
659− "format": "google-duration"
421+ "format": "google-duration",
422+ "type": "string"
423+ },
424+ "results": {
425+ "description": "Results of the build.\n@OutputOnly",
426+ "$ref": "Results"
427+ },
428+ "logsBucket": {
429+ "description": "Google Cloud Storage bucket where logs should be written (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\nLogs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.",
430+ "type": "string"
660 },
431 },
661 "steps": {
432 "steps": {
662 "description": "Describes the operations to be performed on the workspace.",
433 "description": "Describes the operations to be performed on the workspace.",
@@ -665,261 +436,521 @@
665 "$ref": "BuildStep"
436 "$ref": "BuildStep"
666 }
437 }
667 },
438 },
668− "source": {
439+ "buildTriggerId": {
669− "description": "Describes where to find the source files to build.",
440+ "description": "The ID of the BuildTrigger that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
670− "$ref": "Source"
441+ "type": "string"
671 },
442 },
672− "createTime": {
443+ "id": {
673− "description": "Time at which the build was created.\n@OutputOnly",
444+ "description": "Unique identifier of the build.\n@OutputOnly",
674− "type": "string",
445+ "type": "string"
675− "format": "google-datetime"
676 },
446 },
677− "logUrl": {
447+ "startTime": {
678− "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly",
448+ "description": "Time at which execution of the build was started.\n@OutputOnly",
449+ "format": "google-datetime",
679 "type": "string"
450 "type": "string"
680 },
451 },
681− "statusDetail": {
452+ "sourceProvenance": {
682− "description": "Customer-readable message about the current status.\n@OutputOnly",
453+ "description": "A permanent fixed identifier for source.\n@OutputOnly",
454+ "$ref": "SourceProvenance"
455+ },
456+ "createTime": {
457+ "description": "Time at which the request to create the build was received.\n@OutputOnly",
458+ "format": "google-datetime",
459+ "type": "string"
460+ }
461+ },
462+ "id": "Build"
463+ },
464+ "CancelBuildRequest": {
465+ "description": "Request to cancel an ongoing build.",
466+ "type": "object",
467+ "properties": {},
468+ "id": "CancelBuildRequest"
469+ },
470+ "ListBuildsResponse": {
471+ "description": "Response including listed builds.",
472+ "type": "object",
473+ "properties": {
474+ "nextPageToken": {
475+ "description": "Token to receive the next page of results.",
683 "type": "string"
476 "type": "string"
684 },
477 },
685− "images": {
478+ "builds": {
686− "description": "A list of images to be pushed upon the successful completion of all build\nsteps.\n\nThe images will be pushed using the builder\nservice account's credentials.\n\nThe digests of the pushed images will be stored in the Build resource's\nresults field.\n\nIf any of the images fail to be pushed, the build is marked FAILURE.",
479+ "description": "Builds will be sorted by create_time, descending.",
687 "type": "array",
480 "type": "array",
688 "items": {
481 "items": {
482+ "$ref": "Build"
483+ }
484+ }
485+ },
486+ "id": "ListBuildsResponse"
487+ },
488+ "ListOperationsResponse": {
489+ "description": "The response message for Operations.ListOperations.",
490+ "type": "object",
491+ "properties": {
492+ "nextPageToken": {
689− "type": "string"
493+ "type": "string",
494+ "description": "The standard List next-page token."
495+ },
496+ "operations": {
497+ "type": "array",
498+ "items": {
499+ "$ref": "Operation"
500+ },
501+ "description": "A list of operations that matches the specified filter in the request."
502+ }
503+ },
504+ "id": "ListOperationsResponse"
505+ },
506+ "Source": {
507+ "description": "Source describes the location of the source in a supported storage\nservice.",
508+ "type": "object",
509+ "properties": {
510+ "storageSource": {
511+ "description": "If provided, get the source from this location in in Google Cloud\nStorage.",
512+ "$ref": "StorageSource"
513+ },
514+ "repoSource": {
515+ "description": "If provided, get source from this location in a Cloud Repo.",
516+ "$ref": "RepoSource"
517+ }
518+ },
519+ "id": "Source"
520+ }
521+ },
522+ "icons": {
523+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
524+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
525+ },
526+ "protocol": "rest",
527+ "canonicalName": "Cloud Build",
528+ "auth": {
529+ "oauth2": {
530+ "scopes": {
531+ "https://www.googleapis.com/auth/cloud-platform": {
532+ "description": "View and manage your data across Google Cloud Platform services"
533+ }
534+ }
535+ }
536+ },
537+ "rootUrl": "https://cloudbuild.googleapis.com/",
538+ "ownerDomain": "google.com",
539+ "name": "cloudbuild",
540+ "batchPath": "batch",
541+ "title": "Google Cloud Container Builder API",
542+ "ownerName": "Google",
543+ "resources": {
544+ "projects": {
545+ "resources": {
546+ "builds": {
547+ "methods": {
548+ "cancel": {
549+ "flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
550+ "path": "v1/projects/{projectId}/builds/{id}:cancel",
551+ "id": "cloudbuild.projects.builds.cancel",
552+ "description": "Cancels a requested build in progress.",
553+ "request": {
554+ "$ref": "CancelBuildRequest"
555+ },
556+ "response": {
557+ "$ref": "Build"
558+ },
559+ "parameterOrder": [
560+ "projectId",
561+ "id"
562+ ],
563+ "httpMethod": "POST",
564+ "scopes": [
565+ "https://www.googleapis.com/auth/cloud-platform"
566+ ],
567+ "parameters": {
568+ "projectId": {
569+ "description": "ID of the project.",
570+ "required": true,
571+ "type": "string",
572+ "location": "path"
573+ },
574+ "id": {
575+ "location": "path",
576+ "description": "ID of the build.",
577+ "required": true,
578+ "type": "string"
579+ }
580+ }
581+ },
582+ "get": {
583+ "description": "Returns information about a previously requested build.\n\nThe Build that is returned includes its status (e.g., success or failure,\nor in-progress), and timing information.",
584+ "httpMethod": "GET",
585+ "parameterOrder": [
586+ "projectId",
587+ "id"
588+ ],
589+ "response": {
590+ "$ref": "Build"
591+ },
592+ "parameters": {
593+ "projectId": {
594+ "location": "path",
595+ "description": "ID of the project.",
596+ "required": true,
597+ "type": "string"
598+ },
599+ "id": {
600+ "description": "ID of the build.",
601+ "required": true,
602+ "type": "string",
603+ "location": "path"
604+ }
605+ },
606+ "scopes": [
607+ "https://www.googleapis.com/auth/cloud-platform"
608+ ],
609+ "flatPath": "v1/projects/{projectId}/builds/{id}",
610+ "id": "cloudbuild.projects.builds.get",
611+ "path": "v1/projects/{projectId}/builds/{id}"
612+ },
613+ "list": {
614+ "parameters": {
615+ "projectId": {
616+ "location": "path",
617+ "description": "ID of the project.",
618+ "required": true,
619+ "type": "string"
620+ },
621+ "filter": {
622+ "type": "string",
623+ "location": "query",
624+ "description": "The raw filter text to constrain the results."
625+ },
626+ "pageToken": {
627+ "location": "query",
628+ "description": "Token to provide to skip to a particular spot in the list.",
629+ "type": "string"
630+ },
631+ "pageSize": {
632+ "description": "Number of results to return in the list.",
633+ "format": "int32",
634+ "type": "integer",
635+ "location": "query"
636+ }
637+ },
638+ "scopes": [
639+ "https://www.googleapis.com/auth/cloud-platform"
640+ ],
641+ "flatPath": "v1/projects/{projectId}/builds",
642+ "id": "cloudbuild.projects.builds.list",
643+ "path": "v1/projects/{projectId}/builds",
644+ "description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.",
645+ "httpMethod": "GET",
646+ "response": {
647+ "$ref": "ListBuildsResponse"
648+ },
649+ "parameterOrder": [
650+ "projectId"
651+ ]
652+ },
653+ "create": {
654+ "id": "cloudbuild.projects.builds.create",
655+ "path": "v1/projects/{projectId}/builds",
656+ "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
657+ "request": {
658+ "$ref": "Build"
659+ },
660+ "httpMethod": "POST",
661+ "parameterOrder": [
662+ "projectId"
663+ ],
664+ "response": {
665+ "$ref": "Operation"
666+ },
667+ "scopes": [
668+ "https://www.googleapis.com/auth/cloud-platform"
669+ ],
670+ "parameters": {
671+ "projectId": {
672+ "location": "path",
673+ "description": "ID of the project.",
674+ "required": true,
675+ "type": "string"
676+ }
677+ },
678+ "flatPath": "v1/projects/{projectId}/builds"
679+ }
690 }
680 }
691 },
681 },
692− "startTime": {
693− "description": "Time at which execution of the build was started.\n@OutputOnly",
694− "type": "string",
695− "format": "google-datetime"
696− },
697− "logsBucket": {
698− "description": "Google Cloud Storage bucket where logs should be written (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\nLogs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.",
699− "type": "string"
700− },
701− "projectId": {
702− "description": "ID of the project.\n@OutputOnly.",
703− "type": "string"
704− }
705− },
706− "id": "Build"
707− },
708− "ListBuildTriggersResponse": {
709− "description": "Response containing existing BuildTriggers.",
710− "type": "object",
711− "properties": {
712 "triggers": {
682 "triggers": {
713− "description": "BuildTriggers for the project, sorted by create_time descending.",
683+ "methods": {
684+ "delete": {
685+ "response": {
686+ "$ref": "Empty"
687+ },
688+ "parameterOrder": [
689+ "projectId",
690+ "triggerId"
691+ ],
692+ "httpMethod": "DELETE",
693+ "scopes": [
694+ "https://www.googleapis.com/auth/cloud-platform"
695+ ],
696+ "parameters": {
697+ "triggerId": {
698+ "required": true,
699+ "type": "string",
700+ "location": "path",
701+ "description": "ID of the BuildTrigger to delete."
702+ },
703+ "projectId": {
704+ "required": true,
705+ "type": "string",
706+ "location": "path",
707+ "description": "ID of the project that owns the trigger."
708+ }
709+ },
710+ "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
711+ "path": "v1/projects/{projectId}/triggers/{triggerId}",
712+ "id": "cloudbuild.projects.triggers.delete",
713+ "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental."
714+ },
715+ "get": {
716+ "httpMethod": "GET",
717+ "parameterOrder": [
718+ "projectId",
719+ "triggerId"
720+ ],
721+ "response": {
722+ "$ref": "BuildTrigger"
723+ },
724+ "scopes": [
725+ "https://www.googleapis.com/auth/cloud-platform"
726+ ],
727+ "parameters": {
728+ "triggerId": {
729+ "location": "path",
730+ "description": "ID of the BuildTrigger to get.",
731+ "required": true,
732+ "type": "string"
733+ },
734+ "projectId": {
735+ "description": "ID of the project that owns the trigger.",
736+ "required": true,
714− "type": "array",
737+ "type": "string",
715− "items": {
738+ "location": "path"
716− "$ref": "BuildTrigger"
739+ }
717− }
740+ },
718− }
741+ "flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
742+ "id": "cloudbuild.projects.triggers.get",
743+ "path": "v1/projects/{projectId}/triggers/{triggerId}",
744+ "description": "Gets information about a BuildTrigger.\n\nThis API is experimental."
719− },
745+ },
746+ "list": {
747+ "response": {
720− "id": "ListBuildTriggersResponse"
748+ "$ref": "ListBuildTriggersResponse"
721− },
749+ },
722− "CancelBuildRequest": {
750+ "parameterOrder": [
723− "description": "Request to cancel an ongoing build.",
751+ "projectId"
724− "type": "object",
752+ ],
725− "properties": {},
753+ "httpMethod": "GET",
726− "id": "CancelBuildRequest"
754+ "scopes": [
727− },
755+ "https://www.googleapis.com/auth/cloud-platform"
728− "FileHashes": {
756+ ],
729− "description": "Container message for hashes of byte content of files, used in\nSourceProvenance messages to verify integrity of source input to the build.",
757+ "parameters": {
730− "type": "object",
758+ "projectId": {
731− "properties": {
759+ "description": "ID of the project for which to list BuildTriggers.",
732− "fileHash": {
760+ "required": true,
733− "description": "Collection of file hashes.",
761+ "type": "string",
734− "type": "array",
762+ "location": "path"
735− "items": {
763+ }
736− "$ref": "Hash"
764+ },
737− }
765+ "flatPath": "v1/projects/{projectId}/triggers",
738− }
766+ "path": "v1/projects/{projectId}/triggers",
739− },
767+ "id": "cloudbuild.projects.triggers.list",
740− "id": "FileHashes"
768+ "description": "Lists existing BuildTrigger.\n\nThis API is experimental."
741− },
769+ },
742− "ListOperationsResponse": {
770+ "patch": {
743− "description": "The response message for Operations.ListOperations.",
771+ "path": "v1/projects/{projectId}/triggers/{triggerId}",
744− "type": "object",
772+ "id": "cloudbuild.projects.triggers.patch",
745− "properties": {
773+ "description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
746− "nextPageToken": {
774+ "request": {
747− "description": "The standard List next-page token.",
775+ "$ref": "BuildTrigger"
748− "type": "string"
749− },
776+ },
750− "operations": {
777+ "response": {
751− "description": "A list of operations that matches the specified filter in the request.",
778+ "$ref": "BuildTrigger"
752− "type": "array",
779+ },
753− "items": {
780+ "parameterOrder": [
754− "$ref": "Operation"
781+ "projectId",
755− }
782+ "triggerId"
756− }
783+ ],
757− },
784+ "httpMethod": "PATCH",
758− "id": "ListOperationsResponse"
785+ "scopes": [
786+ "https://www.googleapis.com/auth/cloud-platform"
759− },
787+ ],
760− "RepoSource": {
788+ "parameters": {
761− "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
789+ "triggerId": {
790+ "location": "path",
791+ "description": "ID of the BuildTrigger to update.",
792+ "required": true,
762− "type": "object",
793+ "type": "string"
763− "properties": {
794+ },
764− "repoName": {
795+ "projectId": {
765− "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
796+ "location": "path",
797+ "description": "ID of the project that owns the trigger.",
798+ "required": true,
766− "type": "string"
799+ "type": "string"
767− },
800+ }
768− "tagName": {
801+ },
769− "description": "Name of the tag to build.",
802+ "flatPath": "v1/projects/{projectId}/triggers/{triggerId}"
770− "type": "string"
771− },
803+ },
772− "projectId": {
804+ "create": {
773− "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
805+ "description": "Creates a new BuildTrigger.\n\nThis API is experimental.",
774− "type": "string"
806+ "request": {
807+ "$ref": "BuildTrigger"
775− },
808+ },
776− "branchName": {
809+ "response": {
777− "description": "Name of the branch to build.",
810+ "$ref": "BuildTrigger"
778− "type": "string"
811+ },
812+ "parameterOrder": [
813+ "projectId"
779− },
814+ ],
780− "commitSha": {
815+ "httpMethod": "POST",
781− "description": "Explicit commit SHA to build.",
816+ "scopes": [
782− "type": "string"
817+ "https://www.googleapis.com/auth/cloud-platform"
783− }
818+ ],
784− },
819+ "parameters": {
785− "id": "RepoSource"
820+ "projectId": {
786− },
821+ "location": "path",
787− "BuildStep": {
822+ "description": "ID of the project for which to configure automatic builds.",
788− "description": "BuildStep describes a step to perform in the build pipeline.",
823+ "required": true,
789− "type": "object",
790− "properties": {
791− "id": {
792− "description": "Optional unique identifier for this build step, used in wait_for to\nreference this build step as a dependency.",
793− "type": "string"
824+ "type": "string"
825+ }
794− },
826+ },
795− "env": {
827+ "flatPath": "v1/projects/{projectId}/triggers",
796− "description": "A list of environment variable definitions to be used when running a step.\n\nThe elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\"\nbeing given the value \"VALUE\".",
828+ "path": "v1/projects/{projectId}/triggers",
797− "type": "array",
829+ "id": "cloudbuild.projects.triggers.create"
798− "items": {
799− "type": "string"
800− }
801− },
830+ }
802− "waitFor": {
803− "description": "The ID(s) of the step(s) that this build step depends on.\nThis build step will not start until all the build steps in wait_for\nhave completed successfully. If wait_for is empty, this build step will\nstart when all previous build steps in the Build.Steps list have completed\nsuccessfully.",
804− "type": "array",
805− "items": {
806− "type": "string"
807− }
808− },
809− "args": {
810− "description": "A list of arguments that will be presented to the step when it is started.\n\nIf the image used to run the step's container has an entrypoint, these args\nwill be used as arguments to that entrypoint. If the image does not define\nan entrypoint, the first element in args will be used as the entrypoint,\nand the remainder will be used as arguments.",
811− "type": "array",
812− "items": {
813− "type": "string"
814 }
831 }
815− },
816− "name": {
817− "description": "The name of the container image that will run this particular build step.\n\nIf the image is already available in the host's\nDocker daemon's cache, it will be run directly. If not, the host will\nattempt to pull the image first, using the builder service account's\ncredentials if necessary.\n\nThe Docker daemon's cache will already have the latest versions of all of\nthe officially supported build steps\n(https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon\nwill also have cached many of the layers for some popular images, like\n\"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to\nuse them.\n\nIf you built an image in a previous build step, it will be stored in the\nhost's Docker daemon's cache and is available to use as the name for a\nlater build step.",
818− "type": "string"
819− },
820− "dir": {
821− "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
822− "type": "string"
823 }
832 }
824− },
833+ }
825− "id": "BuildStep"
826− },
827− "Empty": {
828− "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
829− "type": "object",
830− "properties": {},
831− "id": "Empty"
832 },
834 },
833− "BuildOptions": {
835+ "operations": {
834− "description": "Optional arguments to enable specific features of builds.",
836+ "methods": {
835− "type": "object",
837+ "list": {
836− "properties": {
838+ "httpMethod": "GET",
837− "sourceProvenanceHash": {
839+ "response": {
838− "description": "Requested hash for SourceProvenance.",
840+ "$ref": "ListOperationsResponse"
839− "enumDescriptions": [
841+ },
840− "No hash requested.",
842+ "parameterOrder": [
841− "Use a sha256 hash."
843+ "name"
842 ],
844 ],
845+ "parameters": {
846+ "filter": {
847+ "description": "The standard list filter.",
843− "type": "array",
848+ "type": "string",
844− "items": {
849+ "location": "query"
845− "enum": [
850+ },
846− "NONE",
851+ "name": {
847− "SHA256"
852+ "pattern": "^operations$",
853+ "location": "path",
854+ "description": "The name of the operation collection.",
855+ "required": true,
856+ "type": "string"
857+ },
858+ "pageToken": {
859+ "location": "query",
860+ "description": "The standard list page token.",
861+ "type": "string"
862+ },
863+ "pageSize": {
864+ "location": "query",
865+ "description": "The standard list page size.",
866+ "format": "int32",
867+ "type": "integer"
868+ }
869+ },
870+ "scopes": [
871+ "https://www.googleapis.com/auth/cloud-platform"
848− ],
872+ ],
849− "type": "string"
873+ "flatPath": "v1/operations",
850− }
874+ "id": "cloudbuild.operations.list",
875+ "path": "v1/{+name}",
876+ "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`."
851 },
877 },
852− "requestedVerifyOption": {
878+ "get": {
853− "description": "Requested verifiability options.",
879+ "path": "v1/{+name}",
854− "enum": [
880+ "id": "cloudbuild.operations.get",
855− "NOT_VERIFIED",
881+ "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
856− "VERIFIED"
882+ "response": {
883+ "$ref": "Operation"
884+ },
885+ "parameterOrder": [
886+ "name"
857 ],
887 ],
858− "enumDescriptions": [
888+ "httpMethod": "GET",
859− "Not a verifiable build. (default)",
889+ "scopes": [
860− "Verified build."
890+ "https://www.googleapis.com/auth/cloud-platform"
861 ],
891 ],
862− "type": "string"
892+ "parameters": {
863− }
893+ "name": {
864− },
894+ "pattern": "^operations/.+$",
865− "id": "BuildOptions"
895+ "location": "path",
866− },
896+ "description": "The name of the operation resource.",
867− "ListBuildsResponse": {
897+ "required": true,
868− "description": "Response including listed builds.",
898+ "type": "string"
869− "type": "object",
899+ }
870− "properties": {
900+ },
871− "nextPageToken": {
901+ "flatPath": "v1/operations/{operationsId}"
872− "description": "Token to receive the next page of results.",
873− "type": "string"
874 },
902 },
875− "builds": {
903+ "cancel": {
876− "description": "Builds will be sorted by create_time, descending.",
904+ "response": {
905+ "$ref": "Empty"
906+ },
907+ "parameterOrder": [
908+ "name"
909+ ],
910+ "httpMethod": "POST",
911+ "parameters": {
912+ "name": {
913+ "description": "The name of the operation resource to be cancelled.",
914+ "required": true,
877− "type": "array",
915+ "type": "string",
878− "items": {
916+ "pattern": "^operations/.+$",
879− "$ref": "Build"
917+ "location": "path"
918+ }
919+ },
920+ "scopes": [
921+ "https://www.googleapis.com/auth/cloud-platform"
922+ ],
923+ "flatPath": "v1/operations/{operationsId}:cancel",
924+ "path": "v1/{+name}:cancel",
925+ "id": "cloudbuild.operations.cancel",
926+ "request": {
927+ "$ref": "CancelOperationRequest"
880− }
928+ },
929+ "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`."
881 }
930 }
882− },
931+ }
883− "id": "ListBuildsResponse"
884 }
932 }
885 },
933 },
886− "revision": "20161020",
887− "basePath": "",
888− "icons": {
889− "x32": "http://www.google.com/images/icons/product/search-32.gif",
890− "x16": "http://www.google.com/images/icons/product/search-16.gif"
891− },
892− "version_module": "True",
893− "canonicalName": "Cloud Build",
894− "discoveryVersion": "v1",
895− "baseUrl": "https://cloudbuild.googleapis.com/",
896− "name": "cloudbuild",
897 "parameters": {
934 "parameters": {
898− "access_token": {
935+ "bearer_token": {
899− "description": "OAuth access token.",
936+ "description": "OAuth bearer token.",
900 "type": "string",
937 "type": "string",
901 "location": "query"
938 "location": "query"
902 },
939 },
940+ "oauth_token": {
941+ "location": "query",
942+ "description": "OAuth 2.0 token for the current user.",
943+ "type": "string"
944+ },
945+ "upload_protocol": {
946+ "location": "query",
947+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
948+ "type": "string"
949+ },
903 "prettyPrint": {
950 "prettyPrint": {
904 "description": "Returns response with indentations and line breaks.",
951 "description": "Returns response with indentations and line breaks.",
905− "default": "true",
906 "type": "boolean",
952 "type": "boolean",
907− "location": "query"
908− },
909− "key": {
910− "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.",
911− "type": "string",
912− "location": "query"
913− },
914− "quotaUser": {
915− "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.",
916− "type": "string",
917− "location": "query"
918− },
919− "pp": {
920− "description": "Pretty-print response.",
921 "default": "true",
953 "default": "true",
922− "type": "boolean",
923 "location": "query"
954 "location": "query"
924 },
955 },
925 "fields": {
956 "fields": {
@@ -927,67 +958,76 @@
927 "type": "string",
958 "type": "string",
928 "location": "query"
959 "location": "query"
929 },
960 },
930− "alt": {
961+ "uploadType": {
931− "description": "Data format for response.",
932 "location": "query",
962 "location": "query",
933− "enum": [
963+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
934− "json",
935− "media",
936− "proto"
937− ],
938− "default": "json",
939− "enumDescriptions": [
940− "Responses with Content-Type of application/json",
941− "Media download with context-dependent Content-Type",
942− "Responses with Content-Type of application/x-protobuf"
943− ],
944 "type": "string"
964 "type": "string"
945 },
965 },
966+ "callback": {
967+ "description": "JSONP",
968+ "type": "string",
969+ "location": "query"
970+ },
946 "$.xgafv": {
971 "$.xgafv": {
947− "description": "V1 error format.",
948 "enum": [
972 "enum": [
949 "1",
973 "1",
950 "2"
974 "2"
951 ],
975 ],
976+ "description": "V1 error format.",
977+ "type": "string",
952 "enumDescriptions": [
978 "enumDescriptions": [
953 "v1 error format",
979 "v1 error format",
954 "v2 error format"
980 "v2 error format"
955 ],
981 ],
956− "type": "string",
957 "location": "query"
982 "location": "query"
958 },
983 },
959− "callback": {
984+ "alt": {
960− "description": "JSONP",
985+ "enum": [
986+ "json",
987+ "media",
988+ "proto"
989+ ],
961 "type": "string",
990 "type": "string",
991+ "enumDescriptions": [
992+ "Responses with Content-Type of application/json",
993+ "Media download with context-dependent Content-Type",
994+ "Responses with Content-Type of application/x-protobuf"
995+ ],
962− "location": "query"
996+ "location": "query",
997+ "description": "Data format for response.",
998+ "default": "json"
963 },
999 },
964− "oauth_token": {
1000+ "access_token": {
1001+ "location": "query",
965− "description": "OAuth 2.0 token for the current user.",
1002+ "description": "OAuth access token.",
966− "type": "string",
1003+ "type": "string"
967− "location": "query"
968 },
1004 },
969− "uploadType": {
1005+ "key": {
970− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1006+ "location": "query",
1007+ "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.",
971− "type": "string",
1008+ "type": "string"
972− "location": "query"
973 },
1009 },
974− "bearer_token": {
1010+ "quotaUser": {
975− "description": "OAuth bearer token.",
1011+ "location": "query",
1012+ "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.",
976− "type": "string",
1013+ "type": "string"
977− "location": "query"
978 },
1014 },
979− "upload_protocol": {
1015+ "pp": {
980− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1016+ "description": "Pretty-print response.",
981− "type": "string",
1017+ "type": "boolean",
1018+ "default": "true",
982 "location": "query"
1019 "location": "query"
983 }
1020 }
984 },
1021 },
985− "documentationLink": "https://cloud.google.com/container-builder/docs/",
986− "ownerDomain": "google.com",
987− "batchPath": "batch",
988− "servicePath": "",
989− "ownerName": "Google",
990 "version": "v1",
1022 "version": "v1",
991− "rootUrl": "https://cloudbuild.googleapis.com/",
1023+ "baseUrl": "https://cloudbuild.googleapis.com/",
1024+ "servicePath": "",
992− "kind": "discovery#restDescription"
1025+ "kind": "discovery#restDescription",
1026+ "description": "Builds container images in the cloud.",
1027+ "basePath": "",
1028+ "revision": "20170125",
1029+ "documentationLink": "https://cloud.google.com/container-builder/docs/",
1030+ "id": "cloudbuild:v1",
1031+ "discoveryVersion": "v1",
1032+ "version_module": "True"
993}
1033}