From c174a732f4f1838ab6ca822b63cb63fbda929fcd Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 5 Dec 2025 11:16:15 +0000 Subject: [PATCH] feat: update generated APIs --- ...est-all-usage-iam-scim-tokens-usage.golden | 15 ++++++++++ .../test-all-usage-iam-scim-usage.golden | 15 ++++++++++ .../testdata/test-all-usage-iam-usage.golden | 2 ++ docs/commands/iam.md | 30 +++++++++++++++++++ go.mod | 2 +- go.sum | 4 +-- internal/namespaces/iam/v1alpha1/iam_cli.go | 20 +++++++++++++ 7 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 cmd/scw/testdata/test-all-usage-iam-scim-tokens-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-iam-scim-usage.golden diff --git a/cmd/scw/testdata/test-all-usage-iam-scim-tokens-usage.golden b/cmd/scw/testdata/test-all-usage-iam-scim-tokens-usage.golden new file mode 100644 index 0000000000..ad2217fcd5 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-iam-scim-tokens-usage.golden @@ -0,0 +1,15 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +SCIM tokens management commands. + +USAGE: + scw iam scim-tokens + +FLAGS: + -h, --help help for scim-tokens + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-iam-scim-usage.golden b/cmd/scw/testdata/test-all-usage-iam-scim-usage.golden new file mode 100644 index 0000000000..2003fc3d79 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-iam-scim-usage.golden @@ -0,0 +1,15 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +SCIM management commands. + +USAGE: + scw iam scim + +FLAGS: + -h, --help help for scim + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-iam-usage.golden b/cmd/scw/testdata/test-all-usage-iam-usage.golden index 373cf0649a..401125fbb6 100644 --- a/cmd/scw/testdata/test-all-usage-iam-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-usage.golden @@ -17,6 +17,8 @@ AVAILABLE COMMANDS: rule Rules management commands saml SAML management commands saml-certificates SAML Certificates management commands + scim SCIM management commands + scim-tokens SCIM tokens management commands security-settings Security settings management commands ssh-key SSH keys management commands user Users management commands diff --git a/docs/commands/iam.md b/docs/commands/iam.md index 08c5fd99cf..3c54e30868 100644 --- a/docs/commands/iam.md +++ b/docs/commands/iam.md @@ -55,6 +55,8 @@ This API allows you to manage Identity and Access Management (IAM) across your S - [Add a SAML certificate](#add-a-saml-certificate) - [Delete a SAML certificate](#delete-a-saml-certificate) - [List SAML certificates](#list-saml-certificates) +- [SCIM management commands](#scim-management-commands) +- [SCIM tokens management commands](#scim-tokens-management-commands) - [Security settings management commands](#security-settings-management-commands) - [Get security settings of an Organization](#get-security-settings-of-an-organization) - [Update the security settings of an Organization](#update-the-security-settings-of-an-organization) @@ -1067,6 +1069,34 @@ scw iam saml-certificates list [arg=value ...] +## SCIM management commands + +SCIM management commands. + +SCIM management commands. + +**Usage:** + +``` +scw iam scim +``` + + + +## SCIM tokens management commands + +SCIM tokens management commands. + +SCIM tokens management commands. + +**Usage:** + +``` +scw iam scim-tokens +``` + + + ## Security settings management commands Security settings management commands. diff --git a/go.mod b/go.mod index d9477ab949..fd6f33b7f1 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.26.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.1 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index a2e71e0125..e6465d0af2 100644 --- a/go.sum +++ b/go.sum @@ -464,8 +464,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba h1:uROS5GNQhplrMMeuuSHC47/Nztx4CWP07JoQMykzPxQ= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7 h1:/Zoq/FLlyqtefHUReMg+kI5gqeiHqTH+HmS2lQpFvjc= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g= diff --git a/internal/namespaces/iam/v1alpha1/iam_cli.go b/internal/namespaces/iam/v1alpha1/iam_cli.go index 4984769e1a..1c321b8430 100644 --- a/internal/namespaces/iam/v1alpha1/iam_cli.go +++ b/internal/namespaces/iam/v1alpha1/iam_cli.go @@ -34,6 +34,8 @@ func GetGeneratedCommands() *core.Commands { iamSaml(), iamSamlCertificates(), iamSecuritySettings(), + iamScim(), + iamScimTokens(), iamSSHKeyList(), iamSSHKeyCreate(), iamSSHKeyGet(), @@ -227,6 +229,24 @@ func iamSecuritySettings() *core.Command { } } +func iamScim() *core.Command { + return &core.Command{ + Short: `SCIM management commands`, + Long: `SCIM management commands.`, + Namespace: "iam", + Resource: "scim", + } +} + +func iamScimTokens() *core.Command { + return &core.Command{ + Short: `SCIM tokens management commands`, + Long: `SCIM tokens management commands.`, + Namespace: "iam", + Resource: "scim-tokens", + } +} + func iamSSHKeyList() *core.Command { return &core.Command{ Short: `List SSH keys`,