2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-14 01:04:05 +00:00
restic/vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json

1342 lines
57 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"basePath": "",
"baseUrl": "https://cloudbuild.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Build",
"description": "Builds container images in the cloud.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/container-builder/docs/",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "cloudbuild:v1",
"kind": "discovery#restDescription",
"name": "cloudbuild",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"operations": {
"methods": {
"cancel": {
"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`.",
"flatPath": "v1/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "cloudbuild.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^operations/.+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"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.",
"flatPath": "v1/operations/{operationsId}",
"httpMethod": "GET",
"id": "cloudbuild.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^operations/.+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"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 allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"flatPath": "v1/operations",
"httpMethod": "GET",
"id": "cloudbuild.operations.list",
"parameterOrder": [
"name"
],
"parameters": {
"filter": {
"description": "The standard list filter.",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the operation's parent resource.",
"location": "path",
"pattern": "^operations$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The standard list page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "ListOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"projects": {
"resources": {
"builds": {
"methods": {
"cancel": {
"description": "Cancels a build in progress.",
"flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
"httpMethod": "POST",
"id": "cloudbuild.projects.builds.cancel",
"parameterOrder": [
"projectId",
"id"
],
"parameters": {
"id": {
"description": "ID of the build.",
"location": "path",
"required": true,
"type": "string"
},
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/builds/{id}:cancel",
"request": {
"$ref": "CancelBuildRequest"
},
"response": {
"$ref": "Build"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"create": {
"description": "Starts a build with the specified configuration.\n\nThis method returns a long-running `Operation`, which includes the build\nID. Pass the build ID to `GetBuild` to determine the build status (such as\n`SUCCESS` or `FAILURE`).",
"flatPath": "v1/projects/{projectId}/builds",
"httpMethod": "POST",
"id": "cloudbuild.projects.builds.create",
"parameterOrder": [
"projectId"
],
"parameters": {
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/builds",
"request": {
"$ref": "Build"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Returns information about a previously requested build.\n\nThe `Build` that is returned includes its status (such as `SUCCESS`,\n`FAILURE`, or `WORKING`), and timing information.",
"flatPath": "v1/projects/{projectId}/builds/{id}",
"httpMethod": "GET",
"id": "cloudbuild.projects.builds.get",
"parameterOrder": [
"projectId",
"id"
],
"parameters": {
"id": {
"description": "ID of the build.",
"location": "path",
"required": true,
"type": "string"
},
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/builds/{id}",
"response": {
"$ref": "Build"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.",
"flatPath": "v1/projects/{projectId}/builds",
"httpMethod": "GET",
"id": "cloudbuild.projects.builds.list",
"parameterOrder": [
"projectId"
],
"parameters": {
"filter": {
"description": "The raw filter text to constrain the results.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Number of results to return in the list.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Token to provide to skip to a particular spot in the list.",
"location": "query",
"type": "string"
},
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/builds",
"response": {
"$ref": "ListBuildsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"retry": {
"description": "Creates a new build based on the specified build.\n\nThis method creates a new build using the original build request, which may\nor may not result in an identical build.\n\nFor triggered builds:\n\n* Triggered builds resolve to a precise revision; therefore a retry of a\ntriggered build will result in a build that uses the same revision.\n\nFor non-triggered builds that specify `RepoSource`:\n\n* If the original build built from the tip of a branch, the retried build\nwill build from the tip of that branch, which may not be the same revision\nas the original build.\n* If the original build specified a commit sha or revision ID, the retried\nbuild will use the identical source.\n\nFor builds that specify `StorageSource`:\n\n* If the original build pulled source from Google Cloud Storage without\nspecifying the generation of the object, the new build will use the current\nobject, which may be different from the original build source.\n* If the original build pulled source from Cloud Storage and specified the\ngeneration of the object, the new build will attempt to use the same\nobject, which may or may not be available depending on the bucket's\nlifecycle management settings.",
"flatPath": "v1/projects/{projectId}/builds/{id}:retry",
"httpMethod": "POST",
"id": "cloudbuild.projects.builds.retry",
"parameterOrder": [
"projectId",
"id"
],
"parameters": {
"id": {
"description": "Build ID of the original build.",
"location": "path",
"required": true,
"type": "string"
},
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/builds/{id}:retry",
"request": {
"$ref": "RetryBuildRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
2017-10-22 08:07:36 +00:00
}
},
"triggers": {
"methods": {
"create": {
"description": "Creates a new `BuildTrigger`.\n\nThis API is experimental.",
"flatPath": "v1/projects/{projectId}/triggers",
"httpMethod": "POST",
"id": "cloudbuild.projects.triggers.create",
"parameterOrder": [
"projectId"
],
"parameters": {
"projectId": {
"description": "ID of the project for which to configure automatic builds.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers",
"request": {
"$ref": "BuildTrigger"
},
"response": {
"$ref": "BuildTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a `BuildTrigger` by its project ID and trigger ID.\n\nThis API is experimental.",
"flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
"httpMethod": "DELETE",
"id": "cloudbuild.projects.triggers.delete",
"parameterOrder": [
"projectId",
"triggerId"
],
"parameters": {
"projectId": {
"description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
},
"triggerId": {
"description": "ID of the `BuildTrigger` to delete.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers/{triggerId}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Returns information about a `BuildTrigger`.\n\nThis API is experimental.",
"flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
"httpMethod": "GET",
"id": "cloudbuild.projects.triggers.get",
"parameterOrder": [
"projectId",
"triggerId"
],
"parameters": {
"projectId": {
"description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
},
"triggerId": {
"description": "ID of the `BuildTrigger` to get.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers/{triggerId}",
"response": {
"$ref": "BuildTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists existing `BuildTrigger`s.\n\nThis API is experimental.",
"flatPath": "v1/projects/{projectId}/triggers",
"httpMethod": "GET",
"id": "cloudbuild.projects.triggers.list",
"parameterOrder": [
"projectId"
],
"parameters": {
"projectId": {
"description": "ID of the project for which to list BuildTriggers.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers",
"response": {
"$ref": "ListBuildTriggersResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates a `BuildTrigger` by its project ID and trigger ID.\n\nThis API is experimental.",
"flatPath": "v1/projects/{projectId}/triggers/{triggerId}",
"httpMethod": "PATCH",
"id": "cloudbuild.projects.triggers.patch",
"parameterOrder": [
"projectId",
"triggerId"
],
"parameters": {
"projectId": {
"description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
},
"triggerId": {
"description": "ID of the `BuildTrigger` to update.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers/{triggerId}",
"request": {
"$ref": "BuildTrigger"
},
"response": {
"$ref": "BuildTrigger"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"run": {
"description": "Runs a `BuildTrigger` at a particular source revision.",
"flatPath": "v1/projects/{projectId}/triggers/{triggerId}:run",
"httpMethod": "POST",
"id": "cloudbuild.projects.triggers.run",
"parameterOrder": [
"projectId",
"triggerId"
],
"parameters": {
"projectId": {
"description": "ID of the project.",
"location": "path",
"required": true,
"type": "string"
},
"triggerId": {
"description": "ID of the trigger.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers/{triggerId}:run",
"request": {
"$ref": "RepoSource"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
},
"revision": "20180329",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
"description": "Files in the workspace to upload to Cloud Storage upon successful\ncompletion of all build steps.",
"id": "ArtifactObjects",
"properties": {
"location": {
"description": "Cloud Storage bucket and optional object path, in the form\n\"gs://bucket/path/to/somewhere/\". (see [Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\nFiles in the workspace matching any path pattern will be uploaded to\nCloud Storage with this location as a prefix.",
"type": "string"
},
"paths": {
"description": "Path globs used to match files in the build's workspace.",
2017-10-22 08:07:36 +00:00
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Artifacts": {
"description": "Artifacts produced by a build that should be uploaded upon\nsuccessful completion of all build steps.",
"id": "Artifacts",
"properties": {
"images": {
"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.",
"items": {
"type": "string"
},
"type": "array"
},
"objects": {
"$ref": "ArtifactObjects",
"description": "A list of objects to be uploaded to Cloud Storage upon successful\ncompletion of all build steps.\n\nFiles in the workspace matching specified paths globs will be uploaded to\nthe specified Cloud Storage location using the builder service account's\ncredentials.\n\nThe location and generation of the uploaded objects will be stored in the\nBuild resource's results field.\n\nIf any objects fail to be pushed, the build is marked FAILURE."
2017-10-22 08:07:36 +00:00
}
},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"Build": {
"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 where to store\nthe built artifacts.\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.\n- $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.",
"id": "Build",
2017-10-22 08:07:36 +00:00
"properties": {
"artifacts": {
"$ref": "Artifacts",
"description": "Artifacts produced by the build that should be uploaded upon\nsuccessful completion of all build steps."
},
"buildTriggerId": {
"description": "The ID of the `BuildTrigger` that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
"type": "string"
2017-10-22 08:07:36 +00:00
},
"createTime": {
"description": "Time at which the request to create the build was received.\n@OutputOnly",
"format": "google-datetime",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"finishTime": {
"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",
"format": "google-datetime",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"id": {
"description": "Unique identifier of the build.\n@OutputOnly",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"images": {
"description": "A list of images to be pushed upon the successful completion of all build\nsteps.\n\nThe images are 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 status is marked\n`FAILURE`.",
"items": {
"type": "string"
},
"type": "array"
},
"logUrl": {
"description": "URL to logs for this build in Google Cloud Console.\n@OutputOnly",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"logsBucket": {
"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`.",
"type": "string"
},
"options": {
"$ref": "BuildOptions",
"description": "Special options for this build."
},
"projectId": {
"description": "ID of the project.\n@OutputOnly.",
"type": "string"
},
"results": {
"$ref": "Results",
"description": "Results of the build.\n@OutputOnly"
},
"secrets": {
"description": "Secrets to decrypt using Cloud Key Management Service.",
"items": {
"$ref": "Secret"
},
"type": "array"
2017-10-22 08:07:36 +00:00
},
"source": {
"$ref": "Source",
"description": "The location of the source files to build."
},
"sourceProvenance": {
"$ref": "SourceProvenance",
"description": "A permanent fixed identifier for source.\n@OutputOnly"
},
"startTime": {
"description": "Time at which execution of the build was started.\n@OutputOnly",
"format": "google-datetime",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"status": {
"description": "Status of the build.\n@OutputOnly",
"enum": [
"STATUS_UNKNOWN",
"QUEUED",
"WORKING",
"SUCCESS",
"FAILURE",
"INTERNAL_ERROR",
"TIMEOUT",
"CANCELLED"
],
"enumDescriptions": [
"Status of the build is unknown.",
"Build or step is queued; work has not yet begun.",
"Build or step is being executed.",
"Build or step finished successfully.",
"Build or step failed to complete successfully.",
"Build or step failed due to an internal cause.",
"Build or step took longer than was allowed.",
"Build or step was canceled by a user."
],
"type": "string"
},
"statusDetail": {
"description": "Customer-readable message about the current status.\n@OutputOnly",
"type": "string"
},
"steps": {
"description": "Required. The operations to be performed on the workspace.",
"items": {
"$ref": "BuildStep"
},
"type": "array"
2017-10-22 08:07:36 +00:00
},
"substitutions": {
"additionalProperties": {
"type": "string"
},
"description": "Substitutions data for `Build` resource.",
"type": "object"
},
"tags": {
"description": "Tags for annotation of a `Build`. These are not docker tags.",
"items": {
"type": "string"
},
"type": "array"
2017-10-22 08:07:36 +00:00
},
"timeout": {
"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.",
"format": "google-duration",
"type": "string"
},
"timing": {
"additionalProperties": {
"$ref": "TimeSpan"
},
"description": "Stores timing information for phases of the build. Valid keys are:\n\n* BUILD: time to execute all build steps\n* PUSH: time to push all specified images.\n* FETCHSOURCE: time to fetch source.\n\nIf the build does not specify source or images,\nthese keys will not be included.\n@OutputOnly",
"type": "object"
}
},
"type": "object"
},
"BuildOperationMetadata": {
"description": "Metadata for build operations.",
"id": "BuildOperationMetadata",
"properties": {
"build": {
"$ref": "Build",
"description": "The build that the operation is tracking."
}
},
"type": "object"
},
"BuildOptions": {
"description": "Optional arguments to enable specific features of builds.",
"id": "BuildOptions",
"properties": {
"diskSizeGb": {
"description": "Requested disk size for the VM that runs the build. Note that this is *NOT*\n\"disk free\"; some of the space will be used by the operating system and\nbuild utilities. Also note that this is the minimum disk size that will be\nallocated for the build -- the build may run with a larger disk than\nrequested. At present, the maximum disk size is 1000GB; builds that request\nmore than the maximum are rejected with an error.",
"format": "int64",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"logStreamingOption": {
"description": "Option to define build log streaming behavior to Google Cloud\nStorage.",
"enum": [
"STREAM_DEFAULT",
"STREAM_ON",
"STREAM_OFF"
],
"enumDescriptions": [
"Service may automatically determine build log streaming behavior.",
"Build logs should be streamed to Google Cloud Storage.",
"Build logs should not be streamed to Google Cloud Storage; they will be\nwritten when the build is completed."
],
"type": "string"
},
"machineType": {
"description": "Compute Engine machine type on which to run the build.",
"enum": [
"UNSPECIFIED",
"N1_HIGHCPU_8",
"N1_HIGHCPU_32"
],
"enumDescriptions": [
"Standard machine type.",
"Highcpu machine with 8 CPUs.",
"Highcpu machine with 32 CPUs."
],
2017-10-22 08:07:36 +00:00
"type": "string"
},
"requestedVerifyOption": {
"description": "Requested verifiability options.",
"enum": [
"NOT_VERIFIED",
"VERIFIED"
],
"enumDescriptions": [
"Not a verifiable build. (default)",
"Verified build."
],
"type": "string"
},
"sourceProvenanceHash": {
"description": "Requested hash for SourceProvenance.",
"enumDescriptions": [
"No hash requested.",
"Use a sha256 hash."
],
"items": {
"enum": [
"NONE",
"SHA256"
],
"type": "string"
},
"type": "array"
},
"substitutionOption": {
"description": "Option to specify behavior when there is an error in the substitution\nchecks.",
"enum": [
"MUST_MATCH",
"ALLOW_LOOSE"
],
"enumDescriptions": [
"Fails the build if error in substitutions checks, like missing\na substitution in the template or in the map.",
"Do not fail the build if error in substitutions checks."
],
"type": "string"
}
},
"type": "object"
},
"BuildStep": {
"description": "A step in the build pipeline.",
"id": "BuildStep",
"properties": {
"args": {
"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, the `args`\nare used as arguments to that entrypoint. If the image does not define\nan entrypoint, the first element in args is used as the entrypoint,\nand the remainder will be used as arguments.",
"items": {
"type": "string"
},
"type": "array"
},
"dir": {
"description": "Working directory to use when running this step's container.\n\nIf this value is a relative path, it is relative to the build's working\ndirectory. If this value is absolute, it may be outside the build's working\ndirectory, in which case the contents of the path may not be persisted\nacross build step executions, unless a `volume` for that path is specified.\n\nIf the build specifies a `RepoSource` with `dir` and a step with a `dir`,\nwhich specifies an absolute path, the `RepoSource` `dir` is ignored for\nthe step's execution.",
"type": "string"
},
"entrypoint": {
"description": "Entrypoint to be used instead of the build step image's default entrypoint.\nIf unset, the image's default entrypoint is used.",
"type": "string"
},
"env": {
"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\".",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "Unique identifier for this build step, used in `wait_for` to\nreference this build step as a dependency.",
"type": "string"
},
"name": {
"description": "Required. The name of the container image that will run this particular\nbuild step.\n\nIf the image is 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](https://github.com/GoogleCloudPlatform/cloud-builders)).\nThe Docker daemon will also have cached many of the layers for some popular\nimages, like \"ubuntu\", \"debian\", but they will be refreshed at the time you\nattempt to use 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.",
"type": "string"
},
"secretEnv": {
"description": "A list of environment variables which are encrypted using a Cloud Key\nManagement Service crypto key. These values must be specified in the\nbuild's `Secret`.",
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"description": "Status of the build step. At this time, build step status is only updated\non build completion; step status is not updated in real-time as the build\nprogresses.\n@OutputOnly",
"enum": [
"STATUS_UNKNOWN",
"QUEUED",
"WORKING",
"SUCCESS",
"FAILURE",
"INTERNAL_ERROR",
"TIMEOUT",
"CANCELLED"
],
"enumDescriptions": [
"Status of the build is unknown.",
"Build or step is queued; work has not yet begun.",
"Build or step is being executed.",
"Build or step finished successfully.",
"Build or step failed to complete successfully.",
"Build or step failed due to an internal cause.",
"Build or step took longer than was allowed.",
"Build or step was canceled by a user."
],
"type": "string"
},
"timeout": {
"description": "Time limit for executing this build step. If not defined, the step has no\ntime limit and will be allowed to continue to run until either it completes\nor the build itself times out.",
"format": "google-duration",
"type": "string"
},
"timing": {
"$ref": "TimeSpan",
"description": "Stores timing information for executing this build step.\n@OutputOnly"
},
"volumes": {
"description": "List of volumes to mount into the build step.\n\nEach volume will be created as an empty volume prior to execution of the\nbuild step. Upon completion of the build, volumes and their contents will\nbe discarded.\n\nUsing a named volume in only one step is not valid as it is indicative\nof a mis-configured build request.",
"items": {
"$ref": "Volume"
},
"type": "array"
},
"waitFor": {
"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\ncompleted successfully.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"BuildTrigger": {
"description": "Configuration for an automated build in response to source repository\nchanges.",
"id": "BuildTrigger",
"properties": {
"build": {
"$ref": "Build",
"description": "Contents of the build template."
},
"createTime": {
"description": "Time when the trigger was created.\n\n@OutputOnly",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Human-readable description of this trigger.",
"type": "string"
},
"disabled": {
"description": "If true, the trigger will never result in a build.",
"type": "boolean"
},
"filename": {
"description": "Path, from the source root, to a file whose contents is used for the\ntemplate.",
"type": "string"
},
"id": {
"description": "Unique identifier of the trigger.\n\n@OutputOnly",
"type": "string"
},
"substitutions": {
"additionalProperties": {
"type": "string"
},
"description": "Substitutions data for Build resource.",
"type": "object"
},
"triggerTemplate": {
"$ref": "RepoSource",
"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."
}
},
"type": "object"
},
"BuiltImage": {
"description": "An image built by the pipeline.",
"id": "BuiltImage",
"properties": {
"digest": {
"description": "Docker Registry 2.0 digest.",
"type": "string"
},
"name": {
"description": "Name used to push the container image to Google Container Registry, as\npresented to `docker push`.",
"type": "string"
},
"pushTiming": {
"$ref": "TimeSpan",
"description": "Stores timing information for pushing the specified image.\n@OutputOnly"
}
},
"type": "object"
},
"CancelBuildRequest": {
"description": "Request to cancel an ongoing build.",
"id": "CancelBuildRequest",
"properties": {},
"type": "object"
},
"CancelOperationRequest": {
"description": "The request message for Operations.CancelOperation.",
"id": "CancelOperationRequest",
"properties": {},
"type": "object"
},
"Empty": {
"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 `{}`.",
"id": "Empty",
"properties": {},
"type": "object"
},
"FileHashes": {
"description": "Container message for hashes of byte content of files, used in\nSourceProvenance messages to verify integrity of source input to the build.",
"id": "FileHashes",
"properties": {
"fileHash": {
"description": "Collection of file hashes.",
"items": {
"$ref": "Hash"
},
"type": "array"
}
},
"type": "object"
},
"Hash": {
"description": "Container message for hash values.",
"id": "Hash",
"properties": {
"type": {
"description": "The type of hash that was performed.",
"enum": [
"NONE",
"SHA256"
],
"enumDescriptions": [
"No hash requested.",
"Use a sha256 hash."
],
"type": "string"
},
"value": {
"description": "The hash value.",
"format": "byte",
"type": "string"
}
},
"type": "object"
},
"ListBuildTriggersResponse": {
"description": "Response containing existing `BuildTriggers`.",
"id": "ListBuildTriggersResponse",
"properties": {
"triggers": {
"description": "`BuildTriggers` for the project, sorted by `create_time` descending.",
"items": {
"$ref": "BuildTrigger"
},
"type": "array"
}
},
"type": "object"
},
"ListBuildsResponse": {
"description": "Response including listed builds.",
"id": "ListBuildsResponse",
"properties": {
"builds": {
"description": "Builds will be sorted by `create_time`, descending.",
"items": {
"$ref": "Build"
},
"type": "array"
},
"nextPageToken": {
"description": "Token to receive the next page of results.",
"type": "string"
}
},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
}
},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"id": "Operation",
"properties": {
"done": {
"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.",
"type": "boolean"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"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.",
"type": "object"
},
"name": {
"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`.",
"type": "string"
},
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"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`.",
"type": "object"
}
},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"RepoSource": {
"description": "Location of the source in a Google Cloud Source Repository.",
"id": "RepoSource",
"properties": {
"branchName": {
"description": "Name of the branch to build.",
"type": "string"
},
"commitSha": {
"description": "Explicit commit SHA to build.",
"type": "string"
},
"dir": {
"description": "Directory, relative to the source root, in which to run the build.\n\nThis must be a relative path. If a step's `dir` is specified and is an\nabsolute path, this value is ignored for that step's execution.",
"type": "string"
},
"projectId": {
"description": "ID of the project that owns the Cloud Source Repository. If omitted, the\nproject ID requesting the build is assumed.",
"type": "string"
},
"repoName": {
"description": "Name of the Cloud Source Repository. If omitted, the name \"default\" is\nassumed.",
"type": "string"
},
"tagName": {
"description": "Name of the tag to build.",
"type": "string"
}
},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"Results": {
"description": "Artifacts created by the build pipeline.",
"id": "Results",
"properties": {
"artifactManifest": {
"description": "Path to the artifact manifest. Only populated when artifacts are uploaded.",
"type": "string"
},
"buildStepImages": {
"description": "List of build step digests, in the order corresponding to build step\nindices.",
"items": {
"type": "string"
},
"type": "array"
},
"images": {
"description": "Container images that were built as a part of the build.",
"items": {
"$ref": "BuiltImage"
},
"type": "array"
},
"numArtifacts": {
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"RetryBuildRequest": {
"description": "Specifies a build to retry.",
"id": "RetryBuildRequest",
"properties": {},
"type": "object"
2017-10-22 08:07:36 +00:00
},
"Secret": {
"description": "Pairs a set of secret environment variables containing encrypted\nvalues with the Cloud KMS key to use to decrypt the value.",
"id": "Secret",
"properties": {
"kmsKeyName": {
"description": "Cloud KMS key name to use to decrypt these envs.",
"type": "string"
},
"secretEnv": {
"additionalProperties": {
"format": "byte",
"type": "string"
},
"description": "Map of environment variable name to its encrypted value.\n\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n1 KB in size. There can be at most ten secret values across all of a\nbuild's secrets.",
"type": "object"
}
},
"type": "object"
},
"Source": {
"description": "Location of the source in a supported storage service.",
"id": "Source",
"properties": {
"repoSource": {
"$ref": "RepoSource",
"description": "If provided, get the source from this location in a Cloud Source\nRepository."
},
"storageSource": {
"$ref": "StorageSource",
"description": "If provided, get the source from this location in Google Cloud Storage."
}
},
"type": "object"
},
"SourceProvenance": {
"description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.",
"id": "SourceProvenance",
"properties": {
"fileHashes": {
"additionalProperties": {
"$ref": "FileHashes"
},
"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",
"type": "object"
},
"resolvedRepoSource": {
"$ref": "RepoSource",
"description": "A copy of the build's `source.repo_source`, if exists, with any\nrevisions resolved."
},
"resolvedStorageSource": {
"$ref": "StorageSource",
"description": "A copy of the build's `source.storage_source`, if exists, with any\ngenerations resolved."
}
},
"type": "object"
},
"Status": {
"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` that 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.\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.",
"id": "Status",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"message": {
"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.",
"type": "string"
}
},
"type": "object"
},
"StorageSource": {
"description": "Location of the source in an archive file in Google Cloud Storage.",
"id": "StorageSource",
"properties": {
"bucket": {
"description": "Google Cloud Storage bucket containing the source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
"type": "string"
},
"generation": {
"description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
"format": "int64",
"type": "string"
},
"object": {
"description": "Google Cloud Storage object containing the source.\n\nThis object must be a gzipped archive file (`.tar.gz`) containing source to\nbuild.",
"type": "string"
}
},
"type": "object"
},
"TimeSpan": {
"description": "Start and end times for a build execution phase.",
"id": "TimeSpan",
"properties": {
"endTime": {
"description": "End of time span.",
"format": "google-datetime",
"type": "string"
},
"startTime": {
"description": "Start of time span.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"Volume": {
"description": "Volume describes a Docker container volume which is mounted into build steps\nin order to persist files across build step execution.",
"id": "Volume",
"properties": {
"name": {
"description": "Name of the volume to mount.\n\nVolume names must be unique per build step and must be valid names for\nDocker volumes. Each named volume must be used by at least two build steps.",
"type": "string"
},
"path": {
"description": "Path at which to mount the volume.\n\nPaths must be absolute and cannot conflict with other volume paths on the\nsame build step or with certain reserved volume paths.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Cloud Container Builder API",
"version": "v1",
"version_module": true
}