Skip to content

Commit 1d22403

Browse files
authored
Merge branch 'main' into v1.6197.0
2 parents 33b222a + 750a7c0 commit 1d22403

File tree

7 files changed

+180
-16
lines changed

7 files changed

+180
-16
lines changed

packages/clients/src/api/audit_trail/v1alpha1/marshalling.gen.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ export const unmarshalResource = (data: unknown): Resource => {
131131
createdAt: unmarshalDate(data.created_at),
132132
deletedAt: unmarshalDate(data.deleted_at),
133133
id: data.id,
134+
keyManagerKeyInfo: data.key_manager_key_info
135+
? unmarshalKeyManagerKeyInfo(data.key_manager_key_info)
136+
: undefined,
134137
keymKeyInfo: data.keym_key_info
135138
? unmarshalKeyManagerKeyInfo(data.keym_key_info)
136139
: undefined,
@@ -153,6 +156,14 @@ export const unmarshalResource = (data: unknown): Resource => {
153156
secmSecretVersionInfo: data.secm_secret_version_info
154157
? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info)
155158
: undefined,
159+
secretManagerSecretInfo: data.secret_manager_secret_info
160+
? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info)
161+
: undefined,
162+
secretManagerVersionInfo: data.secret_manager_version_info
163+
? unmarshalSecretManagerSecretVersionInfo(
164+
data.secret_manager_version_info,
165+
)
166+
: undefined,
156167
type: data.type,
157168
updatedAt: unmarshalDate(data.updated_at),
158169
} as Resource

packages/clients/src/api/audit_trail/v1alpha1/types.gen.ts

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export type ResourceType =
1919
| 'iam_policy'
2020
| 'iam_api_key'
2121
| 'iam_ssh_key'
22+
| 'secret_manager_secret'
23+
| 'secret_manager_version'
24+
| 'key_manager_key'
2225

2326
export interface KeyManagerKeyInfo {}
2427

@@ -56,47 +59,81 @@ export interface Resource {
5659
deletedAt?: Date
5760
name?: string
5861
/**
59-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
60-
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
61-
* 'keymKeyInfo' could be set.
62+
* @deprecated
63+
*
64+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
65+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
66+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
67+
* 'keyManagerKeyInfo' could be set.
6268
*/
6369
secmSecretInfo?: SecretManagerSecretInfo
6470
/**
65-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
66-
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
67-
* 'keymKeyInfo' could be set.
71+
* @deprecated
72+
*
73+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
74+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
75+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
76+
* 'keyManagerKeyInfo' could be set.
6877
*/
6978
secmSecretVersionInfo?: SecretManagerSecretVersionInfo
7079
/**
7180
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
7281
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
73-
* 'keymKeyInfo' could be set.
82+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
83+
* 'keyManagerKeyInfo' could be set.
7484
*/
7585
kubeClusterInfo?: KubernetesClusterInfo
7686
/**
7787
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
7888
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
79-
* 'keymKeyInfo' could be set.
89+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
90+
* 'keyManagerKeyInfo' could be set.
8091
*/
8192
kubePoolInfo?: KubernetesPoolInfo
8293
/**
8394
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
8495
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
85-
* 'keymKeyInfo' could be set.
96+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
97+
* 'keyManagerKeyInfo' could be set.
8698
*/
8799
kubeNodeInfo?: KubernetesNodeInfo
88100
/**
89101
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
90102
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
91-
* 'keymKeyInfo' could be set.
103+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
104+
* 'keyManagerKeyInfo' could be set.
92105
*/
93106
kubeAclInfo?: KubernetesACLInfo
107+
/**
108+
* @deprecated
109+
*
110+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
111+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
112+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
113+
* 'keyManagerKeyInfo' could be set.
114+
*/
115+
keymKeyInfo?: KeyManagerKeyInfo
94116
/**
95117
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
96118
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
97-
* 'keymKeyInfo' could be set.
119+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
120+
* 'keyManagerKeyInfo' could be set.
98121
*/
99-
keymKeyInfo?: KeyManagerKeyInfo
122+
secretManagerSecretInfo?: SecretManagerSecretInfo
123+
/**
124+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
125+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
126+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
127+
* 'keyManagerKeyInfo' could be set.
128+
*/
129+
secretManagerVersionInfo?: SecretManagerSecretVersionInfo
130+
/**
131+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
132+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
133+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
134+
* 'keyManagerKeyInfo' could be set.
135+
*/
136+
keyManagerKeyInfo?: KeyManagerKeyInfo
100137
}
101138

102139
export interface ProductService {

packages/clients/src/api/iam/v1alpha1/api.gen.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import {
4646
unmarshalListQuotaResponse,
4747
unmarshalListRulesResponse,
4848
unmarshalListSSHKeysResponse,
49+
unmarshalListUserConnectionsResponse,
4950
unmarshalListUsersResponse,
5051
unmarshalLog,
5152
unmarshalMFAOTP,
@@ -114,6 +115,8 @@ import type {
114115
ListRulesResponse,
115116
ListSSHKeysRequest,
116117
ListSSHKeysResponse,
118+
ListUserConnectionsRequest,
119+
ListUserConnectionsResponse,
117120
ListUsersRequest,
118121
ListUsersResponse,
119122
LockUserRequest,
@@ -509,6 +512,15 @@ export class API extends ParentAPI {
509512
unmarshalListGracePeriodsResponse,
510513
)
511514

515+
listUserConnections = (request: Readonly<ListUserConnectionsRequest>) =>
516+
this.client.fetch<ListUserConnectionsResponse>(
517+
{
518+
method: 'GET',
519+
path: `/iam/v1alpha1/users/${validatePathParam('userId', request.userId)}/connections`,
520+
},
521+
unmarshalListUserConnectionsResponse,
522+
)
523+
512524
protected pageOfListApplications = (
513525
request: Readonly<ListApplicationsRequest> = {},
514526
) =>

packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ import type {
3636
ListQuotaResponse,
3737
ListRulesResponse,
3838
ListSSHKeysResponse,
39+
ListUserConnectionsResponse,
40+
ListUserConnectionsResponseConnection,
41+
ListUserConnectionsResponseConnectionConnectedOrganization,
42+
ListUserConnectionsResponseConnectionConnectedUser,
3943
ListUsersResponse,
4044
Log,
4145
MFAOTP,
@@ -513,6 +517,76 @@ export const unmarshalListSSHKeysResponse = (
513517
} as ListSSHKeysResponse
514518
}
515519

520+
const unmarshalListUserConnectionsResponseConnectionConnectedOrganization = (
521+
data: unknown,
522+
): ListUserConnectionsResponseConnectionConnectedOrganization => {
523+
if (!isJSONObject(data)) {
524+
throw new TypeError(
525+
`Unmarshalling the type 'ListUserConnectionsResponseConnectionConnectedOrganization' failed as data isn't a dictionary.`,
526+
)
527+
}
528+
529+
return {
530+
id: data.id,
531+
locked: data.locked,
532+
name: data.name,
533+
} as ListUserConnectionsResponseConnectionConnectedOrganization
534+
}
535+
536+
const unmarshalListUserConnectionsResponseConnectionConnectedUser = (
537+
data: unknown,
538+
): ListUserConnectionsResponseConnectionConnectedUser => {
539+
if (!isJSONObject(data)) {
540+
throw new TypeError(
541+
`Unmarshalling the type 'ListUserConnectionsResponseConnectionConnectedUser' failed as data isn't a dictionary.`,
542+
)
543+
}
544+
545+
return {
546+
id: data.id,
547+
type: data.type,
548+
username: data.username,
549+
} as ListUserConnectionsResponseConnectionConnectedUser
550+
}
551+
552+
const unmarshalListUserConnectionsResponseConnection = (
553+
data: unknown,
554+
): ListUserConnectionsResponseConnection => {
555+
if (!isJSONObject(data)) {
556+
throw new TypeError(
557+
`Unmarshalling the type 'ListUserConnectionsResponseConnection' failed as data isn't a dictionary.`,
558+
)
559+
}
560+
561+
return {
562+
organization: data.organization
563+
? unmarshalListUserConnectionsResponseConnectionConnectedOrganization(
564+
data.organization,
565+
)
566+
: undefined,
567+
user: data.user
568+
? unmarshalListUserConnectionsResponseConnectionConnectedUser(data.user)
569+
: undefined,
570+
} as ListUserConnectionsResponseConnection
571+
}
572+
573+
export const unmarshalListUserConnectionsResponse = (
574+
data: unknown,
575+
): ListUserConnectionsResponse => {
576+
if (!isJSONObject(data)) {
577+
throw new TypeError(
578+
`Unmarshalling the type 'ListUserConnectionsResponse' failed as data isn't a dictionary.`,
579+
)
580+
}
581+
582+
return {
583+
connections: unmarshalArrayOfObject(
584+
data.connections,
585+
unmarshalListUserConnectionsResponseConnection,
586+
),
587+
} as ListUserConnectionsResponse
588+
}
589+
516590
export const unmarshalListUsersResponse = (
517591
data: unknown,
518592
): ListUsersResponse => {

packages/clients/src/api/iam/v1alpha1/types.gen.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ export interface QuotumLimit {
135135
unlimited?: boolean
136136
}
137137

138+
export interface ListUserConnectionsResponseConnectionConnectedOrganization {
139+
id: string
140+
name: string
141+
locked: boolean
142+
}
143+
144+
export interface ListUserConnectionsResponseConnectionConnectedUser {
145+
id: string
146+
username: string
147+
type: UserType
148+
}
149+
138150
export interface JWT {
139151
/** JWT ID. */
140152
jti: string
@@ -463,6 +475,13 @@ export interface SSHKey {
463475
disabled: boolean
464476
}
465477

478+
export interface ListUserConnectionsResponseConnection {
479+
/** Information about the connected organization. */
480+
organization?: ListUserConnectionsResponseConnectionConnectedOrganization
481+
/** Information about the connected user. */
482+
user?: ListUserConnectionsResponseConnectionConnectedUser
483+
}
484+
466485
export interface User {
467486
/** ID of user. */
468487
id: string
@@ -1022,6 +1041,16 @@ export interface ListSSHKeysResponse {
10221041
totalCount: number
10231042
}
10241043

1044+
export type ListUserConnectionsRequest = {
1045+
/** ID of the user to list connections for. */
1046+
userId: string
1047+
}
1048+
1049+
export interface ListUserConnectionsResponse {
1050+
/** List of connections. */
1051+
connections: ListUserConnectionsResponseConnection[]
1052+
}
1053+
10251054
export type ListUsersRequest = {
10261055
/** Criteria for sorting results. */
10271056
orderBy?: ListUsersRequestOrderBy

packages/clients/src/api/secret/v1beta1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class API extends ParentAPI {
143143
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}`,
144144
})
145145

146-
protected pageOfListSecrets = (request: Readonly<ListSecretsRequest> = {}) =>
146+
protected pageOfListSecrets = (request: Readonly<ListSecretsRequest>) =>
147147
this.client.fetch<ListSecretsResponse>(
148148
{
149149
method: 'GET',
@@ -176,7 +176,7 @@ export class API extends ParentAPI {
176176
* @param request - The request {@link ListSecretsRequest}
177177
* @returns A Promise of ListSecretsResponse
178178
*/
179-
listSecrets = (request: Readonly<ListSecretsRequest> = {}) =>
179+
listSecrets = (request: Readonly<ListSecretsRequest>) =>
180180
enrichForPagination('secrets', this.pageOfListSecrets, request)
181181

182182
/**

packages/clients/src/api/secret/v1beta1/types.gen.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,10 @@ export type ListSecretsRequest = {
508508
type?: SecretType
509509
/**
510510
* Filter by whether the secret was scheduled for deletion / not scheduled for
511-
* deletion (optional).
511+
* deletion. By default, it will display only not scheduled for deletion
512+
* secrets.
512513
*/
513-
scheduledForDeletion?: boolean
514+
scheduledForDeletion: boolean
514515
}
515516

516517
export interface ListSecretsResponse {

0 commit comments

Comments
 (0)