Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1225)

Unified Diff: discovery/googleapis/cloudbuild__v1.json

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/cloudbilling__v1.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/cloudbuild__v1.json
diff --git a/discovery/googleapis/cloudbuild__v1.json b/discovery/googleapis/cloudbuild__v1.json
index a8b17ec1fca91efe8fdd8f1a692d19c835993ea9..cd14d0d92528d094096f1e0c85eefeeb021490ac 100644
--- a/discovery/googleapis/cloudbuild__v1.json
+++ b/discovery/googleapis/cloudbuild__v1.json
@@ -36,13 +36,13 @@
"location": "query",
"type": "boolean"
},
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
- "fields": {
- "description": "Selector specifying which fields to include in a partial response.",
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
@@ -114,237 +114,40 @@
},
"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": {
+ "triggers": {
"methods": {
- "cancel": {
- "description": "Cancels a requested build in progress.",
- "httpMethod": "POST",
- "id": "cloudbuild.projects.builds.cancel",
+ "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",
- "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",
- "id": "cloudbuild.projects.builds.list",
- "parameterOrder": [
- "projectId"
+ "triggerId"
],
"parameters": {
- "pageSize": {
- "description": "Number of results to return in the list.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "projectId": {
- "description": "ID of the project.",
+ "triggerId": {
+ "description": "ID of the BuildTrigger to delete.",
"location": "path",
"required": true,
"type": "string"
},
- "filter": {
- "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",
- "response": {
- "$ref": "ListBuildsResponse"
- },
- "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 (e.g., success or failure,\nor in-progress), and timing information.",
- "httpMethod": "GET",
- "id": "cloudbuild.projects.builds.get",
- "parameterOrder": [
- "projectId",
- "id"
- ],
- "parameters": {
"projectId": {
- "description": "ID of the project.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "id": {
- "description": "ID of the build.",
+ "description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v1/projects/{projectId}/builds/{id}",
+ "path": "v1/projects/{projectId}/triggers/{triggerId}",
"response": {
- "$ref": "Build"
+ "$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "create": {
- "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
- "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"
- ]
- }
- }
- },
- "triggers": {
- "methods": {
"patch": {
"description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
"httpMethod": "PATCH",
@@ -456,32 +259,134 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
- },
- "delete": {
- "description": "Deletes an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
- "httpMethod": "DELETE",
- "id": "cloudbuild.projects.triggers.delete",
+ }
+ }
+ },
+ "builds": {
+ "methods": {
+ "list": {
+ "description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.",
+ "httpMethod": "GET",
+ "id": "cloudbuild.projects.builds.list",
"parameterOrder": [
- "projectId",
- "triggerId"
+ "projectId"
],
"parameters": {
- "triggerId": {
- "description": "ID of the BuildTrigger to delete.",
- "location": "path",
- "required": true,
+ "pageToken": {
+ "description": "Token to provide to skip to a particular spot in the list.",
+ "location": "query",
"type": "string"
},
- "projectId": {
- "description": "ID of the project that owns the trigger.",
- "location": "path",
- "required": true,
- "type": "string"
+ "pageSize": {
+ "description": "Number of results to return in the list.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
+ },
+ "projectId": {
+ "description": "ID of the project.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "filter": {
+ "description": "The raw filter text to constrain the results.",
+ "location": "query",
+ "type": "string"
}
},
- "path": "v1/projects/{projectId}/triggers/{triggerId}",
+ "path": "v1/projects/{projectId}/builds",
"response": {
- "$ref": "Empty"
+ "$ref": "ListBuildsResponse"
+ },
+ "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 (e.g., success or failure,\nor in-progress), and timing information.",
+ "httpMethod": "GET",
+ "id": "cloudbuild.projects.builds.get",
+ "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}",
+ "response": {
+ "$ref": "Build"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "create": {
+ "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
+ "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"
+ ]
+ },
+ "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"
@@ -490,77 +395,106 @@
}
}
}
- }
- },
- "revision": "20170725",
- "rootUrl": "https://cloudbuild.googleapis.com/",
- "schemas": {
- "BuildOptions": {
- "description": "Optional arguments to enable specific features of builds.",
- "id": "BuildOptions",
- "properties": {
- "substitutionOption": {
- "description": "SubstitutionOption to allow unmatch substitutions.",
- "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."
+ },
+ "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"
],
- "type": "string"
+ "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"
+ ]
},
- "requestedVerifyOption": {
- "description": "Requested verifiability options.",
- "enum": [
- "NOT_VERIFIED",
- "VERIFIED"
- ],
- "enumDescriptions": [
- "Not a verifiable build. (default)",
- "Verified build."
+ "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"
],
- "type": "string"
+ "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"
+ ]
},
- "sourceProvenanceHash": {
- "description": "Requested hash for SourceProvenance.",
- "enumDescriptions": [
- "No hash requested.",
- "Use a sha256 hash."
+ "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"
],
- "items": {
- "enum": [
- "NONE",
- "SHA256"
- ],
- "type": "string"
+ "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"
+ }
},
- "type": "array"
- }
- },
- "type": "object"
- },
- "StorageSource": {
- "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
- "id": "StorageSource",
- "properties": {
- "bucket": {
- "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
- "type": "string"
- },
- "object": {
- "description": "Google Cloud Storage object containing source.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\nbuild.",
- "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"
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
- },
- "type": "object"
- },
+ }
+ }
+ },
+ "revision": "20170817",
+ "rootUrl": "https://cloudbuild.googleapis.com/",
+ "schemas": {
"Results": {
"description": "Results describes the artifacts created by the build pipeline.",
"id": "Results",
@@ -597,13 +531,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": {
- "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."
@@ -611,6 +538,13 @@
"resolvedStorageSource": {
"$ref": "StorageSource",
"description": "A copy of the build's source.storage_source, if exists, with any\ngenerations resolved."
+ },
+ "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"
}
},
"type": "object"
@@ -639,18 +573,6 @@
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"id": "Operation",
"properties": {
- "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"
- },
"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"
@@ -666,71 +588,32 @@
"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"
- },
- "BuiltImage": {
- "description": "BuiltImage describes 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"
- }
- },
- "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"
+ "error": {
+ "$ref": "Status",
+ "description": "The error result of the operation in case of failure or cancellation."
},
- "value": {
- "description": "The hash value.",
- "format": "byte",
- "type": "string"
+ "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"
}
},
"type": "object"
},
- "RepoSource": {
- "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
- "id": "RepoSource",
+ "BuiltImage": {
+ "description": "BuiltImage describes an image built by the pipeline.",
+ "id": "BuiltImage",
"properties": {
- "branchName": {
- "description": "Name of the branch to build.",
- "type": "string"
- },
- "repoName": {
- "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
- "type": "string"
- },
- "projectId": {
- "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
- "type": "string"
- },
- "commitSha": {
- "description": "Explicit commit SHA to build.",
+ "name": {
+ "description": "Name used to push the container image to Google Container Registry, as\npresented to `docker push`.",
"type": "string"
},
- "tagName": {
- "description": "Name of the tag to build.",
+ "digest": {
+ "description": "Docker Registry 2.0 digest.",
"type": "string"
}
},
@@ -740,10 +623,18 @@
"description": "BuildStep describes a step to perform in the build pipeline.",
"id": "BuildStep",
"properties": {
+ "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"
+ },
"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": {
@@ -751,10 +642,6 @@
},
"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": {
@@ -766,15 +653,15 @@
"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.",
+ "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"
},
- "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\".",
+ "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": {
"type": "string"
},
@@ -786,9 +673,56 @@
"type": "string"
},
"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"
},
- "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.",
+ "value": {
+ "description": "The hash value.",
+ "format": "byte",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "RepoSource": {
+ "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
+ "id": "RepoSource",
+ "properties": {
+ "commitSha": {
+ "description": "Explicit commit SHA to build.",
+ "type": "string"
+ },
+ "tagName": {
+ "description": "Name of the tag to build.",
+ "type": "string"
+ },
+ "branchName": {
+ "description": "Name of the branch to build.",
+ "type": "string"
+ },
+ "repoName": {
+ "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
"type": "string"
}
},
@@ -864,6 +798,23 @@
"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"
+ },
+ "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."
+ },
+ "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"
@@ -882,23 +833,6 @@
"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"
@@ -907,16 +841,17 @@
"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",
+ "options": {
+ "$ref": "BuildOptions",
+ "description": "Special options for this build."
+ },
+ "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"
},
"status": {
@@ -943,9 +878,8 @@
],
"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",
+ "statusDetail": {
+ "description": "Customer-readable message about the current status.\n@OutputOnly",
"type": "string"
},
"secrets": {
@@ -955,14 +889,14 @@
},
"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"
},
+ "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"
+ },
"steps": {
"description": "Describes the operations to be performed on the workspace.",
"items": {
@@ -1017,14 +951,14 @@
"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"
+ },
+ "logUrl": {
+ "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly",
+ "type": "string"
}
},
"type": "object"
@@ -1039,16 +973,16 @@
"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"
- },
- "nextPageToken": {
- "description": "Token to receive the next page of results.",
- "type": "string"
}
},
"type": "object"
@@ -1057,13 +991,13 @@
"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"
+ },
+ "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"
}
},
"type": "object"
@@ -1090,13 +1024,79 @@
"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",
+ "properties": {
+ "substitutionOption": {
+ "description": "SubstitutionOption to allow unmatch substitutions.",
+ "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"
},
- "storageSource": {
- "$ref": "StorageSource",
- "description": "If provided, get the source from this location in in Google Cloud\nStorage."
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "StorageSource": {
+ "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
+ "id": "StorageSource",
+ "properties": {
+ "bucket": {
+ "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
+ "type": "string"
+ },
+ "object": {
+ "description": "Google Cloud Storage object containing source.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\nbuild.",
+ "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"
}
},
"type": "object"
« no previous file with comments | « discovery/googleapis/cloudbilling__v1.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698