on develop help sign in
Regenerating gogol-cloudbuild from latest service definition
commit7434b6292cd9fd60fec46657b174d1ea6af2b5d1 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parentc23ac4d
1 file changed+387−18
gen/model/cloudbuild/v1/cloudbuild-api.json+387−18
gen/model/cloudbuild/v1/cloudbuild-api.json+387−18
@@ -15,6 +15,157 @@
1515 "resources": {
1616 "projects": {
1717 "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+ },
18169 "builds": {
19170 "methods": {
20171 "create": {
@@ -93,6 +244,11 @@
93244 "type": "integer",
94245 "format": "int32"
95246 },
247+ "filter": {
248+ "description": "The raw filter text to constrain the results.",
249+ "location": "query",
250+ "type": "string"
251+ },
96252 "projectId": {
97253 "description": "ID of the project.",
98254 "required": true,
@@ -165,7 +321,7 @@
165321 "name": {
166322 "description": "The name of the operation resource.",
167323 "required": true,
168− "pattern": "^operations/.*$",
324+ "pattern": "^operations/.+$",
169325 "location": "path",
170326 "type": "string"
171327 }
@@ -234,7 +390,7 @@
234390 "type": "array",
235391 "items": {
236392 "additionalProperties": {
237− "description": "Properties of the object. Contains field @ype with type URL.",
393+ "description": "Properties of the object. Contains field @type with type URL.",
238394 "type": "any"
239395 },
240396 "type": "object"
@@ -265,16 +421,42 @@
265421 "storageSource": {
266422 "description": "If provided, get the source from this location in in Google Cloud\nStorage.",
267423 "$ref": "StorageSource"
424+ },
425+ "repoSource": {
426+ "description": "If provided, get source from this location in a Cloud Repo.",
427+ "$ref": "RepoSource"
268428 }
269429 },
270430 "id": "Source"
271431 },
432+ "SourceProvenance": {
433+ "description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.",
434+ "type": "object",
435+ "properties": {
436+ "resolvedRepoSource": {
437+ "description": "A copy of the build's source.repo_source, if exists, with any\nrevisions resolved.",
438+ "$ref": "RepoSource"
439+ },
440+ "resolvedStorageSource": {
441+ "description": "A copy of the build's source.storage_source, if exists, with any\ngenerations resolved.",
442+ "$ref": "StorageSource"
443+ },
444+ "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",
446+ "additionalProperties": {
447+ "$ref": "FileHashes"
448+ },
449+ "type": "object"
450+ }
451+ },
452+ "id": "SourceProvenance"
453+ },
272454 "Operation": {
273455 "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
274456 "type": "object",
275457 "properties": {
276458 "error": {
277− "description": "The error result of the operation in case of failure.",
459+ "description": "The error result of the operation in case of failure or cancellation.",
278460 "$ref": "Status"
279461 },
280462 "done": {
@@ -284,7 +466,7 @@
284466 "metadata": {
285467 "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.",
286468 "additionalProperties": {
287− "description": "Properties of the object. Contains field @ype with type URL.",
469+ "description": "Properties of the object. Contains field @type with type URL.",
288470 "type": "any"
289471 },
290472 "type": "object"
@@ -292,7 +474,7 @@
292474 "response": {
293475 "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`.",
294476 "additionalProperties": {
295− "description": "Properties of the object. Contains field @ype with type URL.",
477+ "description": "Properties of the object. Contains field @type with type URL.",
296478 "type": "any"
297479 },
298480 "type": "object"
@@ -304,6 +486,42 @@
304486 },
305487 "id": "Operation"
306488 },
489+ "BuildTrigger": {
490+ "description": "Configuration for an automated build in response to source repository\nchanges.",
491+ "type": "object",
492+ "properties": {
493+ "id": {
494+ "description": "Unique identifier of the trigger.\n\n@OutputOnly",
495+ "type": "string"
496+ },
497+ "description": {
498+ "description": "Human-readable description of this trigger.",
499+ "type": "string"
500+ },
501+ "triggerTemplate": {
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.",
503+ "$ref": "RepoSource"
504+ },
505+ "disabled": {
506+ "description": "If true, the trigger will never result in a build.",
507+ "type": "boolean"
508+ },
509+ "createTime": {
510+ "description": "Time when the trigger was created.\n\n@OutputOnly",
511+ "type": "string",
512+ "format": "google-datetime"
513+ },
514+ "filename": {
515+ "description": "Path, from the source root, to a file whose contents is used for the\ntemplate.",
516+ "type": "string"
517+ },
518+ "build": {
519+ "description": "Contents of the build template.",
520+ "$ref": "Build"
521+ }
522+ },
523+ "id": "BuildTrigger"
524+ },
307525 "BuiltImage": {
308526 "description": "BuiltImage describes an image built by the pipeline.",
309527 "type": "object",
@@ -319,6 +537,30 @@
319537 },
320538 "id": "BuiltImage"
321539 },
540+ "Hash": {
541+ "description": "Container message for hash values.",
542+ "type": "object",
543+ "properties": {
544+ "value": {
545+ "description": "The hash value.",
546+ "type": "string",
547+ "format": "byte"
548+ },
549+ "type": {
550+ "description": "The type of hash that was performed.",
551+ "enum": [
552+ "NONE",
553+ "SHA256"
554+ ],
555+ "enumDescriptions": [
556+ "No hash requested.",
557+ "Use a sha256 hash."
558+ ],
559+ "type": "string"
560+ }
561+ },
562+ "id": "Hash"
563+ },
322564 "StorageSource": {
323565 "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
324566 "type": "object",
@@ -349,18 +591,29 @@
349591 "items": {
350592 "$ref": "BuiltImage"
351593 }
594+ },
595+ "buildStepImages": {
596+ "description": "List of build step digests, in order corresponding to build step indices.",
597+ "type": "array",
598+ "items": {
599+ "type": "string"
600+ }
352601 }
353602 },
354603 "id": "Results"
355604 },
356605 "Build": {
357− "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.",
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.",
358607 "type": "object",
359608 "properties": {
360609 "id": {
361610 "description": "Unique identifier of the build.\n@OutputOnly",
362611 "type": "string"
363612 },
613+ "sourceProvenance": {
614+ "description": "A permanent fixed identifier for source.\n@OutputOnly",
615+ "$ref": "SourceProvenance"
616+ },
364617 "results": {
365618 "description": "Results of the build.\n@OutputOnly",
366619 "$ref": "Results"
@@ -369,6 +622,7 @@
369622 "description": "Status of the build.\n@OutputOnly",
370623 "enum": [
371624 "STATUS_UNKNOWN",
625+ "QUEUING",
372626 "QUEUED",
373627 "WORKING",
374628 "SUCCESS",
@@ -379,7 +633,8 @@
379633 ],
380634 "enumDescriptions": [
381635 "Status of the build is unknown.",
382− "Build is queued, work has not yet begun.",
636+ "Build has been received and is being queued.",
637+ "Build is queued; work has not yet begun.",
383638 "Build is being executed.",
384639 "Build finished successfully.",
385640 "Build failed to complete successfully.",
@@ -389,6 +644,10 @@
389644 ],
390645 "type": "string"
391646 },
647+ "options": {
648+ "description": "Special options for this build.",
649+ "$ref": "BuildOptions"
650+ },
392651 "finishTime": {
393652 "description": "Time at which execution of the build was finished.\n@OutputOnly",
394653 "type": "string",
@@ -415,12 +674,16 @@
415674 "type": "string",
416675 "format": "google-datetime"
417676 },
677+ "logUrl": {
678+ "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly",
679+ "type": "string"
680+ },
418681 "statusDetail": {
419682 "description": "Customer-readable message about the current status.\n@OutputOnly",
420683 "type": "string"
421684 },
422685 "images": {
423− "description": "List of images expected to be built and pushed to Google Container\nRegistry. If an image is listed here and the image is not produced by\none of the build steps, the build will fail. Any images present when\nthe build steps are complete will be pushed to Container Registry.",
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.",
424687 "type": "array",
425688 "items": {
426689 "type": "string"
@@ -442,12 +705,40 @@
442705 },
443706 "id": "Build"
444707 },
708+ "ListBuildTriggersResponse": {
709+ "description": "Response containing existing BuildTriggers.",
710+ "type": "object",
711+ "properties": {
712+ "triggers": {
713+ "description": "BuildTriggers for the project, sorted by create_time descending.",
714+ "type": "array",
715+ "items": {
716+ "$ref": "BuildTrigger"
717+ }
718+ }
719+ },
720+ "id": "ListBuildTriggersResponse"
721+ },
445722 "CancelBuildRequest": {
446723 "description": "Request to cancel an ongoing build.",
447724 "type": "object",
448725 "properties": {},
449726 "id": "CancelBuildRequest"
450727 },
728+ "FileHashes": {
729+ "description": "Container message for hashes of byte content of files, used in\nSourceProvenance messages to verify integrity of source input to the build.",
730+ "type": "object",
731+ "properties": {
732+ "fileHash": {
733+ "description": "Collection of file hashes.",
734+ "type": "array",
735+ "items": {
736+ "$ref": "Hash"
737+ }
738+ }
739+ },
740+ "id": "FileHashes"
741+ },
451742 "ListOperationsResponse": {
452743 "description": "The response message for Operations.ListOperations.",
453744 "type": "object",
@@ -466,34 +757,112 @@
466757 },
467758 "id": "ListOperationsResponse"
468759 },
760+ "RepoSource": {
761+ "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
762+ "type": "object",
763+ "properties": {
764+ "repoName": {
765+ "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
766+ "type": "string"
767+ },
768+ "tagName": {
769+ "description": "Name of the tag to build.",
770+ "type": "string"
771+ },
772+ "projectId": {
773+ "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
774+ "type": "string"
775+ },
776+ "branchName": {
777+ "description": "Name of the branch to build.",
778+ "type": "string"
779+ },
780+ "commitSha": {
781+ "description": "Explicit commit SHA to build.",
782+ "type": "string"
783+ }
784+ },
785+ "id": "RepoSource"
786+ },
469787 "BuildStep": {
470788 "description": "BuildStep describes a step to perform in the build pipeline.",
471789 "type": "object",
472790 "properties": {
473− "args": {
474− "description": "Command-line arguments to use when running this step's container.",
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"
794+ },
795+ "env": {
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\".",
475797 "type": "array",
476798 "items": {
477799 "type": "string"
478800 }
479801 },
480− "dir": {
481− "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
482− "type": "string"
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+ }
483815 },
484816 "name": {
485− "description": "Name of the container image to use for creating this stage in the\npipeline, as presented to `docker pull`.",
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.",
486818 "type": "string"
487819 },
488− "env": {
489− "description": "Additional environment variables to set for this step's container.",
820+ "dir": {
821+ "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
822+ "type": "string"
823+ }
824+ },
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+ },
833+ "BuildOptions": {
834+ "description": "Optional arguments to enable specific features of builds.",
835+ "type": "object",
836+ "properties": {
837+ "sourceProvenanceHash": {
838+ "description": "Requested hash for SourceProvenance.",
839+ "enumDescriptions": [
840+ "No hash requested.",
841+ "Use a sha256 hash."
842+ ],
490843 "type": "array",
491844 "items": {
845+ "enum": [
846+ "NONE",
847+ "SHA256"
848+ ],
492849 "type": "string"
493850 }
851+ },
852+ "requestedVerifyOption": {
853+ "description": "Requested verifiability options.",
854+ "enum": [
855+ "NOT_VERIFIED",
856+ "VERIFIED"
857+ ],
858+ "enumDescriptions": [
859+ "Not a verifiable build. (default)",
860+ "Verified build."
861+ ],
862+ "type": "string"
494863 }
495864 },
496− "id": "BuildStep"
865+ "id": "BuildOptions"
497866 },
498867 "ListBuildsResponse": {
499868 "description": "Response including listed builds.",
@@ -514,7 +883,7 @@
514883 "id": "ListBuildsResponse"
515884 }
516885 },
517− "revision": "20160523",
886+ "revision": "20161020",
518887 "basePath": "",
519888 "icons": {
520889 "x32": "http://www.google.com/images/icons/product/search-32.gif",