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
2 changes: 2 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ const unmarshalRule = (data: unknown): Rule => {

return {
accountRootUserId: data.account_root_user_id,
condition: data.condition,
id: data.id,
organizationId: data.organization_id,
permissionSetNames: data.permission_set_names,
Expand Down Expand Up @@ -531,6 +532,7 @@ const marshalRuleSpecs = (
request: RuleSpecs,
defaults: DefaultValues,
): Record<string, unknown> => ({
condition: request.condition,
permission_set_names: request.permissionSetNames,
...resolveOneOf<unknown[] | string>([
{ param: 'project_ids', value: request.projectIds },
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 @@ -92,6 +92,8 @@ export type UserType = 'unknown_type' | 'guest' | 'owner'
export interface RuleSpecs {
/** Names of permission sets bound to the rule. */
permissionSetNames?: string[]
/** Condition expression to evaluate. */
condition: string
/**
* List of Project IDs the rule is scoped to.
*
Expand Down Expand Up @@ -319,6 +321,8 @@ export interface Rule {
permissionSetNames?: string[]
/** Permission_set_names have the same scope_type. */
permissionSetsScopeType: PermissionSetScopeType
/** Condition expression to evaluate. */
condition: string
/**
* List of Project IDs the rule is scoped to.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ export const ListUsersRequest = {
},
}

export const RuleSpecs = {
condition: {
maxLength: 255,
},
}

export const UpdateAPIKeyRequest = {
description: {
maxLength: 200,
Expand Down