Skip to content

Commit 7f8a01b

Browse files
Laure-dijremy42
andcommitted
feat(baremetal): display environmental impact
fix(inference): attach private network (#4524) chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> feat(audit_trail): add account user and organization resources (#4717) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Laure-di <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> fix golangci linter chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (#4597) Co-authored-by: Jonathan R. <[email protected]>
1 parent 250abfa commit 7f8a01b

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

internal/namespaces/baremetal/v1/custom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func GetCommands() *core.Commands {
3838
cmds.MustFind("baremetal", "server", "start").Override(serverStartBuilder)
3939
cmds.MustFind("baremetal", "server", "stop").Override(serverStopBuilder)
4040
cmds.MustFind("baremetal", "server", "reboot").Override(serverRebootBuilder)
41+
cmds.MustFind("baremetal", "offer", "list").Override(serverOfferListBuilder)
4142

4243
cmds.MergeAll(baremetalV3.GetCommands())
4344

internal/namespaces/baremetal/v1/custom_offer.go

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
package baremetal
22

33
import (
4+
"context"
5+
"errors"
6+
"fmt"
7+
"strings"
8+
49
"github.com/fatih/color"
10+
"github.com/scaleway/scaleway-cli/v2/core"
511
"github.com/scaleway/scaleway-cli/v2/core/human"
612
"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
13+
product_catalog "github.com/scaleway/scaleway-sdk-go/api/product_catalog/v2alpha1"
714
)
815

916
var offerAvailabilityMarshalSpecs = human.EnumMarshalSpecs{
@@ -53,3 +60,78 @@ func listOfferMarshalerFunc(i any, opt *human.MarshalOpt) (string, error) {
5360

5461
return str, nil
5562
}
63+
64+
type customOffer struct {
65+
baremetal.Offer
66+
KgCo2Equivalent *float32 `json:"kg_co2_equivalent"`
67+
M3WaterUsage *float32 `json:"m3_water_usage"`
68+
}
69+
70+
func serverOfferListBuilder(c *core.Command) *core.Command {
71+
c.View = &core.View{
72+
Fields: []*core.ViewField{
73+
{Label: "Disks", FieldName: "Disks"},
74+
{Label: "CPUs", FieldName: "CPUs"},
75+
{Label: "Memories", FieldName: "Memories"},
76+
{Label: "Options", FieldName: "Options"},
77+
{Label: "Bandwidth", FieldName: "Bandwidth"},
78+
{Label: "PrivateBandwidth", FieldName: "PrivateBandwidth"},
79+
{Label: "CO2 (kg)", FieldName: "KgCo2Equivalent"},
80+
{Label: "Water (m³)", FieldName: "M3WaterUsage"},
81+
},
82+
}
83+
84+
c.Interceptor = func(ctx context.Context, argsI any, runner core.CommandRunner) (any, error) {
85+
rawResp, err := runner(ctx, argsI)
86+
if err != nil {
87+
return nil, err
88+
}
89+
90+
offers, ok := rawResp.([]*baremetal.Offer)
91+
for _, offer := range offers {
92+
fmt.Printf("Print value of offer name: %s\n", offer.Name)
93+
}
94+
95+
if !ok {
96+
return nil, errors.New("unexpected type for offer response")
97+
}
98+
99+
client := core.ExtractClient(ctx)
100+
productAPI := product_catalog.NewPublicCatalogAPI(client)
101+
environmentalImpact, _ := productAPI.ListPublicCatalogProducts(
102+
&product_catalog.PublicCatalogAPIListPublicCatalogProductsRequest{
103+
ProductTypes: []product_catalog.ListPublicCatalogProductsRequestProductType{
104+
product_catalog.ListPublicCatalogProductsRequestProductTypeElasticMetal,
105+
},
106+
},
107+
)
108+
109+
impactMap := make(map[string]*product_catalog.PublicCatalogProduct)
110+
for _, impact := range environmentalImpact.Products {
111+
if impact != nil {
112+
key := strings.TrimSpace(strings.TrimPrefix(impact.Product, "Elastic Metal "))
113+
impactMap[key] = impact
114+
}
115+
}
116+
117+
var customOfferRes []customOffer
118+
for _, offer := range offers {
119+
fmt.Printf("Print value of offer: %s\n", offer.Name)
120+
impact, ok := impactMap[offer.Name]
121+
if !ok || impact == nil {
122+
fmt.Printf("No environmental impact data found for offer: %s\n", offer.Name)
123+
124+
continue
125+
}
126+
customOfferRes = append(customOfferRes, customOffer{
127+
Offer: *offer,
128+
KgCo2Equivalent: impact.EnvironmentalImpactEstimation.KgCo2Equivalent,
129+
M3WaterUsage: impact.EnvironmentalImpactEstimation.M3WaterUsage,
130+
})
131+
}
132+
133+
return customOfferRes, nil
134+
}
135+
136+
return c
137+
}

0 commit comments

Comments
 (0)