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
18 changes: 18 additions & 0 deletions packages_generated/iam/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import {
unmarshalQuotum,
unmarshalSaml,
unmarshalSamlCertificate,
unmarshalSamlInformation,
unmarshalSetRulesResponse,
unmarshalSSHKey,
unmarshalUser,
Expand Down Expand Up @@ -106,6 +107,7 @@ import type {
GetOrganizationSecuritySettingsRequest,
GetPolicyRequest,
GetQuotumRequest,
GetSamlInformationRequest,
GetSSHKeyRequest,
GetUserConnectionsRequest,
GetUserConnectionsResponse,
Expand Down Expand Up @@ -153,6 +155,7 @@ import type {
RemoveUserConnectionRequest,
Saml,
SamlCertificate,
SamlInformation,
SetGroupMembersRequest,
SetOrganizationAliasRequest,
SetRulesRequest,
Expand Down Expand Up @@ -1518,4 +1521,19 @@ export class API extends ParentAPI {
method: 'DELETE',
path: `/iam/v1alpha1/saml-certificates/${validatePathParam('certificateId', request.certificateId)}`,
})

/**
* Get SAML information.
*
* @param request - The request {@link GetSamlInformationRequest}
* @returns A Promise of SamlInformation
*/
getSamlInformation = (request: Readonly<GetSamlInformationRequest> = {}) =>
this.client.fetch<SamlInformation>(
{
method: 'GET',
path: `/iam/v1alpha1/saml-information`,
},
unmarshalSamlInformation,
)
}
2 changes: 2 additions & 0 deletions packages_generated/iam/src/v1alpha1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export type {
GetOrganizationSecuritySettingsRequest,
GetPolicyRequest,
GetQuotumRequest,
GetSamlInformationRequest,
GetSSHKeyRequest,
GetUserConnectionsRequest,
GetUserConnectionsResponse,
Expand Down Expand Up @@ -113,6 +114,7 @@ export type {
SamlCertificate,
SamlCertificateOrigin,
SamlCertificateType,
SamlInformation,
SetGroupMembersRequest,
SetOrganizationAliasRequest,
SetRulesRequest,
Expand Down
14 changes: 14 additions & 0 deletions packages_generated/iam/src/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import type {
RuleSpecs,
Saml,
SamlCertificate,
SamlInformation,
SetGroupMembersRequest,
SetOrganizationAliasRequest,
SetRulesRequest,
Expand Down Expand Up @@ -711,6 +712,19 @@ export const unmarshalSaml = (data: unknown): Saml => {
} as Saml
}

export const unmarshalSamlInformation = (data: unknown): SamlInformation => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'SamlInformation' failed as data isn't a dictionary.`,
)
}

return {
assertionConsumerServiceUrl: data.assertion_consumer_service_url,
entityId: data.entity_id,
} as SamlInformation
}

export const unmarshalSetRulesResponse = (data: unknown): SetRulesResponse => {
if (!isJSONObject(data)) {
throw new TypeError(
Expand Down
13 changes: 13 additions & 0 deletions packages_generated/iam/src/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,8 @@ export type GetSSHKeyRequest = {
sshKeyId: string
}

export type GetSamlInformationRequest = Record<string, never>

export type GetUserConnectionsRequest = {
/**
* ID of the user to list connections for.
Expand Down Expand Up @@ -1842,6 +1844,17 @@ export interface Saml {
singleSignOnUrl: string
}

export interface SamlInformation {
/**
* Entity ID.
*/
entityId: string
/**
* SAML Assertion Consumer Service url.
*/
assertionConsumerServiceUrl: string
}

export type SetGroupMembersRequest = {
groupId: string
userIds: string[]
Expand Down
Loading