Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iam): add deletable and managed fields #1476

Merged
merged 2 commits into from
Oct 9, 2024
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
8 changes: 8 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const unmarshalAPIKey = (data: unknown): APIKey => {
description: data.description,
editable: data.editable,
expiresAt: unmarshalDate(data.expires_at),
managed: data.managed,
secretKey: data.secret_key,
updatedAt: unmarshalDate(data.updated_at),
userId: data.user_id,
Expand All @@ -105,9 +106,11 @@ export const unmarshalApplication = (data: unknown): Application => {

return {
createdAt: unmarshalDate(data.created_at),
deletable: data.deletable,
description: data.description,
editable: data.editable,
id: data.id,
managed: data.managed,
name: data.name,
nbApiKeys: data.nb_api_keys,
organizationId: data.organization_id,
Expand All @@ -126,8 +129,11 @@ export const unmarshalGroup = (data: unknown): Group => {
return {
applicationIds: data.application_ids,
createdAt: unmarshalDate(data.created_at),
deletable: data.deletable,
description: data.description,
editable: data.editable,
id: data.id,
managed: data.managed,
name: data.name,
organizationId: data.organization_id,
tags: data.tags,
Expand Down Expand Up @@ -166,10 +172,12 @@ export const unmarshalPolicy = (data: unknown): Policy => {
return {
applicationId: data.application_id,
createdAt: unmarshalDate(data.created_at),
deletable: data.deletable,
description: data.description,
editable: data.editable,
groupId: data.group_id,
id: data.id,
managed: data.managed,
name: data.name,
nbPermissionSets: data.nb_permission_sets,
nbRules: data.nb_rules,
Expand Down
16 changes: 16 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export interface APIKey {
defaultProjectId: string
/** Defines whether or not the API key is editable. */
editable: boolean
/** Defines whether or not the API key is managed. */
managed: boolean
/** IP address of the device that created the API key. */
creationIp: string
}
Expand All @@ -188,6 +190,10 @@ export interface Application {
organizationId: string
/** Defines whether or not the application is editable. */
editable: boolean
/** Defines whether or not the application is deletable. */
deletable: boolean
/** Defines whether or not the application is managed. */
managed: boolean
/** Number of API keys attributed to the application. */
nbApiKeys: number
/** Tags associated with the user. */
Expand All @@ -213,6 +219,12 @@ export interface Group {
applicationIds: string[]
/** Tags associated to the group. */
tags: string[]
/** Defines whether or not the group is editable. */
editable: boolean
/** Defines whether or not the group is deletable. */
deletable: boolean
/** Defines whether or not the group is managed. */
managed: boolean
}

export interface Log {
Expand Down Expand Up @@ -264,6 +276,10 @@ export interface Policy {
updatedAt?: Date
/** Defines whether or not a policy is editable. */
editable: boolean
/** Defines whether or not a policy is deletable. */
deletable: boolean
/** Defines whether or not a policy is managed. */
managed: boolean
/** Number of rules of the policy. */
nbRules: number
/** Number of policy scopes. */
Expand Down
Loading