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

Unified Diff: discovery/googleapis/cloudbuild__v1.json

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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/calendar__v3.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 9f0062082b9c5691dbe95eb8e302f0fb6e989c6b..eba7c176da4af64d1a6878c6d90370eb357589cc 100644
--- a/discovery/googleapis/cloudbuild__v1.json
+++ b/discovery/googleapis/cloudbuild__v1.json
@@ -25,22 +25,32 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
- "access_token": {
- "description": "OAuth access token.",
+ "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"
},
- "prettyPrint": {
- "default": "true",
- "description": "Returns response with indentations and line breaks.",
- "location": "query",
- "type": "boolean"
- },
"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"
},
+ "access_token": {
+ "description": "OAuth access token.",
+ "location": "query",
+ "type": "string"
+ },
"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",
@@ -52,62 +62,52 @@
"location": "query",
"type": "boolean"
},
- "fields": {
- "description": "Selector specifying which fields to include in a partial response.",
+ "bearer_token": {
+ "description": "OAuth bearer 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"
- ],
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
- "$.xgafv": {
- "description": "V1 error format.",
- "enum": [
- "1",
- "2"
- ],
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
},
- "callback": {
- "description": "JSONP",
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
"location": "query",
- "type": "string"
+ "type": "boolean"
},
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
- "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"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
+ "callback": {
+ "description": "JSONP",
"location": "query",
"type": "string"
},
- "upload_protocol": {
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "$.xgafv": {
+ "description": "V1 error format.",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
"location": "query",
"type": "string"
}
@@ -118,27 +118,31 @@
"resources": {
"triggers": {
"methods": {
- "create": {
- "description": "Creates a new BuildTrigger.\n\nThis API is experimental.",
- "httpMethod": "POST",
- "id": "cloudbuild.projects.triggers.create",
+ "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"
+ "projectId",
+ "triggerId"
],
"parameters": {
+ "triggerId": {
+ "description": "ID of the BuildTrigger to delete.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
"projectId": {
- "description": "ID of the project for which to configure automatic builds.",
+ "description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v1/projects/{projectId}/triggers",
- "request": {
- "$ref": "BuildTrigger"
- },
+ "path": "v1/projects/{projectId}/triggers/{triggerId}",
"response": {
- "$ref": "BuildTrigger"
+ "$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
@@ -153,14 +157,14 @@
"triggerId"
],
"parameters": {
- "projectId": {
- "description": "ID of the project that owns the trigger.",
+ "triggerId": {
+ "description": "ID of the BuildTrigger to get.",
"location": "path",
"required": true,
"type": "string"
},
- "triggerId": {
- "description": "ID of the BuildTrigger to get.",
+ "projectId": {
+ "description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
@@ -197,59 +201,55 @@
"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",
+ "patch": {
+ "description": "Updates an BuildTrigger by its project ID and trigger ID.\n\nThis API is experimental.",
+ "httpMethod": "PATCH",
+ "id": "cloudbuild.projects.triggers.patch",
"parameterOrder": [
"projectId",
"triggerId"
],
"parameters": {
- "projectId": {
- "description": "ID of the project that owns the trigger.",
+ "triggerId": {
+ "description": "ID of the BuildTrigger to update.",
"location": "path",
"required": true,
"type": "string"
},
- "triggerId": {
- "description": "ID of the BuildTrigger to delete.",
+ "projectId": {
+ "description": "ID of the project that owns the trigger.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "v1/projects/{projectId}/triggers/{triggerId}",
+ "request": {
+ "$ref": "BuildTrigger"
+ },
"response": {
- "$ref": "Empty"
+ "$ref": "BuildTrigger"
},
"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",
- "id": "cloudbuild.projects.triggers.patch",
+ "create": {
+ "description": "Creates a new BuildTrigger.\n\nThis API is experimental.",
+ "httpMethod": "POST",
+ "id": "cloudbuild.projects.triggers.create",
"parameterOrder": [
- "projectId",
- "triggerId"
+ "projectId"
],
"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.",
+ "description": "ID of the project for which to configure automatic builds.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v1/projects/{projectId}/triggers/{triggerId}",
+ "path": "v1/projects/{projectId}/triggers",
"request": {
"$ref": "BuildTrigger"
},
@@ -290,10 +290,10 @@
"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",
+ "cancel": {
+ "description": "Cancels a requested build in progress.",
+ "httpMethod": "POST",
+ "id": "cloudbuild.projects.builds.cancel",
"parameterOrder": [
"projectId",
"id"
@@ -312,7 +312,10 @@
"type": "string"
}
},
- "path": "v1/projects/{projectId}/builds/{id}",
+ "path": "v1/projects/{projectId}/builds/{id}:cancel",
+ "request": {
+ "$ref": "CancelBuildRequest"
+ },
"response": {
"$ref": "Build"
},
@@ -320,23 +323,19 @@
"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.",
+ "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.list",
+ "id": "cloudbuild.projects.builds.get",
"parameterOrder": [
- "projectId"
+ "projectId",
+ "id"
],
"parameters": {
- "pageSize": {
- "description": "Number of results to return in the list.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "filter": {
- "description": "The raw filter text to constrain the results.",
- "location": "query",
+ "id": {
+ "description": "ID of the build.",
+ "location": "path",
+ "required": true,
"type": "string"
},
"projectId": {
@@ -344,28 +343,22 @@
"location": "path",
"required": true,
"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",
+ "path": "v1/projects/{projectId}/builds/{id}",
"response": {
- "$ref": "ListBuildsResponse"
+ "$ref": "Build"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "cancel": {
- "description": "Cancels a requested build in progress.",
- "httpMethod": "POST",
- "id": "cloudbuild.projects.builds.cancel",
+ "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",
- "id"
+ "projectId"
],
"parameters": {
"projectId": {
@@ -374,19 +367,26 @@
"required": true,
"type": "string"
},
- "id": {
- "description": "ID of the build.",
- "location": "path",
- "required": true,
+ "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"
+ },
+ "pageSize": {
+ "description": "Number of results to return in the list.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
}
},
- "path": "v1/projects/{projectId}/builds/{id}:cancel",
- "request": {
- "$ref": "CancelBuildRequest"
- },
+ "path": "v1/projects/{projectId}/builds",
"response": {
- "$ref": "Build"
+ "$ref": "ListBuildsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
@@ -398,25 +398,28 @@
},
"operations": {
"methods": {
- "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",
+ "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.",
+ "description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^operations/.+$",
"required": true,
"type": "string"
}
},
- "path": "v1/{+name}",
- "response": {
- "$ref": "Operation"
+ "path": "v1/{+name}:cancel",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ },
+ "response": {
+ "$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
@@ -430,12 +433,6 @@
"name"
],
"parameters": {
- "pageSize": {
- "description": "The standard list page size.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
"filter": {
"description": "The standard list filter.",
"location": "query",
@@ -452,6 +449,12 @@
"description": "The standard list page token.",
"location": "query",
"type": "string"
+ },
+ "pageSize": {
+ "description": "The standard list page size.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
}
},
"path": "v1/{+name}",
@@ -462,28 +465,25 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "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",
+ "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 to be cancelled.",
+ "description": "The name of the operation resource.",
"location": "path",
"pattern": "^operations/.+$",
"required": true,
"type": "string"
}
},
- "path": "v1/{+name}:cancel",
- "request": {
- "$ref": "CancelOperationRequest"
- },
+ "path": "v1/{+name}",
"response": {
- "$ref": "Empty"
+ "$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
@@ -492,32 +492,46 @@
}
}
},
- "revision": "20170119",
+ "revision": "20170207",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
- "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` which 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 purpose.\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",
+ "StorageSource": {
+ "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
+ "id": "StorageSource",
"properties": {
- "code": {
- "description": "The status code, which should be an enum value of google.rpc.Code.",
- "format": "int32",
- "type": "integer"
+ "generation": {
+ "description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
+ "format": "int64",
+ "type": "string"
},
- "details": {
- "description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.",
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "Results": {
+ "description": "Results describes the artifacts created by the build pipeline.",
+ "id": "Results",
+ "properties": {
+ "buildStepImages": {
+ "description": "List of build step digests, in order corresponding to build step indices.",
"items": {
- "additionalProperties": {
- "description": "Properties of the object. Contains field @type with type URL.",
- "type": "any"
- },
- "type": "object"
+ "type": "string"
},
"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"
+ "images": {
+ "description": "Images that were built as a part of the build.",
+ "items": {
+ "$ref": "BuiltImage"
+ },
+ "type": "array"
}
},
"type": "object"
@@ -533,21 +547,6 @@
},
"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"
- },
"SourceProvenance": {
"description": "Provenance of the source. Ways to find the original source, or verify that\nsome source was used for this build.",
"id": "SourceProvenance",
@@ -570,26 +569,20 @@
},
"type": "object"
},
+ "CancelOperationRequest": {
+ "description": "The request message for Operations.CancelOperation.",
+ "id": "CancelOperationRequest",
+ "properties": {},
+ "type": "object"
+ },
"Operation": {
"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."
- },
"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"
},
- "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"
- },
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
@@ -601,42 +594,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"
+ },
+ "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"
}
},
"type": "object"
},
- "BuildTrigger": {
- "description": "Configuration for an automated build in response to source repository\nchanges.",
- "id": "BuildTrigger",
+ "ListBuildTriggersResponse": {
+ "description": "Response containing existing BuildTriggers.",
+ "id": "ListBuildTriggersResponse",
"properties": {
- "id": {
- "description": "Unique identifier of the trigger.\n\n@OutputOnly",
- "type": "string"
- },
- "description": {
- "description": "Human-readable description of this trigger.",
- "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."
- },
- "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"
- },
- "build": {
- "$ref": "Build",
- "description": "Contents of the build template."
+ "triggers": {
+ "description": "BuildTriggers for the project, sorted by create_time descending.",
+ "items": {
+ "$ref": "BuildTrigger"
+ },
+ "type": "array"
}
},
"type": "object"
@@ -656,15 +639,54 @@
},
"type": "object"
},
+ "BuildStep": {
+ "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). The Docker daemon\nwill also have cached many of the layers for some popular images, like\n\"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to\nuse them.\n\nIf you built an image in a previous build step, it will be stored in the\nhost's Docker daemon's cache and is available to use as the name for a\nlater build step.",
+ "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"
+ },
+ "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"
+ },
+ "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\".",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "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, these args\nwill be used as arguments to that entrypoint. If the image does not define\nan entrypoint, the first element in args will be used as the entrypoint,\nand the remainder will be used as arguments.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"Hash": {
"description": "Container message for hash values.",
"id": "Hash",
"properties": {
- "value": {
- "description": "The hash value.",
- "format": "byte",
- "type": "string"
- },
"type": {
"description": "The type of hash that was performed.",
"enum": [
@@ -676,72 +698,177 @@
"Use a sha256 hash."
],
"type": "string"
+ },
+ "value": {
+ "description": "The hash value.",
+ "format": "byte",
+ "type": "string"
}
},
"type": "object"
},
- "CancelOperationRequest": {
- "description": "The request message for Operations.CancelOperation.",
- "id": "CancelOperationRequest",
- "properties": {},
- "type": "object"
- },
- "StorageSource": {
- "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
- "id": "StorageSource",
+ "RepoSource": {
+ "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
+ "id": "RepoSource",
"properties": {
- "bucket": {
- "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
+ "projectId": {
+ "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
"type": "string"
},
- "generation": {
- "description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
- "format": "int64",
+ "repoName": {
+ "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
"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.",
+ "branchName": {
+ "description": "Name of the branch to build.",
+ "type": "string"
+ },
+ "tagName": {
+ "description": "Name of the tag to build.",
+ "type": "string"
+ },
+ "commitSha": {
+ "description": "Explicit commit SHA to build.",
"type": "string"
}
},
"type": "object"
},
- "Results": {
- "description": "Results describes the artifacts created by the build pipeline.",
- "id": "Results",
+ "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": {
- "images": {
- "description": "Images that were built as a part of the build.",
+ "fileHash": {
+ "description": "Collection of file hashes.",
"items": {
- "$ref": "BuiltImage"
+ "$ref": "Hash"
},
"type": "array"
+ }
+ },
+ "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` which 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 purpose.\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"
},
- "buildStepImages": {
- "description": "List of build step digests, in order corresponding to build step indices.",
+ "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 will be a\ncommon set of message types for APIs to use.",
"items": {
- "type": "string"
+ "additionalProperties": {
+ "description": "Properties of the object. Contains field @type with type URL.",
+ "type": "any"
+ },
+ "type": "object"
},
"type": "array"
}
},
"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"
+ },
+ "BuildTrigger": {
+ "description": "Configuration for an automated build in response to source repository\nchanges.",
+ "id": "BuildTrigger",
+ "properties": {
+ "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"
+ },
+ "build": {
+ "$ref": "Build",
+ "description": "Contents of the build template."
+ },
+ "substitutions": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Substitutions data for Build resource.",
+ "type": "object"
+ },
+ "description": {
+ "description": "Human-readable description of this trigger.",
+ "type": "string"
+ },
+ "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"
+ }
+ },
+ "type": "object"
+ },
"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 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": {
- "id": {
- "description": "Unique identifier of the build.\n@OutputOnly",
+ "createTime": {
+ "description": "Time at which the request to create the build was received.\n@OutputOnly",
+ "format": "google-datetime",
"type": "string"
},
"sourceProvenance": {
"$ref": "SourceProvenance",
"description": "A permanent fixed identifier for source.\n@OutputOnly"
},
- "results": {
- "$ref": "Results",
- "description": "Results of the build.\n@OutputOnly"
+ "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"
+ },
+ "projectId": {
+ "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"
+ },
+ "options": {
+ "$ref": "BuildOptions",
+ "description": "Special options for this build."
+ },
+ "source": {
+ "$ref": "Source",
+ "description": "Describes where to find the source files to 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": {
"description": "Status of the build.\n@OutputOnly",
@@ -767,18 +894,16 @@
],
"type": "string"
},
- "options": {
- "$ref": "BuildOptions",
- "description": "Special options for this build."
- },
- "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",
+ "statusDetail": {
+ "description": "Customer-readable message about the current status.\n@OutputOnly",
"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",
+ "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": {
@@ -788,60 +913,25 @@
},
"type": "array"
},
- "source": {
- "$ref": "Source",
- "description": "Describes where to find the source files to build."
- },
- "createTime": {
- "description": "Time at which the request to create the build was received.\n@OutputOnly",
- "format": "google-datetime",
- "type": "string"
- },
- "logUrl": {
- "description": "URL to logs for this build in Google Cloud Logging.\n@OutputOnly",
+ "buildTriggerId": {
+ "description": "The ID of the BuildTrigger that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
"type": "string"
},
- "statusDetail": {
- "description": "Customer-readable message about the current status.\n@OutputOnly",
+ "id": {
+ "description": "Unique identifier of the build.\n@OutputOnly",
"type": "string"
},
- "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"
- },
"startTime": {
"description": "Time at which execution of the build was started.\n@OutputOnly",
"format": "google-datetime",
"type": "string"
},
- "buildTriggerId": {
- "description": "The ID of the BuildTrigger that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
- "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"
- },
- "projectId": {
- "description": "ID of the project.\n@OutputOnly.",
- "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"
+ "substitutions": {
+ "additionalProperties": {
+ "type": "string"
},
- "type": "array"
+ "description": "Substitutions data for Build resource.",
+ "type": "object"
}
},
"type": "object"
@@ -852,115 +942,57 @@
"properties": {},
"type": "object"
},
- "ListOperationsResponse": {
- "description": "The response message for Operations.ListOperations.",
- "id": "ListOperationsResponse",
+ "ListBuildsResponse": {
+ "description": "Response including listed builds.",
+ "id": "ListBuildsResponse",
"properties": {
"nextPageToken": {
- "description": "The standard List next-page token.",
+ "description": "Token to receive the next page of results.",
"type": "string"
},
- "operations": {
- "description": "A list of operations that matches the specified filter in the request.",
+ "builds": {
+ "description": "Builds will be sorted by create_time, descending.",
"items": {
- "$ref": "Operation"
+ "$ref": "Build"
},
"type": "array"
}
},
"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",
+ "ListOperationsResponse": {
+ "description": "The response message for Operations.ListOperations.",
+ "id": "ListOperationsResponse",
"properties": {
- "fileHash": {
- "description": "Collection of file hashes.",
+ "operations": {
+ "description": "A list of operations that matches the specified filter in the request.",
"items": {
- "$ref": "Hash"
+ "$ref": "Operation"
},
"type": "array"
- }
- },
- "type": "object"
- },
- "RepoSource": {
- "description": "RepoSource describes the location of the source in a Google Cloud Source\nRepository.",
- "id": "RepoSource",
- "properties": {
- "repoName": {
- "description": "Name of the repo. If omitted, the name \"default\" is assumed.",
- "type": "string"
- },
- "tagName": {
- "description": "Name of the tag to build.",
- "type": "string"
- },
- "projectId": {
- "description": "ID of the project that owns the repo. If omitted, the project ID requesting\nthe build is assumed.",
- "type": "string"
},
- "branchName": {
- "description": "Name of the branch to build.",
- "type": "string"
- },
- "commitSha": {
- "description": "Explicit commit SHA to build.",
+ "nextPageToken": {
+ "description": "The standard List next-page token.",
"type": "string"
}
},
"type": "object"
},
- "BuildStep": {
- "description": "BuildStep describes a step to perform in the build pipeline.",
- "id": "BuildStep",
+ "Source": {
+ "description": "Source describes the location of the source in a supported storage\nservice.",
+ "id": "Source",
"properties": {
- "id": {
- "description": "Optional unique identifier for this build step, used in wait_for to\nreference this build step as a dependency.",
- "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"
- },
- "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"
- },
- "type": "array"
- },
- "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, these args\nwill be used as arguments to that entrypoint. If the image does not define\nan entrypoint, the first element in args will be used as the entrypoint,\nand the remainder will be used as arguments.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "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"
- },
- "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). The Docker daemon\nwill also have cached many of the layers for some popular images, like\n\"ubuntu\", \"debian\", but they will be refreshed at the time you attempt to\nuse them.\n\nIf you built an image in a previous build step, it will be stored in the\nhost's Docker daemon's cache and is available to use as the name for a\nlater build step.",
- "type": "string"
+ "repoSource": {
+ "$ref": "RepoSource",
+ "description": "If provided, get source from this location in a Cloud Repo."
},
- "dir": {
- "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
- "type": "string"
+ "storageSource": {
+ "$ref": "StorageSource",
+ "description": "If provided, get the source from this location in in Google Cloud\nStorage."
}
},
"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"
- },
"BuildOptions": {
"description": "Optional arguments to enable specific features of builds.",
"id": "BuildOptions",
@@ -994,24 +1026,6 @@
}
},
"type": "object"
- },
- "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"
}
},
"servicePath": "",
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698