Skip to content

Commit 63176fb

Browse files
yoshi-automationsofisl
authored andcommitted
feat(config): update the API
#### config:v1 The following keys were added: - schemas.TerraformError.properties.error.readOnly The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.cancel.description - resources.projects.resources.locations.resources.terraformVersions.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.terraformVersions.methods.list.parameters.pageToken.description - schemas.Deployment.properties.serviceAccount.description - schemas.ListPreviewsResponse.properties.previews.description - schemas.ListResourcesResponse.properties.resources.description - schemas.OperationMetadata.properties.requestedCancellation.description - schemas.Preview.properties.serviceAccount.description - schemas.TerraformBlueprint.properties.inputValues.description - schemas.TerraformError.properties.error.description - schemas.TerraformVariable.properties.inputValue.description
1 parent 5a1e08c commit 63176fb

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

‎discovery/config-v1.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@
816816
"operations": {
817817
"methods": {
818818
"cancel": {
819-
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
819+
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
820820
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
821821
"httpMethod": "POST",
822822
"id": "config.projects.locations.operations.cancel",
@@ -1154,13 +1154,13 @@
11541154
"type": "string"
11551155
},
11561156
"pageSize": {
1157-
"description": "Optional. When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.",
1157+
"description": "Optional. When requesting a page of terraform versions, 'page_size' specifies number of terraform versions to return. If unspecified, at most 500 will be returned. The maximum value is 1000.",
11581158
"format": "int32",
11591159
"location": "query",
11601160
"type": "integer"
11611161
},
11621162
"pageToken": {
1163-
"description": "Optional. Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the resources.",
1163+
"description": "Optional. Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the terraform versions.",
11641164
"location": "query",
11651165
"type": "string"
11661166
},
@@ -1187,7 +1187,7 @@
11871187
}
11881188
}
11891189
},
1190-
"revision": "20240710",
1190+
"revision": "20250108",
11911191
"rootUrl": "https://config.googleapis.com/",
11921192
"schemas": {
11931193
"ApplyResults": {
@@ -1422,7 +1422,7 @@
14221422
"type": "string"
14231423
},
14241424
"serviceAccount": {
1425-
"description": "Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`",
1425+
"description": "Required. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`",
14261426
"type": "string"
14271427
},
14281428
"state": {
@@ -1708,7 +1708,7 @@
17081708
"type": "string"
17091709
},
17101710
"previews": {
1711-
"description": "List of Previewss.",
1711+
"description": "List of Previews.",
17121712
"items": {
17131713
"$ref": "Preview"
17141714
},
@@ -1733,7 +1733,7 @@
17331733
"type": "string"
17341734
},
17351735
"resources": {
1736-
"description": "List of Resourcess.",
1736+
"description": "List of Resources.",
17371737
"items": {
17381738
"$ref": "Resource"
17391739
},
@@ -1939,7 +1939,7 @@
19391939
"readOnly": true
19401940
},
19411941
"requestedCancellation": {
1942-
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
1942+
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
19431943
"readOnly": true,
19441944
"type": "boolean"
19451945
},
@@ -2091,7 +2091,7 @@
20912091
"type": "string"
20922092
},
20932093
"serviceAccount": {
2094-
"description": "Optional. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`",
2094+
"description": "Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`",
20952095
"type": "string"
20962096
},
20972097
"state": {
@@ -2556,7 +2556,7 @@
25562556
"additionalProperties": {
25572557
"$ref": "TerraformVariable"
25582558
},
2559-
"description": "Input variable values for the Terraform blueprint.",
2559+
"description": "Optional. Input variable values for the Terraform blueprint.",
25602560
"type": "object"
25612561
}
25622562
},
@@ -2568,7 +2568,8 @@
25682568
"properties": {
25692569
"error": {
25702570
"$ref": "Status",
2571-
"description": "Original error response from underlying Google API, if available."
2571+
"description": "Output only. Original error response from underlying Google API, if available.",
2572+
"readOnly": true
25722573
},
25732574
"errorDescription": {
25742575
"description": "A human-readable error description.",
@@ -2606,7 +2607,7 @@
26062607
"id": "TerraformVariable",
26072608
"properties": {
26082609
"inputValue": {
2609-
"description": "Input variable value.",
2610+
"description": "Optional. Input variable value.",
26102611
"type": "any"
26112612
}
26122613
},

‎src/apis/config/v1.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export namespace config_v1 {
258258
*/
259259
quotaValidation?: string | null;
260260
/**
261-
* Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID\}/serviceAccounts/{serviceAccount\}`
261+
* Required. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID\}/serviceAccounts/{serviceAccount\}`
262262
*/
263263
serviceAccount?: string | null;
264264
/**
@@ -441,7 +441,7 @@ export namespace config_v1 {
441441
*/
442442
nextPageToken?: string | null;
443443
/**
444-
* List of Previewss.
444+
* List of Previews.
445445
*/
446446
previews?: Schema$Preview[];
447447
/**
@@ -458,7 +458,7 @@ export namespace config_v1 {
458458
*/
459459
nextPageToken?: string | null;
460460
/**
461-
* List of Resourcess.
461+
* List of Resources.
462462
*/
463463
resources?: Schema$Resource[];
464464
/**
@@ -608,7 +608,7 @@ export namespace config_v1 {
608608
*/
609609
previewMetadata?: Schema$PreviewOperationMetadata;
610610
/**
611-
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
611+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
612612
*/
613613
requestedCancellation?: boolean | null;
614614
/**
@@ -702,7 +702,7 @@ export namespace config_v1 {
702702
*/
703703
previewMode?: string | null;
704704
/**
705-
* Optional. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID\}/serviceAccounts/{serviceAccount\}`
705+
* Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID\}/serviceAccounts/{serviceAccount\}`
706706
*/
707707
serviceAccount?: string | null;
708708
/**
@@ -965,7 +965,7 @@ export namespace config_v1 {
965965
*/
966966
gitSource?: Schema$GitSource;
967967
/**
968-
* Input variable values for the Terraform blueprint.
968+
* Optional. Input variable values for the Terraform blueprint.
969969
*/
970970
inputValues?: {[key: string]: Schema$TerraformVariable} | null;
971971
}
@@ -974,7 +974,7 @@ export namespace config_v1 {
974974
*/
975975
export interface Schema$TerraformError {
976976
/**
977-
* Original error response from underlying Google API, if available.
977+
* Output only. Original error response from underlying Google API, if available.
978978
*/
979979
error?: Schema$Status;
980980
/**
@@ -1008,7 +1008,7 @@ export namespace config_v1 {
10081008
*/
10091009
export interface Schema$TerraformVariable {
10101010
/**
1011-
* Input variable value.
1011+
* Optional. Input variable value.
10121012
*/
10131013
inputValue?: any | null;
10141014
}
@@ -3287,7 +3287,7 @@ export namespace config_v1 {
32873287
}
32883288

32893289
/**
3290-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
3290+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
32913291
*
32923292
* @param params - Parameters for request
32933293
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4416,11 +4416,11 @@ export namespace config_v1 {
44164416
*/
44174417
orderBy?: string;
44184418
/**
4419-
* Optional. When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.
4419+
* Optional. When requesting a page of terraform versions, 'page_size' specifies number of terraform versions to return. If unspecified, at most 500 will be returned. The maximum value is 1000.
44204420
*/
44214421
pageSize?: number;
44224422
/**
4423-
* Optional. Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the resources.
4423+
* Optional. Token returned by previous call to 'ListTerraformVersions' which specifies the position in the list from where to continue listing the terraform versions.
44244424
*/
44254425
pageToken?: string;
44264426
/**

0 commit comments

Comments
 (0)