Index: discovery/googleapis/cloudbuild__v1.json |
diff --git a/discovery/googleapis/cloudbuild__v1.json b/discovery/googleapis/cloudbuild__v1.json |
index 6dd925e0503ccd920779bcef53257c5e272cb89f..a8b17ec1fca91efe8fdd8f1a692d19c835993ea9 100644 |
--- a/discovery/googleapis/cloudbuild__v1.json |
+++ b/discovery/googleapis/cloudbuild__v1.json |
@@ -25,6 +25,27 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
+ "upload_protocol": { |
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "prettyPrint": { |
+ "default": "true", |
+ "description": "Returns response with indentations and line breaks.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -89,35 +110,142 @@ |
"description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
- }, |
- "upload_protocol": { |
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
- "location": "query", |
- "type": "string" |
- }, |
- "prettyPrint": { |
- "default": "true", |
- "description": "Returns response with indentations and line breaks.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
- "location": "query", |
- "type": "string" |
- }, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
- "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`.", |
+ "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.", |
+ "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.", |
+ "httpMethod": "GET", |
+ "id": "cloudbuild.operations.list", |
+ "parameterOrder": [ |
+ "name" |
+ ], |
+ "parameters": { |
+ "filter": { |
+ "description": "The standard list filter.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "The standard list page token.", |
+ "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" |
+ } |
+ }, |
+ "path": "v1/{+name}", |
+ "response": { |
+ "$ref": "ListOperationsResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ } |
+ } |
+ }, |
"projects": { |
"resources": { |
"builds": { |
"methods": { |
+ "cancel": { |
+ "description": "Cancels a requested build in progress.", |
+ "httpMethod": "POST", |
+ "id": "cloudbuild.projects.builds.cancel", |
+ "parameterOrder": [ |
+ "projectId", |
+ "id" |
+ ], |
+ "parameters": { |
+ "projectId": { |
+ "description": "ID of the project.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "id": { |
+ "description": "ID of the build.", |
+ "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" |
+ ] |
+ }, |
"list": { |
"description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.", |
"httpMethod": "GET", |
@@ -126,11 +254,6 @@ |
"projectId" |
], |
"parameters": { |
- "pageToken": { |
- "description": "Token to provide to skip to a particular spot in the list.", |
- "location": "query", |
- "type": "string" |
- }, |
"pageSize": { |
"description": "Number of results to return in the list.", |
"format": "int32", |
@@ -147,6 +270,11 @@ |
"description": "The raw filter text to constrain the results.", |
"location": "query", |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "Token to provide to skip to a particular spot in the list.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v1/projects/{projectId}/builds", |
@@ -212,74 +340,11 @@ |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
- }, |
- "cancel": { |
- "description": "Cancels a requested build in progress.", |
- "httpMethod": "POST", |
- "id": "cloudbuild.projects.builds.cancel", |
- "parameterOrder": [ |
- "projectId", |
- "id" |
- ], |
- "parameters": { |
- "projectId": { |
- "description": "ID of the project.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "id": { |
- "description": "ID of the build.", |
- "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" |
- ] |
} |
} |
}, |
"triggers": { |
"methods": { |
- "delete": { |
- "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.", |
- "httpMethod": "DELETE", |
- "id": "cloudbuild.projects.triggers.delete", |
- "parameterOrder": [ |
- "projectId", |
- "triggerId" |
- ], |
- "parameters": { |
- "triggerId": { |
- "description": "ID of the BuildTrigger to delete.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "projectId": { |
- "description": "ID of the project that owns the trigger.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1/projects/{projectId}/triggers/{triggerId}", |
- "response": { |
- "$ref": "Empty" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
"patch": { |
"description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.", |
"httpMethod": "PATCH", |
@@ -391,161 +456,45 @@ |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
- } |
- } |
- } |
- } |
- }, |
- "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`.", |
- "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.", |
- "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.", |
- "httpMethod": "GET", |
- "id": "cloudbuild.operations.list", |
- "parameterOrder": [ |
- "name" |
- ], |
- "parameters": { |
- "filter": { |
- "description": "The standard list filter.", |
- "location": "query", |
- "type": "string" |
}, |
- "pageToken": { |
- "description": "The standard list page token.", |
- "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" |
+ "delete": { |
+ "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.", |
+ "httpMethod": "DELETE", |
+ "id": "cloudbuild.projects.triggers.delete", |
+ "parameterOrder": [ |
+ "projectId", |
+ "triggerId" |
+ ], |
+ "parameters": { |
+ "triggerId": { |
+ "description": "ID of the BuildTrigger to delete.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "projectId": { |
+ "description": "ID of the project that owns the trigger.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/projects/{projectId}/triggers/{triggerId}", |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
} |
- }, |
- "path": "v1/{+name}", |
- "response": { |
- "$ref": "ListOperationsResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
+ } |
} |
} |
} |
}, |
- "revision": "20170706", |
+ "revision": "20170725", |
"rootUrl": "https://cloudbuild.googleapis.com/", |
"schemas": { |
- "ListBuildsResponse": { |
- "description": "Response including listed builds.", |
- "id": "ListBuildsResponse", |
- "properties": { |
- "nextPageToken": { |
- "description": "Token to receive the next page of results.", |
- "type": "string" |
- }, |
- "builds": { |
- "description": "Builds will be sorted by create_time, descending.", |
- "items": { |
- "$ref": "Build" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListOperationsResponse": { |
- "description": "The response message for Operations.ListOperations.", |
- "id": "ListOperationsResponse", |
- "properties": { |
- "operations": { |
- "description": "A list of operations that matches the specified filter in the request.", |
- "items": { |
- "$ref": "Operation" |
- }, |
- "type": "array" |
- }, |
- "nextPageToken": { |
- "description": "The standard List next-page token.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Source": { |
- "description": "Source describes the location of the source in a supported storage\nservice.", |
- "id": "Source", |
- "properties": { |
- "storageSource": { |
- "$ref": "StorageSource", |
- "description": "If provided, get the source from this location in in Google Cloud\nStorage." |
- }, |
- "repoSource": { |
- "$ref": "RepoSource", |
- "description": "If provided, get source from this location in a Cloud Repo." |
- } |
- }, |
- "type": "object" |
- }, |
"BuildOptions": { |
"description": "Optional arguments to enable specific features of builds.", |
"id": "BuildOptions", |
@@ -648,10 +597,6 @@ |
"description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.", |
"id": "SourceProvenance", |
"properties": { |
- "resolvedStorageSource": { |
- "$ref": "StorageSource", |
- "description": "A copy of the build's source.storage_source, if exists, with any\ngenerations resolved." |
- }, |
"fileHashes": { |
"additionalProperties": { |
"$ref": "FileHashes" |
@@ -662,6 +607,10 @@ |
"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" |
@@ -672,14 +621,24 @@ |
"properties": {}, |
"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" |
+ }, |
"Operation": { |
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", |
"id": "Operation", |
"properties": { |
- "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" |
- }, |
"error": { |
"$ref": "Status", |
"description": "The error result of the operation in case of failure or cancellation." |
@@ -703,20 +662,10 @@ |
}, |
"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" |
- }, |
- "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" |
+ }, |
+ "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" |
} |
}, |
"type": "object" |
@@ -725,13 +674,13 @@ |
"description": "BuiltImage describes an image built by the pipeline.", |
"id": "BuiltImage", |
"properties": { |
- "name": { |
- "description": "Name used to push the container image to Google Container Registry, as\npresented to `docker push`.", |
- "type": "string" |
- }, |
"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" |
} |
}, |
"type": "object" |
@@ -791,6 +740,32 @@ |
"description": "BuildStep describes a step to perform in the build pipeline.", |
"id": "BuildStep", |
"properties": { |
+ "entrypoint": { |
+ "description": "Optional entrypoint to be used instead of the build step image's default\nIf unset, the image's default will be used.", |
+ "type": "string" |
+ }, |
+ "secretEnv": { |
+ "description": "A list of environment variables which are encrypted using a Cloud KMS\ncrypto key. These values must be specified in the build's secrets.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "id": { |
+ "description": "Optional unique identifier for this build step, used in wait_for to\nreference this build step as a dependency.", |
+ "type": "string" |
+ }, |
+ "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" |
+ }, |
+ "dir": { |
+ "description": "Working directory (relative to project source root) to use when running\nthis operation's container.", |
+ "type": "string" |
+ }, |
"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 completed\nsuccessfully.", |
"items": { |
@@ -815,18 +790,6 @@ |
"name": { |
"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](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" |
- }, |
- "entrypoint": { |
- "description": "Optional entrypoint to be used instead of the build step image's default\nIf unset, the image's default will be used.", |
- "type": "string" |
- }, |
- "id": { |
- "description": "Optional unique identifier for this build step, used in wait_for to\nreference this build step as a dependency.", |
- "type": "string" |
- }, |
- "dir": { |
- "description": "Working directory (relative to project source root) to use when running\nthis operation's container.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -845,19 +808,29 @@ |
}, |
"type": "object" |
}, |
+ "Secret": { |
+ "description": "Secret pairs a set of secret environment variables containing encrypted\nvalues with the Cloud KMS key to use to decrypt the value.", |
+ "id": "Secret", |
+ "properties": { |
+ "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" |
+ }, |
+ "kmsKeyName": { |
+ "description": "Cloud KMS key name to use to decrypt these envs.", |
+ "type": "string" |
+ } |
+ }, |
+ "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" |
- }, |
- "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" |
- }, |
"details": { |
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.", |
"items": { |
@@ -868,6 +841,15 @@ |
"type": "object" |
}, |
"type": "array" |
+ }, |
+ "code": { |
+ "description": "The status code, which should be an enum value of google.rpc.Code.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "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" |
@@ -882,23 +864,6 @@ |
"description": "Configuration for an automated build in response to source repository\nchanges.", |
"id": "BuildTrigger", |
"properties": { |
- "createTime": { |
- "description": "Time when the trigger was created.\n\n@OutputOnly", |
- "format": "google-datetime", |
- "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" |
- }, |
- "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." |
- }, |
"id": { |
"description": "Unique identifier of the trigger.\n\n@OutputOnly", |
"type": "string" |
@@ -917,6 +882,23 @@ |
"description": { |
"description": "Human-readable description of this trigger.", |
"type": "string" |
+ }, |
+ "disabled": { |
+ "description": "If true, the trigger will never result in a build.", |
+ "type": "boolean" |
+ }, |
+ "createTime": { |
+ "description": "Time when the trigger was created.\n\n@OutputOnly", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "filename": { |
+ "description": "Path, from the source root, to a file whose contents is used for the\ntemplate.", |
+ "type": "string" |
+ }, |
+ "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" |
@@ -925,6 +907,62 @@ |
"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.", |
"id": "Build", |
"properties": { |
+ "options": { |
+ "$ref": "BuildOptions", |
+ "description": "Special options for this build." |
+ }, |
+ "source": { |
+ "$ref": "Source", |
+ "description": "Describes where to find the source files to build." |
+ }, |
+ "statusDetail": { |
+ "description": "Customer-readable message about the current status.\n@OutputOnly", |
+ "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 is queued; work has not yet begun.", |
+ "Build is being executed.", |
+ "Build finished successfully.", |
+ "Build failed to complete successfully.", |
+ "Build failed due to an internal cause.", |
+ "Build took longer than was allowed.", |
+ "Build was canceled by a user." |
+ ], |
+ "type": "string" |
+ }, |
+ "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" |
+ }, |
+ "secrets": { |
+ "description": "Secrets to decrypt using Cloud KMS.", |
+ "items": { |
+ "$ref": "Secret" |
+ }, |
+ "type": "array" |
+ }, |
+ "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" |
+ }, |
+ "results": { |
+ "$ref": "Results", |
+ "description": "Results of the build.\n@OutputOnly" |
+ }, |
"steps": { |
"description": "Describes the operations to be performed on the workspace.", |
"items": { |
@@ -936,10 +974,6 @@ |
"description": "The ID of the BuildTrigger that triggered this build, if it was\ntriggered automatically.\n@OutputOnly", |
"type": "string" |
}, |
- "id": { |
- "description": "Unique identifier of the build.\n@OutputOnly", |
- "type": "string" |
- }, |
"tags": { |
"description": "Tags for annotation of a Build. These are not docker tags.", |
"items": { |
@@ -947,6 +981,10 @@ |
}, |
"type": "array" |
}, |
+ "id": { |
+ "description": "Unique identifier of the build.\n@OutputOnly", |
+ "type": "string" |
+ }, |
"substitutions": { |
"additionalProperties": { |
"type": "string" |
@@ -979,71 +1017,88 @@ |
"description": "ID of the project.\n@OutputOnly.", |
"type": "string" |
}, |
+ "logUrl": { |
+ "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly", |
+ "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" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "CancelBuildRequest": { |
+ "description": "Request to cancel an ongoing build.", |
+ "id": "CancelBuildRequest", |
+ "properties": {}, |
+ "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" |
}, |
- "logUrl": { |
- "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly", |
+ "nextPageToken": { |
+ "description": "Token to receive the next page of results.", |
"type": "string" |
- }, |
- "source": { |
- "$ref": "Source", |
- "description": "Describes where to find the source files to build." |
- }, |
- "options": { |
- "$ref": "BuildOptions", |
- "description": "Special options for this build." |
- }, |
- "statusDetail": { |
- "description": "Customer-readable message about the current status.\n@OutputOnly", |
+ } |
+ }, |
+ "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" |
}, |
- "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 is queued; work has not yet begun.", |
- "Build is being executed.", |
- "Build finished successfully.", |
- "Build failed to complete successfully.", |
- "Build failed due to an internal cause.", |
- "Build took longer than was allowed.", |
- "Build was canceled by a user." |
- ], |
+ "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" |
- }, |
- "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": "object" |
+ }, |
+ "ListOperationsResponse": { |
+ "description": "The response message for Operations.ListOperations.", |
+ "id": "ListOperationsResponse", |
+ "properties": { |
+ "nextPageToken": { |
+ "description": "The standard List next-page token.", |
"type": "string" |
}, |
- "results": { |
- "$ref": "Results", |
- "description": "Results of the build.\n@OutputOnly" |
- }, |
- "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" |
+ "operations": { |
+ "description": "A list of operations that matches the specified filter in the request.", |
+ "items": { |
+ "$ref": "Operation" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
}, |
- "CancelBuildRequest": { |
- "description": "Request to cancel an ongoing build.", |
- "id": "CancelBuildRequest", |
- "properties": {}, |
+ "Source": { |
+ "description": "Source describes the location of the source in a supported storage\nservice.", |
+ "id": "Source", |
+ "properties": { |
+ "repoSource": { |
+ "$ref": "RepoSource", |
+ "description": "If provided, get source from this location in a Cloud Repo." |
+ }, |
+ "storageSource": { |
+ "$ref": "StorageSource", |
+ "description": "If provided, get the source from this location in in Google Cloud\nStorage." |
+ } |
+ }, |
"type": "object" |
} |
}, |