update API descriptions

This commit is contained in:
Sebastian Thiel
2020-07-10 09:11:32 +08:00
parent b6ee34dcff
commit 69fb05c4e1
271 changed files with 82506 additions and 23249 deletions

View File

@@ -159,47 +159,6 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"flatPath": "v1/operations",
"httpMethod": "GET",
"id": "cloudbuild.operations.list",
"parameterOrder": [
"name"
],
"parameters": {
"filter": {
"description": "The standard list filter.",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the operation's parent resource.",
"location": "path",
"pattern": "^operations$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The standard list page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "ListOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
@@ -375,6 +334,67 @@
}
}
},
"locations": {
"resources": {
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "cloudbuild.projects.locations.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "cloudbuild.projects.locations.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"triggers": {
"methods": {
"create": {
@@ -574,7 +594,7 @@
}
}
},
"revision": "20200323",
"revision": "20200704",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
@@ -765,7 +785,7 @@
"type": "array"
},
"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.",
"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\n`timeout` starts ticking from `startTime`.\n\nDefault time is ten minutes.",
"format": "google-duration",
"type": "string"
},
@@ -799,6 +819,10 @@
"format": "int64",
"type": "string"
},
"dynamicSubstitutions": {
"description": "Option to specify whether or not to apply bash style string\noperations to the substitutions.\n\nNOTE: this is always enabled for triggered builds and cannot be\noverridden in the build configuration file.",
"type": "boolean"
},
"env": {
"description": "A list of global environment variable definitions that will exist for all\nbuild steps in this build. If a variable is defined in both globally and in\na build step, the variable will use the build step value.\n\nThe elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\"\nbeing given the value \"VALUE\".",
"items": {
@@ -821,16 +845,20 @@
"type": "string"
},
"logging": {
"description": "Option to specify the logging mode, which determines where the logs are\nstored.",
"description": "Option to specify the logging mode, which determines if and where build\nlogs are stored.",
"enum": [
"LOGGING_UNSPECIFIED",
"LEGACY",
"GCS_ONLY"
"GCS_ONLY",
"STACKDRIVER_ONLY",
"NONE"
],
"enumDescriptions": [
"The service determines the logging mode. The default is `LEGACY`. Do not\nrely on the default logging behavior as it may change in the future.",
"Stackdriver logging and Cloud Storage logging are enabled.",
"Only Cloud Storage logging is enabled."
"Cloud Logging (Stackdriver) and Cloud Storage logging are enabled.",
"Only Cloud Storage logging is enabled.",
"Only Cloud Logging (Stackdriver) is enabled. Note that logs for both the\nCloud Console UI and Cloud SDK are based on Cloud Storage logs, so\nneither will provide logs if this option is chosen.",
"Turn off all logging. No build logs will be captured."
],
"type": "string"
},
@@ -885,7 +913,7 @@
"type": "array"
},
"substitutionOption": {
"description": "Option to specify behavior when there is an error in the substitution\nchecks.",
"description": "Option to specify behavior when there is an error in the substitution\nchecks.\n\nNOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot\nbe overridden in the build configuration file.",
"enum": [
"MUST_MATCH",
"ALLOW_LOOSE"
@@ -1158,6 +1186,17 @@
},
"type": "object"
},
"HTTPDelivery": {
"description": "HTTPDelivery is the delivery configuration for an HTTP notification.",
"id": "HTTPDelivery",
"properties": {
"uri": {
"description": "The URI to which JSON-containing HTTP POST requests should be sent.",
"type": "string"
}
},
"type": "object"
},
"Hash": {
"description": "Container message for hash values.",
"id": "Hash",
@@ -1220,18 +1259,113 @@
},
"type": "object"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
"Notification": {
"description": "Notification is the container which holds the data that is relevant to this\nparticular notification.",
"id": "Notification",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"filter": {
"description": "The filter string to use for notification filtering.\nCurrently, this is assumed to be a CEL program.\nSee https://opensource.google/projects/cel for more.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"httpDelivery": {
"$ref": "HTTPDelivery",
"description": "Configuration for HTTP delivery."
},
"slackDelivery": {
"$ref": "SlackDelivery",
"description": "Configuration for Slack delivery."
},
"smtpDelivery": {
"$ref": "SMTPDelivery",
"description": "Configuration for SMTP (email) delivery."
},
"structDelivery": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "Escape hatch for users to supply custom delivery configs.",
"type": "object"
}
},
"type": "object"
},
"NotifierConfig": {
"description": "NotifierConfig is the top-level configuration message.",
"id": "NotifierConfig",
"properties": {
"apiVersion": {
"description": "The API version of this configuration format.",
"type": "string"
},
"kind": {
"description": "The type of notifier to use (e.g. SMTPNotifier).",
"type": "string"
},
"metadata": {
"$ref": "NotifierMetadata",
"description": "Metadata for referring to/handling/deploying this notifier."
},
"spec": {
"$ref": "NotifierSpec",
"description": "The actual configuration for this notifier."
}
},
"type": "object"
},
"NotifierMetadata": {
"description": "NotifierMetadata contains the data which can be used to reference or describe\nthis notifier.",
"id": "NotifierMetadata",
"properties": {
"name": {
"description": "The human-readable and user-given name for the notifier.\nFor example: \"repo-merge-email-notifier\".",
"type": "string"
},
"notifier": {
"description": "The string representing the name and version of notifier to deploy.\nExpected to be of the form of \"<registry-path>/<name>:<version>\".\nFor example: \"gcr.io/my-project/notifiers/smtp:1.2.34\".",
"type": "string"
}
},
"type": "object"
},
"NotifierSecret": {
"description": "NotifierSecret is the container that maps a secret name (reference) to its\nGoogle Cloud Secret Manager resource path.",
"id": "NotifierSecret",
"properties": {
"name": {
"description": "Name is the local name of the secret, such as the verbatim string\n\"my-smtp-password\".",
"type": "string"
},
"value": {
"description": "Value is interpreted to be a resource path for fetching the actual\n(versioned) secret data for this secret. For example, this would be a\nGoogle Cloud Secret Manager secret version resource path like:\n\"projects/my-project/secrets/my-secret/versions/latest\".",
"type": "string"
}
},
"type": "object"
},
"NotifierSecretRef": {
"description": "NotifierSecretRef contains the reference to a secret stored in the\ncorresponding NotifierSpec.",
"id": "NotifierSecretRef",
"properties": {
"secretRef": {
"description": "The value of `secret_ref` should be a `name` that is registered in a\n`Secret` in the `secrets` list of the `Spec`.",
"type": "string"
}
},
"type": "object"
},
"NotifierSpec": {
"description": "NotifierSpec is the configuration container for notifications.",
"id": "NotifierSpec",
"properties": {
"notification": {
"$ref": "Notification",
"description": "The configuration of this particular notifier."
},
"secrets": {
"description": "Configurations for secret resources used by this particular notifier.",
"items": {
"$ref": "Operation"
"$ref": "NotifierSecret"
},
"type": "array"
}
@@ -1282,7 +1416,7 @@
"type": "string"
},
"commentControl": {
"description": "Whether to block builds on a \"/gcbrun\" comment from a repository admin or\ncollaborator.",
"description": "Configure builds to run whether a repository owner or collaborator need to\ncomment `/gcbrun`.",
"enum": [
"COMMENTS_DISABLED",
"COMMENTS_ENABLED"
@@ -1409,6 +1543,40 @@
"properties": {},
"type": "object"
},
"SMTPDelivery": {
"description": "SMTPDelivery is the delivery configuration for an SMTP (email) notification.",
"id": "SMTPDelivery",
"properties": {
"fromAddress": {
"description": "This is the SMTP account/email that appears in the `From:` of the email.\nIf empty, it is assumed to be sender.",
"type": "string"
},
"password": {
"$ref": "NotifierSecretRef",
"description": "The SMTP sender's password."
},
"port": {
"description": "The SMTP port of the server.",
"type": "string"
},
"recipientAddresses": {
"description": "This is the list of addresses to which we send the email (i.e. in the `To:`\nof the email).",
"items": {
"type": "string"
},
"type": "array"
},
"senderAddress": {
"description": "This is the SMTP account/email that is used to send the message.",
"type": "string"
},
"server": {
"description": "The address of the SMTP server.",
"type": "string"
}
},
"type": "object"
},
"Secret": {
"description": "Pairs a set of secret environment variables containing encrypted\nvalues with the Cloud KMS key to use to decrypt the value.",
"id": "Secret",
@@ -1428,6 +1596,17 @@
},
"type": "object"
},
"SlackDelivery": {
"description": "SlackDelivery is the delivery configuration for delivering Slack messages via\nwebhooks. See Slack webhook documentation at:\nhttps://api.slack.com/messaging/webhooks.",
"id": "SlackDelivery",
"properties": {
"webhookUri": {
"$ref": "NotifierSecretRef",
"description": "The secret reference for the Slack webhook URI for sending messages to a\nchannel."
}
},
"type": "object"
},
"Source": {
"description": "Location of the source in a supported storage service.",
"id": "Source",