Skip to content

Commit

Permalink
feat(cloudbuild)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### cloudbuild:v1

The following keys were deleted:
- schemas.HTTPDelivery.description
- schemas.HTTPDelivery.id
- schemas.HTTPDelivery.properties.uri.description
- schemas.HTTPDelivery.properties.uri.type
- schemas.HTTPDelivery.type
- schemas.Notification.description
- schemas.Notification.id
- schemas.Notification.properties.filter.description
- schemas.Notification.properties.filter.type
- schemas.Notification.properties.httpDelivery.$ref
- schemas.Notification.properties.httpDelivery.description
- schemas.Notification.properties.slackDelivery.$ref
- schemas.Notification.properties.slackDelivery.description
- schemas.Notification.properties.smtpDelivery.$ref
- schemas.Notification.properties.smtpDelivery.description
- schemas.Notification.properties.structDelivery.additionalProperties.description
- schemas.Notification.properties.structDelivery.additionalProperties.type
- schemas.Notification.properties.structDelivery.description
- schemas.Notification.properties.structDelivery.type
- schemas.Notification.type
- schemas.NotifierConfig.description
- schemas.NotifierConfig.id
- schemas.NotifierConfig.properties.apiVersion.description
- schemas.NotifierConfig.properties.apiVersion.type
- schemas.NotifierConfig.properties.kind.description
- schemas.NotifierConfig.properties.kind.type
- schemas.NotifierConfig.properties.metadata.$ref
- schemas.NotifierConfig.properties.metadata.description
- schemas.NotifierConfig.properties.spec.$ref
- schemas.NotifierConfig.properties.spec.description
- schemas.NotifierConfig.type
- schemas.NotifierMetadata.description
- schemas.NotifierMetadata.id
- schemas.NotifierMetadata.properties.name.description
- schemas.NotifierMetadata.properties.name.type
- schemas.NotifierMetadata.properties.notifier.description
- schemas.NotifierMetadata.properties.notifier.type
- schemas.NotifierMetadata.type
- schemas.NotifierSecret.description
- schemas.NotifierSecret.id
- schemas.NotifierSecret.properties.name.description
- schemas.NotifierSecret.properties.name.type
- schemas.NotifierSecret.properties.value.description
- schemas.NotifierSecret.properties.value.type
- schemas.NotifierSecret.type
- schemas.NotifierSecretRef.description
- schemas.NotifierSecretRef.id
- schemas.NotifierSecretRef.properties.secretRef.description
- schemas.NotifierSecretRef.properties.secretRef.type
- schemas.NotifierSecretRef.type
- schemas.NotifierSpec.description
- schemas.NotifierSpec.id
- schemas.NotifierSpec.properties.notification.$ref
- schemas.NotifierSpec.properties.notification.description
- schemas.NotifierSpec.properties.secrets.description
- schemas.NotifierSpec.properties.secrets.items.$ref
- schemas.NotifierSpec.properties.secrets.type
- schemas.NotifierSpec.type
- schemas.SMTPDelivery.description
- schemas.SMTPDelivery.id
- schemas.SMTPDelivery.properties.fromAddress.description
- schemas.SMTPDelivery.properties.fromAddress.type
- schemas.SMTPDelivery.properties.password.$ref
- schemas.SMTPDelivery.properties.password.description
- schemas.SMTPDelivery.properties.port.description
- schemas.SMTPDelivery.properties.port.type
- schemas.SMTPDelivery.properties.recipientAddresses.description
- schemas.SMTPDelivery.properties.recipientAddresses.items.type
- schemas.SMTPDelivery.properties.recipientAddresses.type
- schemas.SMTPDelivery.properties.senderAddress.description
- schemas.SMTPDelivery.properties.senderAddress.type
- schemas.SMTPDelivery.properties.server.description
- schemas.SMTPDelivery.properties.server.type
- schemas.SMTPDelivery.type
- schemas.SlackDelivery.description
- schemas.SlackDelivery.id
- schemas.SlackDelivery.properties.webhookUri.$ref
- schemas.SlackDelivery.properties.webhookUri.description
- schemas.SlackDelivery.type

The following keys were changed:
- schemas.Build.properties.timeout.description
- schemas.GitFileSource.properties.repoType.enum
- schemas.GitFileSource.properties.repoType.enumDescriptions
- schemas.GitRepoSource.properties.repoType.enum
- schemas.GitRepoSource.properties.repoType.enumDescriptions
- schemas.NetworkConfig.properties.peeredNetworkIpRange.description
- schemas.WorkerConfig.properties.diskSizeGb.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 538cbab commit a264e2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 321 deletions.
189 changes: 12 additions & 177 deletions discovery/cloudbuild-v1.json
Expand Up @@ -2295,7 +2295,7 @@
}
}
},
"revision": "20221219",
"revision": "20230125",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ApprovalConfig": {
Expand Down Expand Up @@ -2869,7 +2869,7 @@
"type": "array"
},
"timeout": {
"description": "Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.",
"description": "Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is 60 minutes.",
"format": "google-duration",
"type": "string"
},
Expand Down Expand Up @@ -3671,13 +3671,15 @@
"UNKNOWN",
"CLOUD_SOURCE_REPOSITORIES",
"GITHUB",
"BITBUCKET_SERVER"
"BITBUCKET_SERVER",
"GITLAB"
],
"enumDescriptions": [
"The default, unknown repo type.",
"A Google Cloud Source Repositories-hosted repo.",
"A GitHub-hosted repo not necessarily on \"github.com\" (i.e. GitHub Enterprise).",
"A Bitbucket Server-hosted repo."
"A Bitbucket Server-hosted repo.",
"A GitLab-hosted repo."
],
"type": "string"
},
Expand Down Expand Up @@ -4006,13 +4008,15 @@
"UNKNOWN",
"CLOUD_SOURCE_REPOSITORIES",
"GITHUB",
"BITBUCKET_SERVER"
"BITBUCKET_SERVER",
"GITLAB"
],
"enumDescriptions": [
"The default, unknown repo type.",
"A Google Cloud Source Repositories-hosted repo.",
"A GitHub-hosted repo not necessarily on \"github.com\" (i.e. GitHub Enterprise).",
"A Bitbucket Server-hosted repo."
"A Bitbucket Server-hosted repo.",
"A GitLab-hosted repo."
],
"type": "string"
},
Expand All @@ -4023,17 +4027,6 @@
},
"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",
Expand Down Expand Up @@ -4296,125 +4289,12 @@
"type": "string"
},
"peeredNetworkIpRange": {
"description": "Immutable. Subnet IP range within the peered network. This is specified in CIDR notation. The IP and prefix size are both optional. If unspecified, the default value for IP is blank (will use an automatic value from the peered network), and the prefix size will default to 24 bits. e.g. `192.168.0.0/30` would specify a subnet mask of 192.168.0.0 with a prefix size of 30 bits. `192.168.0.0` would specify a subnet mask of 192.168.0.0 with a prefix size of 24 bits (the default prefix size). `/16` would specify a prefix size of 16 bits, with an unspecified IP.",
"type": "string"
}
},
"type": "object"
},
"Notification": {
"description": "Notification is the container which holds the data that is relevant to this particular notification.",
"id": "Notification",
"properties": {
"filter": {
"description": "The filter string to use for notification filtering. Currently, this is assumed to be a CEL program. See https://opensource.google/projects/cel for more.",
"type": "string"
},
"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 this notifier.",
"id": "NotifierMetadata",
"properties": {
"name": {
"description": "The human-readable and user-given name for the notifier. For example: \"repo-merge-email-notifier\".",
"type": "string"
},
"notifier": {
"description": "The string representing the name and version of notifier to deploy. Expected to be of the form of \"/:\". For 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 Google Cloud Secret Manager resource path.",
"id": "NotifierSecret",
"properties": {
"name": {
"description": "Name is the local name of the secret, such as the verbatim string \"my-smtp-password\".",
"type": "string"
},
"value": {
"description": "Value is interpreted to be a resource path for fetching the actual (versioned) secret data for this secret. For example, this would be a Google Cloud Secret Manager secret version resource path like: \"projects/my-project/secrets/my-secret/versions/latest\".",
"description": "Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used.",
"type": "string"
}
},
"type": "object"
},
"NotifierSecretRef": {
"description": "NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec.",
"id": "NotifierSecretRef",
"properties": {
"secretRef": {
"description": "The value of `secret_ref` should be a `name` that is registered in a `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": "NotifierSecret"
},
"type": "array"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down Expand Up @@ -4845,40 +4725,6 @@
},
"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. If 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:` of 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 values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.",
"id": "Secret",
Expand Down Expand Up @@ -4945,17 +4791,6 @@
},
"type": "object"
},
"SlackDelivery": {
"description": "SlackDelivery is the delivery configuration for delivering Slack messages via webhooks. See Slack webhook documentation at: https://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 channel."
}
},
"type": "object"
},
"Source": {
"description": "Location of the source in a supported storage service.",
"id": "Source",
Expand Down Expand Up @@ -5282,7 +5117,7 @@
"id": "WorkerConfig",
"properties": {
"diskSizeGb": {
"description": "Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.",
"description": "Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of up to 2000. If `0` is specified, Cloud Build will use a standard disk size.",
"format": "int64",
"type": "string"
},
Expand Down

0 comments on commit a264e2d

Please sign in to comment.