Skip to content

Commit

Permalink
feat(cloudbuild): update the api
Browse files Browse the repository at this point in the history
#### cloudbuild:v1

The following keys were deleted:
- schemas.PrivatePoolV1Config.properties.privateServiceConnect.$ref (Total Keys: 1)
- schemas.PrivateServiceConnect (Total Keys: 5)

#### cloudbuild:v2

The following keys were added:
- schemas.PipelineResult (Total Keys: 8)
- schemas.PipelineRun.properties.results (Total Keys: 3)
- schemas.PipelineRunResult (Total Keys: 6)
- schemas.PipelineSpec.properties.results (Total Keys: 3)
- schemas.ResultValue (Total Keys: 9)
  • Loading branch information
yoshi-automation committed Mar 12, 2024
1 parent 1d5ea04 commit d36a365
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 45 deletions.
20 changes: 0 additions & 20 deletions docs/dyn/cloudbuild_v1.projects.locations.workerPools.html
Expand Up @@ -125,11 +125,6 @@ <h3>Method Details</h3>
&quot;peeredNetwork&quot;: &quot;A String&quot;, # Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
&quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # 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.
},
&quot;privateServiceConnect&quot;: { # Defines the Private Service Connect network configuration for the pool. # Immutable. Private Service Connect(PSC) Network configuration for the pool.
&quot;networkAttachment&quot;: &quot;A String&quot;, # Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. The region of network attachment must be the same as the worker pool. See [Network Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
&quot;publicIpAddressDisabled&quot;: True or False, # Required. Immutable. Disable public IP on the primary network interface. If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If `route_all_traffic` is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.
&quot;routeAllTraffic&quot;: True or False, # Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
},
&quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the pool. # Machine configuration for the workers in the pool.
&quot;diskSizeGb&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.
Expand Down Expand Up @@ -238,11 +233,6 @@ <h3>Method Details</h3>
&quot;peeredNetwork&quot;: &quot;A String&quot;, # Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
&quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # 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.
},
&quot;privateServiceConnect&quot;: { # Defines the Private Service Connect network configuration for the pool. # Immutable. Private Service Connect(PSC) Network configuration for the pool.
&quot;networkAttachment&quot;: &quot;A String&quot;, # Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. The region of network attachment must be the same as the worker pool. See [Network Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
&quot;publicIpAddressDisabled&quot;: True or False, # Required. Immutable. Disable public IP on the primary network interface. If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If `route_all_traffic` is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.
&quot;routeAllTraffic&quot;: True or False, # Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
},
&quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the pool. # Machine configuration for the workers in the pool.
&quot;diskSizeGb&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.
Expand Down Expand Up @@ -288,11 +278,6 @@ <h3>Method Details</h3>
&quot;peeredNetwork&quot;: &quot;A String&quot;, # Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
&quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # 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.
},
&quot;privateServiceConnect&quot;: { # Defines the Private Service Connect network configuration for the pool. # Immutable. Private Service Connect(PSC) Network configuration for the pool.
&quot;networkAttachment&quot;: &quot;A String&quot;, # Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. The region of network attachment must be the same as the worker pool. See [Network Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
&quot;publicIpAddressDisabled&quot;: True or False, # Required. Immutable. Disable public IP on the primary network interface. If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If `route_all_traffic` is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.
&quot;routeAllTraffic&quot;: True or False, # Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
},
&quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the pool. # Machine configuration for the workers in the pool.
&quot;diskSizeGb&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.
Expand Down Expand Up @@ -344,11 +329,6 @@ <h3>Method Details</h3>
&quot;peeredNetwork&quot;: &quot;A String&quot;, # Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
&quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # 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.
},
&quot;privateServiceConnect&quot;: { # Defines the Private Service Connect network configuration for the pool. # Immutable. Private Service Connect(PSC) Network configuration for the pool.
&quot;networkAttachment&quot;: &quot;A String&quot;, # Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. The region of network attachment must be the same as the worker pool. See [Network Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
&quot;publicIpAddressDisabled&quot;: True or False, # Required. Immutable. Disable public IP on the primary network interface. If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If `route_all_traffic` is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.
&quot;routeAllTraffic&quot;: True or False, # Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
},
&quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the pool. # Machine configuration for the workers in the pool.
&quot;diskSizeGb&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.
Expand Down
33 changes: 9 additions & 24 deletions googleapiclient/discovery_cache/documents/cloudbuild.v1.json
Expand Up @@ -2346,7 +2346,7 @@
}
}
},
"revision": "20240223",
"revision": "20240305",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ApprovalConfig": {
Expand Down Expand Up @@ -3089,6 +3089,14 @@ false
"E2_HIGHCPU_32",
"E2_MEDIUM"
],
"enumDeprecated": [
false,
true,
true,
false,
false,
false
],
"enumDescriptions": [
"Standard machine type.",
"Highcpu machine with 8 CPUs.",
Expand Down Expand Up @@ -4576,36 +4584,13 @@ false
"$ref": "NetworkConfig",
"description": "Network configuration for the pool."
},
"privateServiceConnect": {
"$ref": "PrivateServiceConnect",
"description": "Immutable. Private Service Connect(PSC) Network configuration for the pool."
},
"workerConfig": {
"$ref": "WorkerConfig",
"description": "Machine configuration for the workers in the pool."
}
},
"type": "object"
},
"PrivateServiceConnect": {
"description": "Defines the Private Service Connect network configuration for the pool.",
"id": "PrivateServiceConnect",
"properties": {
"networkAttachment": {
"description": "Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. The region of network attachment must be the same as the worker pool. See [Network Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)",
"type": "string"
},
"publicIpAddressDisabled": {
"description": "Required. Immutable. Disable public IP on the primary network interface. If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If `route_all_traffic` is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.",
"type": "boolean"
},
"routeAllTraffic": {
"description": "Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.",
"type": "boolean"
}
},
"type": "object"
},
"ProcessAppManifestCallbackOperationMetadata": {
"description": "Metadata for `ProcessAppManifestCallback` operation.",
"id": "ProcessAppManifestCallbackOperationMetadata",
Expand Down
116 changes: 115 additions & 1 deletion googleapiclient/discovery_cache/documents/cloudbuild.v2.json
Expand Up @@ -844,7 +844,7 @@
}
}
},
"revision": "20240223",
"revision": "20240305",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1885,6 +1885,45 @@
},
"type": "object"
},
"PipelineResult": {
"description": "A value produced by a Pipeline.",
"id": "PipelineResult",
"properties": {
"description": {
"description": "Output only. Description of the result.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. Name of the result.",
"readOnly": true,
"type": "string"
},
"type": {
"description": "Output only. The type of data that the result holds.",
"enum": [
"TYPE_UNSPECIFIED",
"STRING",
"ARRAY",
"OBJECT"
],
"enumDescriptions": [
"Default enum type; should not be used.",
"Default",
"Array type",
"Object type"
],
"readOnly": true,
"type": "string"
},
"value": {
"$ref": "ResultValue",
"description": "Output only. Value of the result.",
"readOnly": true
}
},
"type": "object"
},
"PipelineRun": {
"description": "Message describing PipelineRun object",
"id": "PipelineRun",
Expand Down Expand Up @@ -1988,6 +2027,14 @@
"description": "Output only. The exact PipelineSpec used to instantiate the run.",
"readOnly": true
},
"results": {
"description": "Optional. Output only. List of results written out by the pipeline's containers",
"items": {
"$ref": "PipelineRunResult"
},
"readOnly": true,
"type": "array"
},
"security": {
"$ref": "Security",
"description": "Optional. Security configuration."
Expand Down Expand Up @@ -2049,6 +2096,23 @@
},
"type": "object"
},
"PipelineRunResult": {
"description": "PipelineRunResult used to describe the results of a pipeline",
"id": "PipelineRunResult",
"properties": {
"name": {
"description": "Output only. Name of the TaskRun",
"readOnly": true,
"type": "string"
},
"value": {
"$ref": "ResultValue",
"description": "Output only. Value of the result.",
"readOnly": true
}
},
"type": "object"
},
"PipelineSpec": {
"description": "PipelineSpec defines the desired state of Pipeline.",
"id": "PipelineSpec",
Expand All @@ -2072,6 +2136,14 @@
},
"type": "array"
},
"results": {
"description": "Optional. Output only. List of results written out by the pipeline's containers",
"items": {
"$ref": "PipelineResult"
},
"readOnly": true,
"type": "array"
},
"tasks": {
"description": "List of Tasks that execute when this Pipeline is run.",
"items": {
Expand Down Expand Up @@ -2325,6 +2397,48 @@
},
"type": "object"
},
"ResultValue": {
"description": "ResultValue holds different types of data for a single result.",
"id": "ResultValue",
"properties": {
"arrayVal": {
"description": "Value of the result if type is array.",
"items": {
"type": "string"
},
"type": "array"
},
"objectVal": {
"additionalProperties": {
"type": "string"
},
"description": "Value of the result if type is object.",
"type": "object"
},
"stringVal": {
"description": "Value of the result if type is string.",
"type": "string"
},
"type": {
"description": "Output only. The type of data that the result holds.",
"enum": [
"TYPE_UNSPECIFIED",
"STRING",
"ARRAY",
"OBJECT"
],
"enumDescriptions": [
"Default enum type; should not be used.",
"Default",
"Array type",
"Object type"
],
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"RunWorkflowCustomOperationMetadata": {
"description": "Represents the custom metadata of the RunWorkflow long-running operation.",
"id": "RunWorkflowCustomOperationMetadata",
Expand Down

0 comments on commit d36a365

Please sign in to comment.