Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import type {
APIKey,
AddGroupMemberRequest,
Application,
ClonePolicyRequest,
CreateAPIKeyRequest,
CreateApplicationRequest,
CreateGroupRequest,
Expand Down Expand Up @@ -665,6 +666,20 @@ export class IamV1Alpha1GenAPI extends API {
)}`,
})

clonePolicy = (request: Readonly<ClonePolicyRequest>) =>
this.client.fetch<Policy>(
{
body: '{}',
headers: jsonContentHeaders,
method: 'POST',
path: `/iam/v1alpha1/policies/${validatePathParam(
'policyId',
request.policyId,
)}/clone`,
},
unmarshalPolicy,
)

/**
* Set rules of an existing policy
*
Expand Down
4 changes: 4 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,10 @@ export type DeletePolicyRequest = {
policyId: string
}

export type ClonePolicyRequest = {
policyId: string
}

export type SetRulesRequest = {
/** Id of policy to update */
policyId: string
Expand Down