Skip to content

Commit 5ed8cc6

Browse files
yoshi-automationsofisl
authored andcommitted
feat(cloudbuild)!: update the API
BREAKING CHANGE: This release has breaking changes. #### cloudbuild:v1 The following keys were deleted: - schemas.PrivatePoolV1Config.properties.privateServiceConnect.$ref - schemas.PrivatePoolV1Config.properties.privateServiceConnect.description - schemas.PrivateServiceConnect.description - schemas.PrivateServiceConnect.id - schemas.PrivateServiceConnect.properties.networkAttachment.description - schemas.PrivateServiceConnect.properties.networkAttachment.type - schemas.PrivateServiceConnect.properties.publicIpAddressDisabled.description - schemas.PrivateServiceConnect.properties.publicIpAddressDisabled.type - schemas.PrivateServiceConnect.properties.routeAllTraffic.description - schemas.PrivateServiceConnect.properties.routeAllTraffic.type - schemas.PrivateServiceConnect.type The following keys were added: - schemas.BuildOptions.properties.machineType.enumDeprecated #### cloudbuild:v2 The following keys were added: - schemas.PipelineResult.description - schemas.PipelineResult.id - schemas.PipelineResult.properties.description.description - schemas.PipelineResult.properties.description.readOnly - schemas.PipelineResult.properties.description.type - schemas.PipelineResult.properties.name.description - schemas.PipelineResult.properties.name.readOnly - schemas.PipelineResult.properties.name.type - schemas.PipelineResult.properties.type.description - schemas.PipelineResult.properties.type.enum - schemas.PipelineResult.properties.type.enumDescriptions - schemas.PipelineResult.properties.type.readOnly - schemas.PipelineResult.properties.type.type - schemas.PipelineResult.properties.value.$ref - schemas.PipelineResult.properties.value.description - schemas.PipelineResult.properties.value.readOnly - schemas.PipelineResult.type - schemas.PipelineRun.properties.results.description - schemas.PipelineRun.properties.results.items.$ref - schemas.PipelineRun.properties.results.readOnly - schemas.PipelineRun.properties.results.type - schemas.PipelineRun.properties.serviceAccount.deprecated - schemas.PipelineRunResult.description - schemas.PipelineRunResult.id - schemas.PipelineRunResult.properties.name.description - schemas.PipelineRunResult.properties.name.readOnly - schemas.PipelineRunResult.properties.name.type - schemas.PipelineRunResult.properties.value.$ref - schemas.PipelineRunResult.properties.value.description - schemas.PipelineRunResult.properties.value.readOnly - schemas.PipelineRunResult.type - schemas.PipelineSpec.properties.results.description - schemas.PipelineSpec.properties.results.items.$ref - schemas.PipelineSpec.properties.results.readOnly - schemas.PipelineSpec.properties.results.type - schemas.ResultValue.description - schemas.ResultValue.id - schemas.ResultValue.properties.arrayVal.description - schemas.ResultValue.properties.arrayVal.items.type - schemas.ResultValue.properties.arrayVal.type - schemas.ResultValue.properties.objectVal.additionalProperties.type - schemas.ResultValue.properties.objectVal.description - schemas.ResultValue.properties.objectVal.type - schemas.ResultValue.properties.stringVal.description - schemas.ResultValue.properties.stringVal.type - schemas.ResultValue.properties.type.description - schemas.ResultValue.properties.type.enum - schemas.ResultValue.properties.type.enumDescriptions - schemas.ResultValue.properties.type.readOnly - schemas.ResultValue.properties.type.type - schemas.ResultValue.type The following keys were changed: - schemas.PipelineRun.properties.serviceAccount.description
1 parent b7cf2f0 commit 5ed8cc6

File tree

4 files changed

+190
-48
lines changed

4 files changed

+190
-48
lines changed

discovery/cloudbuild-v1.json

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@
23462346
}
23472347
}
23482348
},
2349-
"revision": "20240223",
2349+
"revision": "20240310",
23502350
"rootUrl": "https://cloudbuild.googleapis.com/",
23512351
"schemas": {
23522352
"ApprovalConfig": {
@@ -3089,6 +3089,14 @@
30893089
"E2_HIGHCPU_32",
30903090
"E2_MEDIUM"
30913091
],
3092+
"enumDeprecated": [
3093+
false,
3094+
true,
3095+
true,
3096+
false,
3097+
false,
3098+
false
3099+
],
30923100
"enumDescriptions": [
30933101
"Standard machine type.",
30943102
"Highcpu machine with 8 CPUs.",
@@ -4576,36 +4584,13 @@
45764584
"$ref": "NetworkConfig",
45774585
"description": "Network configuration for the pool."
45784586
},
4579-
"privateServiceConnect": {
4580-
"$ref": "PrivateServiceConnect",
4581-
"description": "Immutable. Private Service Connect(PSC) Network configuration for the pool."
4582-
},
45834587
"workerConfig": {
45844588
"$ref": "WorkerConfig",
45854589
"description": "Machine configuration for the workers in the pool."
45864590
}
45874591
},
45884592
"type": "object"
45894593
},
4590-
"PrivateServiceConnect": {
4591-
"description": "Defines the Private Service Connect network configuration for the pool.",
4592-
"id": "PrivateServiceConnect",
4593-
"properties": {
4594-
"networkAttachment": {
4595-
"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)",
4596-
"type": "string"
4597-
},
4598-
"publicIpAddressDisabled": {
4599-
"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.",
4600-
"type": "boolean"
4601-
},
4602-
"routeAllTraffic": {
4603-
"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.",
4604-
"type": "boolean"
4605-
}
4606-
},
4607-
"type": "object"
4608-
},
46094594
"ProcessAppManifestCallbackOperationMetadata": {
46104595
"description": "Metadata for `ProcessAppManifestCallback` operation.",
46114596
"id": "ProcessAppManifestCallbackOperationMetadata",

discovery/cloudbuild-v2.json

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@
844844
}
845845
}
846846
},
847-
"revision": "20240223",
847+
"revision": "20240310",
848848
"rootUrl": "https://cloudbuild.googleapis.com/",
849849
"schemas": {
850850
"AuditConfig": {
@@ -1885,6 +1885,45 @@
18851885
},
18861886
"type": "object"
18871887
},
1888+
"PipelineResult": {
1889+
"description": "A value produced by a Pipeline.",
1890+
"id": "PipelineResult",
1891+
"properties": {
1892+
"description": {
1893+
"description": "Output only. Description of the result.",
1894+
"readOnly": true,
1895+
"type": "string"
1896+
},
1897+
"name": {
1898+
"description": "Output only. Name of the result.",
1899+
"readOnly": true,
1900+
"type": "string"
1901+
},
1902+
"type": {
1903+
"description": "Output only. The type of data that the result holds.",
1904+
"enum": [
1905+
"TYPE_UNSPECIFIED",
1906+
"STRING",
1907+
"ARRAY",
1908+
"OBJECT"
1909+
],
1910+
"enumDescriptions": [
1911+
"Default enum type; should not be used.",
1912+
"Default",
1913+
"Array type",
1914+
"Object type"
1915+
],
1916+
"readOnly": true,
1917+
"type": "string"
1918+
},
1919+
"value": {
1920+
"$ref": "ResultValue",
1921+
"description": "Output only. Value of the result.",
1922+
"readOnly": true
1923+
}
1924+
},
1925+
"type": "object"
1926+
},
18881927
"PipelineRun": {
18891928
"description": "Message describing PipelineRun object",
18901929
"id": "PipelineRun",
@@ -1988,12 +2027,21 @@
19882027
"description": "Output only. The exact PipelineSpec used to instantiate the run.",
19892028
"readOnly": true
19902029
},
2030+
"results": {
2031+
"description": "Optional. Output only. List of results written out by the pipeline's containers",
2032+
"items": {
2033+
"$ref": "PipelineRunResult"
2034+
},
2035+
"readOnly": true,
2036+
"type": "array"
2037+
},
19912038
"security": {
19922039
"$ref": "Security",
19932040
"description": "Optional. Security configuration."
19942041
},
19952042
"serviceAccount": {
1996-
"description": "Service account used in the Pipeline.",
2043+
"deprecated": true,
2044+
"description": "Service account used in the Pipeline. Deprecated; please use security.service_account instead.",
19972045
"type": "string"
19982046
},
19992047
"skippedTasks": {
@@ -2049,6 +2097,23 @@
20492097
},
20502098
"type": "object"
20512099
},
2100+
"PipelineRunResult": {
2101+
"description": "PipelineRunResult used to describe the results of a pipeline",
2102+
"id": "PipelineRunResult",
2103+
"properties": {
2104+
"name": {
2105+
"description": "Output only. Name of the TaskRun",
2106+
"readOnly": true,
2107+
"type": "string"
2108+
},
2109+
"value": {
2110+
"$ref": "ResultValue",
2111+
"description": "Output only. Value of the result.",
2112+
"readOnly": true
2113+
}
2114+
},
2115+
"type": "object"
2116+
},
20522117
"PipelineSpec": {
20532118
"description": "PipelineSpec defines the desired state of Pipeline.",
20542119
"id": "PipelineSpec",
@@ -2072,6 +2137,14 @@
20722137
},
20732138
"type": "array"
20742139
},
2140+
"results": {
2141+
"description": "Optional. Output only. List of results written out by the pipeline's containers",
2142+
"items": {
2143+
"$ref": "PipelineResult"
2144+
},
2145+
"readOnly": true,
2146+
"type": "array"
2147+
},
20752148
"tasks": {
20762149
"description": "List of Tasks that execute when this Pipeline is run.",
20772150
"items": {
@@ -2325,6 +2398,48 @@
23252398
},
23262399
"type": "object"
23272400
},
2401+
"ResultValue": {
2402+
"description": "ResultValue holds different types of data for a single result.",
2403+
"id": "ResultValue",
2404+
"properties": {
2405+
"arrayVal": {
2406+
"description": "Value of the result if type is array.",
2407+
"items": {
2408+
"type": "string"
2409+
},
2410+
"type": "array"
2411+
},
2412+
"objectVal": {
2413+
"additionalProperties": {
2414+
"type": "string"
2415+
},
2416+
"description": "Value of the result if type is object.",
2417+
"type": "object"
2418+
},
2419+
"stringVal": {
2420+
"description": "Value of the result if type is string.",
2421+
"type": "string"
2422+
},
2423+
"type": {
2424+
"description": "Output only. The type of data that the result holds.",
2425+
"enum": [
2426+
"TYPE_UNSPECIFIED",
2427+
"STRING",
2428+
"ARRAY",
2429+
"OBJECT"
2430+
],
2431+
"enumDescriptions": [
2432+
"Default enum type; should not be used.",
2433+
"Default",
2434+
"Array type",
2435+
"Object type"
2436+
],
2437+
"readOnly": true,
2438+
"type": "string"
2439+
}
2440+
},
2441+
"type": "object"
2442+
},
23282443
"RunWorkflowCustomOperationMetadata": {
23292444
"description": "Represents the custom metadata of the RunWorkflow long-running operation.",
23302445
"id": "RunWorkflowCustomOperationMetadata",

src/apis/cloudbuild/v1.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,32 +1722,11 @@ export namespace cloudbuild_v1 {
17221722
* Network configuration for the pool.
17231723
*/
17241724
networkConfig?: Schema$NetworkConfig;
1725-
/**
1726-
* Immutable. Private Service Connect(PSC) Network configuration for the pool.
1727-
*/
1728-
privateServiceConnect?: Schema$PrivateServiceConnect;
17291725
/**
17301726
* Machine configuration for the workers in the pool.
17311727
*/
17321728
workerConfig?: Schema$WorkerConfig;
17331729
}
1734-
/**
1735-
* Defines the Private Service Connect network configuration for the pool.
1736-
*/
1737-
export interface Schema$PrivateServiceConnect {
1738-
/**
1739-
* 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)
1740-
*/
1741-
networkAttachment?: string | null;
1742-
/**
1743-
* 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.
1744-
*/
1745-
publicIpAddressDisabled?: boolean | null;
1746-
/**
1747-
* 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.
1748-
*/
1749-
routeAllTraffic?: boolean | null;
1750-
}
17511730
/**
17521731
* Metadata for `ProcessAppManifestCallback` operation.
17531732
*/

src/apis/cloudbuild/v2.ts

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,27 @@ export namespace cloudbuild_v2 {
874874
*/
875875
resolver?: string | null;
876876
}
877+
/**
878+
* A value produced by a Pipeline.
879+
*/
880+
export interface Schema$PipelineResult {
881+
/**
882+
* Output only. Description of the result.
883+
*/
884+
description?: string | null;
885+
/**
886+
* Output only. Name of the result.
887+
*/
888+
name?: string | null;
889+
/**
890+
* Output only. The type of data that the result holds.
891+
*/
892+
type?: string | null;
893+
/**
894+
* Output only. Value of the result.
895+
*/
896+
value?: Schema$ResultValue;
897+
}
877898
/**
878899
* Message describing PipelineRun object
879900
*/
@@ -942,12 +963,16 @@ export namespace cloudbuild_v2 {
942963
* Output only. The exact PipelineSpec used to instantiate the run.
943964
*/
944965
resolvedPipelineSpec?: Schema$PipelineSpec;
966+
/**
967+
* Optional. Output only. List of results written out by the pipeline's containers
968+
*/
969+
results?: Schema$PipelineRunResult[];
945970
/**
946971
* Optional. Security configuration.
947972
*/
948973
security?: Schema$Security;
949974
/**
950-
* Service account used in the Pipeline.
975+
* Service account used in the Pipeline. Deprecated; please use security.service_account instead.
951976
*/
952977
serviceAccount?: string | null;
953978
/**
@@ -987,6 +1012,19 @@ export namespace cloudbuild_v2 {
9871012
*/
9881013
workspaces?: Schema$WorkspaceBinding[];
9891014
}
1015+
/**
1016+
* PipelineRunResult used to describe the results of a pipeline
1017+
*/
1018+
export interface Schema$PipelineRunResult {
1019+
/**
1020+
* Output only. Name of the TaskRun
1021+
*/
1022+
name?: string | null;
1023+
/**
1024+
* Output only. Value of the result.
1025+
*/
1026+
value?: Schema$ResultValue;
1027+
}
9901028
/**
9911029
* PipelineSpec defines the desired state of Pipeline.
9921030
*/
@@ -1003,6 +1041,10 @@ export namespace cloudbuild_v2 {
10031041
* List of parameters.
10041042
*/
10051043
params?: Schema$ParamSpec[];
1044+
/**
1045+
* Optional. Output only. List of results written out by the pipeline's containers
1046+
*/
1047+
results?: Schema$PipelineResult[];
10061048
/**
10071049
* List of Tasks that execute when this Pipeline is run.
10081050
*/
@@ -1163,6 +1205,27 @@ export namespace cloudbuild_v2 {
11631205
*/
11641206
webhookId?: string | null;
11651207
}
1208+
/**
1209+
* ResultValue holds different types of data for a single result.
1210+
*/
1211+
export interface Schema$ResultValue {
1212+
/**
1213+
* Value of the result if type is array.
1214+
*/
1215+
arrayVal?: string[] | null;
1216+
/**
1217+
* Value of the result if type is object.
1218+
*/
1219+
objectVal?: {[key: string]: string} | null;
1220+
/**
1221+
* Value of the result if type is string.
1222+
*/
1223+
stringVal?: string | null;
1224+
/**
1225+
* Output only. The type of data that the result holds.
1226+
*/
1227+
type?: string | null;
1228+
}
11661229
/**
11671230
* Represents the custom metadata of the RunWorkflow long-running operation.
11681231
*/

0 commit comments

Comments
 (0)