Skip to content

Commit 4539f52

Browse files
yoshi-automationsofisl
authored andcommitted
feat(sts): update the API
#### sts:v1beta The following keys were added: - endpoints #### sts:v1 The following keys were added: - endpoints The following keys were changed: - schemas.GoogleIdentityStsV1ExchangeTokenResponse.properties.expires_in.description
1 parent e19e28f commit 4539f52

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

‎discovery/sts-v1.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"description": "The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.",
77
"discoveryVersion": "v1",
88
"documentationLink": "http://cloud.google.com/iam/docs/workload-identity-federation",
9+
"endpoints": [
10+
{
11+
"description": "Regional Endpoint",
12+
"endpointUrl": "https://sts.us-east7.rep.googleapis.com/",
13+
"location": "us-east7"
14+
}
15+
],
916
"fullyEncodeReservedExpansion": true,
1017
"icons": {
1118
"x16": "http://www.google.com/images/icons/product/search-16.gif",
@@ -116,7 +123,7 @@
116123
}
117124
}
118125
},
119-
"revision": "20240904",
126+
"revision": "20241106",
120127
"rootUrl": "https://sts.googleapis.com/",
121128
"schemas": {
122129
"GoogleIamV1Binding": {
@@ -226,7 +233,7 @@
226233
"type": "string"
227234
},
228235
"expires_in": {
229-
"description": "The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the `subject_token`.",
236+
"description": "The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a a short-lived access token for a Cloud Identity or Google Workspace user account. In this case, the access token has the same expiration time as the `subject_token`.",
230237
"format": "int32",
231238
"type": "integer"
232239
},

‎discovery/sts-v1beta.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"description": "The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.",
77
"discoveryVersion": "v1",
88
"documentationLink": "http://cloud.google.com/iam/docs/workload-identity-federation",
9+
"endpoints": [
10+
{
11+
"description": "Regional Endpoint",
12+
"endpointUrl": "https://sts.us-east7.rep.googleapis.com/",
13+
"location": "us-east7"
14+
}
15+
],
916
"fullyEncodeReservedExpansion": true,
1017
"icons": {
1118
"x16": "http://www.google.com/images/icons/product/search-16.gif",
@@ -116,7 +123,7 @@
116123
}
117124
}
118125
},
119-
"revision": "20240425",
126+
"revision": "20241106",
120127
"rootUrl": "https://sts.googleapis.com/",
121128
"schemas": {
122129
"GoogleIamV1Binding": {

‎src/apis/sts/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export namespace sts_v1 {
252252
*/
253253
access_token?: string | null;
254254
/**
255-
* The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the `subject_token`.
255+
* The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a a short-lived access token for a Cloud Identity or Google Workspace user account. In this case, the access token has the same expiration time as the `subject_token`.
256256
*/
257257
expires_in?: number | null;
258258
/**

0 commit comments

Comments
 (0)