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
9 changes: 5 additions & 4 deletions packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import randomName from '@scaleway/random-name'
import {
isJSONObject,
resolveOneOf,
Expand Down Expand Up @@ -381,7 +382,7 @@ export const marshalCreateApplicationRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
description: request.description,
name: request.name,
name: request.name || randomName('app'),
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
})

Expand All @@ -390,7 +391,7 @@ export const marshalCreateGroupRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
description: request.description,
name: request.name,
name: request.name || randomName('grp'),
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
})

Expand All @@ -399,7 +400,7 @@ export const marshalCreatePolicyRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
description: request.description,
name: request.name,
name: request.name || randomName('pol'),
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
rules: request.rules
? request.rules.map(elt => marshalRuleSpecs(elt, defaults))
Expand Down Expand Up @@ -428,7 +429,7 @@ export const marshalCreateSSHKeyRequest = (
request: CreateSSHKeyRequest,
defaults: DefaultValues,
): Record<string, unknown> => ({
name: request.name,
name: request.name || randomName('key'),
project_id: request.projectId ?? defaults.defaultProjectId,
public_key: request.publicKey,
})
Expand Down
8 changes: 4 additions & 4 deletions packages/clients/src/api/iam/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ export type ListSSHKeysRequest = {

export type CreateSSHKeyRequest = {
/** The name of the SSH key. Max length is 1000 */
name: string
name?: string
/**
* SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa
* keys with NIST curves are supported. Max length is 65000
Expand Down Expand Up @@ -455,7 +455,7 @@ export type ListApplicationsRequest = {

export type CreateApplicationRequest = {
/** Name of application to create (max length is 64 chars) */
name: string
name?: string
/** ID of organization */
organizationId?: string
/** Description of application (max length is 200 chars) */
Expand Down Expand Up @@ -507,7 +507,7 @@ export type CreateGroupRequest = {
* Name of the group to create (max length is 64 chars). MUST be unique inside
* an organization
*/
name: string
name?: string
/** Description of the group to create (max length is 200 chars) */
description: string
}
Expand Down Expand Up @@ -599,7 +599,7 @@ export type ListPoliciesRequest = {

export type CreatePolicyRequest = {
/** Name of policy to create (max length is 64 chars) */
name: string
name?: string
/** Description of policy to create (max length is 200 chars) */
description: string
/** ID of organization */
Expand Down