|
166 | 166 | "resources": {
|
167 | 167 | "builds": {
|
168 | 168 | "methods": {
|
| 169 | + "approve": { |
| 170 | + "description": "Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.", |
| 171 | + "flatPath": "v1/projects/{projectsId}/builds/{buildsId}:approve", |
| 172 | + "httpMethod": "POST", |
| 173 | + "id": "cloudbuild.projects.builds.approve", |
| 174 | + "parameterOrder": [ |
| 175 | + "name" |
| 176 | + ], |
| 177 | + "parameters": { |
| 178 | + "name": { |
| 179 | + "description": "Required. Name of the target build. For example: \"projects/{$project_id}/builds/{$build_id}\"", |
| 180 | + "location": "path", |
| 181 | + "pattern": "^projects/[^/]+/builds/[^/]+$", |
| 182 | + "required": true, |
| 183 | + "type": "string" |
| 184 | + } |
| 185 | + }, |
| 186 | + "path": "v1/{+name}:approve", |
| 187 | + "request": { |
| 188 | + "$ref": "ApproveBuildRequest" |
| 189 | + }, |
| 190 | + "response": { |
| 191 | + "$ref": "Operation" |
| 192 | + }, |
| 193 | + "scopes": [ |
| 194 | + "https://www.googleapis.com/auth/cloud-platform" |
| 195 | + ] |
| 196 | + }, |
169 | 197 | "cancel": {
|
170 | 198 | "description": "Cancels a build in progress.",
|
171 | 199 | "flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
|
|
524 | 552 | "resources": {
|
525 | 553 | "builds": {
|
526 | 554 | "methods": {
|
| 555 | + "approve": { |
| 556 | + "description": "Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.", |
| 557 | + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}:approve", |
| 558 | + "httpMethod": "POST", |
| 559 | + "id": "cloudbuild.projects.locations.builds.approve", |
| 560 | + "parameterOrder": [ |
| 561 | + "name" |
| 562 | + ], |
| 563 | + "parameters": { |
| 564 | + "name": { |
| 565 | + "description": "Required. Name of the target build. For example: \"projects/{$project_id}/builds/{$build_id}\"", |
| 566 | + "location": "path", |
| 567 | + "pattern": "^projects/[^/]+/locations/[^/]+/builds/[^/]+$", |
| 568 | + "required": true, |
| 569 | + "type": "string" |
| 570 | + } |
| 571 | + }, |
| 572 | + "path": "v1/{+name}:approve", |
| 573 | + "request": { |
| 574 | + "$ref": "ApproveBuildRequest" |
| 575 | + }, |
| 576 | + "response": { |
| 577 | + "$ref": "Operation" |
| 578 | + }, |
| 579 | + "scopes": [ |
| 580 | + "https://www.googleapis.com/auth/cloud-platform" |
| 581 | + ] |
| 582 | + }, |
527 | 583 | "cancel": {
|
528 | 584 | "description": "Cancels a build in progress.",
|
529 | 585 | "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}:cancel",
|
|
1652 | 1708 | }
|
1653 | 1709 | }
|
1654 | 1710 | },
|
1655 |
| - "revision": "20210730", |
| 1711 | + "revision": "20210803", |
1656 | 1712 | "rootUrl": "https://cloudbuild.googleapis.com/",
|
1657 | 1713 | "schemas": {
|
| 1714 | + "ApprovalConfig": { |
| 1715 | + "description": "ApprovalConfig describes configuration for manual approval of a build.", |
| 1716 | + "id": "ApprovalConfig", |
| 1717 | + "properties": { |
| 1718 | + "approvalRequired": { |
| 1719 | + "description": "Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.", |
| 1720 | + "type": "boolean" |
| 1721 | + } |
| 1722 | + }, |
| 1723 | + "type": "object" |
| 1724 | + }, |
| 1725 | + "ApprovalResult": { |
| 1726 | + "description": "ApprovalResult describes the decision and associated metadata of a manual approval of a build.", |
| 1727 | + "id": "ApprovalResult", |
| 1728 | + "properties": { |
| 1729 | + "approvalTime": { |
| 1730 | + "description": "Output only. The time when the approval decision was made.", |
| 1731 | + "format": "google-datetime", |
| 1732 | + "readOnly": true, |
| 1733 | + "type": "string" |
| 1734 | + }, |
| 1735 | + "approverAccount": { |
| 1736 | + "description": "Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called (the user's actual email that is tied to their GAIA ID may have changed). This field is not stored, rather, it is calculated on the fly using approver_id.", |
| 1737 | + "readOnly": true, |
| 1738 | + "type": "string" |
| 1739 | + }, |
| 1740 | + "comment": { |
| 1741 | + "description": "Optional. An optional comment for this manual approval result.", |
| 1742 | + "type": "string" |
| 1743 | + }, |
| 1744 | + "decision": { |
| 1745 | + "description": "Required. The decision of this manual approval.", |
| 1746 | + "enum": [ |
| 1747 | + "DECISION_UNSPECIFIED", |
| 1748 | + "APPROVED", |
| 1749 | + "REJECTED" |
| 1750 | + ], |
| 1751 | + "enumDescriptions": [ |
| 1752 | + "Default enum type. This should not be used.", |
| 1753 | + "Build is approved.", |
| 1754 | + "Build is rejected." |
| 1755 | + ], |
| 1756 | + "type": "string" |
| 1757 | + }, |
| 1758 | + "url": { |
| 1759 | + "description": "Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.", |
| 1760 | + "type": "string" |
| 1761 | + } |
| 1762 | + }, |
| 1763 | + "type": "object" |
| 1764 | + }, |
| 1765 | + "ApproveBuildRequest": { |
| 1766 | + "description": "Request to approve or reject a pending build.", |
| 1767 | + "id": "ApproveBuildRequest", |
| 1768 | + "properties": { |
| 1769 | + "approvalResult": { |
| 1770 | + "$ref": "ApprovalResult", |
| 1771 | + "description": "Approval decision and metadata." |
| 1772 | + } |
| 1773 | + }, |
| 1774 | + "type": "object" |
| 1775 | + }, |
1658 | 1776 | "ArtifactObjects": {
|
1659 | 1777 | "description": "Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.",
|
1660 | 1778 | "id": "ArtifactObjects",
|
|
1718 | 1836 | "description": "A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.",
|
1719 | 1837 | "id": "Build",
|
1720 | 1838 | "properties": {
|
| 1839 | + "approval": { |
| 1840 | + "$ref": "BuildApproval", |
| 1841 | + "description": "Output only. Describes this build's approval configuration, status, and result.", |
| 1842 | + "readOnly": true |
| 1843 | + }, |
1721 | 1844 | "artifacts": {
|
1722 | 1845 | "$ref": "Artifacts",
|
1723 | 1846 | "description": "Artifacts produced by the build that should be uploaded upon successful completion of all build steps."
|
|
1823 | 1946 | "description": "Output only. Status of the build.",
|
1824 | 1947 | "enum": [
|
1825 | 1948 | "STATUS_UNKNOWN",
|
| 1949 | + "PENDING", |
1826 | 1950 | "QUEUED",
|
1827 | 1951 | "WORKING",
|
1828 | 1952 | "SUCCESS",
|
|
1834 | 1958 | ],
|
1835 | 1959 | "enumDescriptions": [
|
1836 | 1960 | "Status of the build is unknown.",
|
| 1961 | + "Build has been created and is pending execution and queuing. It has not been queued.", |
1837 | 1962 | "Build or step is queued; work has not yet begun.",
|
1838 | 1963 | "Build or step is being executed.",
|
1839 | 1964 | "Build or step finished successfully.",
|
|
1896 | 2021 | },
|
1897 | 2022 | "type": "object"
|
1898 | 2023 | },
|
| 2024 | + "BuildApproval": { |
| 2025 | + "description": "BuildApproval describes a build's approval configuration, state, and result.", |
| 2026 | + "id": "BuildApproval", |
| 2027 | + "properties": { |
| 2028 | + "config": { |
| 2029 | + "$ref": "ApprovalConfig", |
| 2030 | + "description": "Output only. Configuration for manual approval of this build.", |
| 2031 | + "readOnly": true |
| 2032 | + }, |
| 2033 | + "result": { |
| 2034 | + "$ref": "ApprovalResult", |
| 2035 | + "description": "Output only. Result of manual approval for this Build.", |
| 2036 | + "readOnly": true |
| 2037 | + }, |
| 2038 | + "state": { |
| 2039 | + "description": "Output only. The state of this build's approval.", |
| 2040 | + "enum": [ |
| 2041 | + "STATE_UNSPECIFIED", |
| 2042 | + "PENDING", |
| 2043 | + "APPROVED", |
| 2044 | + "REJECTED", |
| 2045 | + "CANCELLED" |
| 2046 | + ], |
| 2047 | + "enumDescriptions": [ |
| 2048 | + "Default enum type. This should not be used.", |
| 2049 | + "Build approval is pending.", |
| 2050 | + "Build approval has been approved.", |
| 2051 | + "Build approval has been rejected.", |
| 2052 | + "Build was cancelled while it was still pending approval." |
| 2053 | + ], |
| 2054 | + "readOnly": true, |
| 2055 | + "type": "string" |
| 2056 | + } |
| 2057 | + }, |
| 2058 | + "type": "object" |
| 2059 | + }, |
1899 | 2060 | "BuildOperationMetadata": {
|
1900 | 2061 | "description": "Metadata for build operations.",
|
1901 | 2062 | "id": "BuildOperationMetadata",
|
|
2084 | 2245 | "description": "Output only. Stores timing information for pulling this build step's builder image only.",
|
2085 | 2246 | "readOnly": true
|
2086 | 2247 | },
|
| 2248 | + "script": { |
| 2249 | + "description": "A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.", |
| 2250 | + "type": "string" |
| 2251 | + }, |
2087 | 2252 | "secretEnv": {
|
2088 | 2253 | "description": "A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.",
|
2089 | 2254 | "items": {
|
|
2095 | 2260 | "description": "Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.",
|
2096 | 2261 | "enum": [
|
2097 | 2262 | "STATUS_UNKNOWN",
|
| 2263 | + "PENDING", |
2098 | 2264 | "QUEUED",
|
2099 | 2265 | "WORKING",
|
2100 | 2266 | "SUCCESS",
|
|
2106 | 2272 | ],
|
2107 | 2273 | "enumDescriptions": [
|
2108 | 2274 | "Status of the build is unknown.",
|
| 2275 | + "Build has been created and is pending execution and queuing. It has not been queued.", |
2109 | 2276 | "Build or step is queued; work has not yet begun.",
|
2110 | 2277 | "Build or step is being executed.",
|
2111 | 2278 | "Build or step finished successfully.",
|
|
2149 | 2316 | "description": "Configuration for an automated build in response to source repository changes.",
|
2150 | 2317 | "id": "BuildTrigger",
|
2151 | 2318 | "properties": {
|
| 2319 | + "approvalConfig": { |
| 2320 | + "$ref": "ApprovalConfig", |
| 2321 | + "description": "Configuration for manual approval to start a build invocation of this BuildTrigger." |
| 2322 | + }, |
2152 | 2323 | "autodetect": {
|
2153 | 2324 | "description": "Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.",
|
2154 | 2325 | "type": "boolean"
|
|
2176 | 2347 | "type": "string"
|
2177 | 2348 | },
|
2178 | 2349 | "filter": {
|
2179 |
| - "description": "Optional. A Common Expression Language string.", |
| 2350 | + "description": "A Common Expression Language string.", |
2180 | 2351 | "type": "string"
|
2181 | 2352 | },
|
| 2353 | + "gitFileSource": { |
| 2354 | + "$ref": "GitFileSource", |
| 2355 | + "description": "The file source describing the local or remote Build template." |
| 2356 | + }, |
2182 | 2357 | "github": {
|
2183 | 2358 | "$ref": "GitHubEventsConfig",
|
2184 | 2359 | "description": "GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`."
|
|
2215 | 2390 | "type": "string"
|
2216 | 2391 | },
|
2217 | 2392 | "serviceAccount": {
|
2218 |
| - "description": "Optional. The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`", |
| 2393 | + "description": "The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`", |
2219 | 2394 | "type": "string"
|
2220 | 2395 | },
|
2221 | 2396 | "sourceToBuild": {
|
|
2429 | 2604 | },
|
2430 | 2605 | "type": "object"
|
2431 | 2606 | },
|
| 2607 | + "GitFileSource": { |
| 2608 | + "description": "GitFileSource describes a file within a (possibly remote) code repository.", |
| 2609 | + "id": "GitFileSource", |
| 2610 | + "properties": { |
| 2611 | + "path": { |
| 2612 | + "description": "The path of the file, with the repo root as the root of the path.", |
| 2613 | + "type": "string" |
| 2614 | + }, |
| 2615 | + "repoType": { |
| 2616 | + "description": "See RepoType above.", |
| 2617 | + "enum": [ |
| 2618 | + "UNKNOWN", |
| 2619 | + "CLOUD_SOURCE_REPOSITORIES", |
| 2620 | + "GITHUB" |
| 2621 | + ], |
| 2622 | + "enumDescriptions": [ |
| 2623 | + "The default, unknown repo type.", |
| 2624 | + "A Google Cloud Source Repositories-hosted repo.", |
| 2625 | + "A GitHub-hosted repo not necessarily on \"github.com\" (i.e. GitHub Enterprise)." |
| 2626 | + ], |
| 2627 | + "type": "string" |
| 2628 | + }, |
| 2629 | + "revision": { |
| 2630 | + "description": "The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.", |
| 2631 | + "type": "string" |
| 2632 | + }, |
| 2633 | + "uri": { |
| 2634 | + "description": "The URI of the repo (optional). If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.", |
| 2635 | + "type": "string" |
| 2636 | + } |
| 2637 | + }, |
| 2638 | + "type": "object" |
| 2639 | + }, |
2432 | 2640 | "GitHubEnterpriseConfig": {
|
2433 | 2641 | "description": "GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.",
|
2434 | 2642 | "id": "GitHubEnterpriseConfig",
|
|
2953 | 3161 | "type": "string"
|
2954 | 3162 | },
|
2955 | 3163 | "cancelRequested": {
|
2956 |
| - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", |
| 3164 | + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", |
2957 | 3165 | "readOnly": true,
|
2958 | 3166 | "type": "boolean"
|
2959 | 3167 | },
|
|
0 commit comments