Skip to content

Commit cef0861

Browse files
committed
test(inference): register cassettes
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]> fix(inference): improve endpoints managements createDeployment
1 parent 8744886 commit cef0861

12 files changed

+3691
-1
lines changed
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
package inference
22

3-
import "github.com/scaleway/scaleway-cli/v2/core"
3+
import (
4+
"github.com/scaleway/scaleway-cli/v2/core"
5+
"github.com/scaleway/scaleway-cli/v2/core/human"
6+
"github.com/scaleway/scaleway-sdk-go/api/inference/v1"
7+
)
48

59
func GetCommands() *core.Commands {
610
cmds := GetGeneratedCommands()
711

812
cmds.MustFind("inference").Groups = []string{"ai"}
913

14+
human.RegisterMarshalerFunc(
15+
inference.DeploymentStatus(""),
16+
human.EnumMarshalFunc(deployementStateMarshalSpecs),
17+
)
18+
19+
human.RegisterMarshalerFunc(inference.Deployment{}, DeploymentMarshalerFunc)
20+
21+
cmds.MustFind("inference", "deployment", "create").Override(deploymentCreateBuilder)
22+
1023
return cmds
1124
}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
package inference
2+
3+
import (
4+
"context"
5+
"reflect"
6+
"strings"
7+
"time"
8+
9+
"github.com/fatih/color"
10+
"github.com/scaleway/scaleway-cli/v2/core"
11+
"github.com/scaleway/scaleway-cli/v2/core/human"
12+
"github.com/scaleway/scaleway-sdk-go/api/inference/v1"
13+
"github.com/scaleway/scaleway-sdk-go/scw"
14+
)
15+
16+
const (
17+
deploymentActionTimeout = 60 * time.Minute
18+
)
19+
20+
var deployementStateMarshalSpecs = human.EnumMarshalSpecs{
21+
inference.DeploymentStatusCreating: &human.EnumMarshalSpec{Attribute: color.FgBlue},
22+
inference.DeploymentStatusDeploying: &human.EnumMarshalSpec{Attribute: color.FgBlue},
23+
inference.DeploymentStatusDeleting: &human.EnumMarshalSpec{Attribute: color.FgBlue},
24+
inference.DeploymentStatusError: &human.EnumMarshalSpec{Attribute: color.FgRed},
25+
inference.DeploymentStatusReady: &human.EnumMarshalSpec{Attribute: color.FgGreen},
26+
inference.DeploymentStatusLocked: &human.EnumMarshalSpec{Attribute: color.FgRed},
27+
}
28+
29+
func DeploymentMarshalerFunc(i any, opt *human.MarshalOpt) (string, error) {
30+
type tmp inference.Deployment
31+
deployment := tmp(i.(inference.Deployment))
32+
opt.Sections = []*human.MarshalSection{
33+
{
34+
FieldName: "Endpoints",
35+
Title: "Endpoints",
36+
},
37+
}
38+
str, err := human.Marshal(deployment, opt)
39+
if err != nil {
40+
return "", err
41+
}
42+
43+
return str, nil
44+
}
45+
46+
var completeListNodeTypesCache *inference.ListNodeTypesResponse
47+
48+
func autocompleteDeploymentNodeType(
49+
ctx context.Context,
50+
prefix string,
51+
request any,
52+
) core.AutocompleteSuggestions {
53+
req := request.(*inference.CreateDeploymentRequest)
54+
suggestions := core.AutocompleteSuggestions(nil)
55+
56+
client := core.ExtractClient(ctx)
57+
api := inference.NewAPI(client)
58+
59+
if completeListNodeTypesCache == nil {
60+
res, err := api.ListNodeTypes(&inference.ListNodeTypesRequest{
61+
Region: req.Region,
62+
})
63+
if err != nil {
64+
return nil
65+
}
66+
completeListNodeTypesCache = res
67+
}
68+
69+
for _, nodeType := range completeListNodeTypesCache.NodeTypes {
70+
if strings.HasPrefix(nodeType.Name, prefix) {
71+
suggestions = append(suggestions, nodeType.Name)
72+
}
73+
}
74+
75+
return suggestions
76+
}
77+
78+
func deploymentCreateBuilder(c *core.Command) *core.Command {
79+
c.ArgSpecs.GetByName("node-type-name").AutoCompleteFunc = autocompleteDeploymentNodeType
80+
type llmInferenceEndpointSpecCustom struct {
81+
*inference.EndpointSpec
82+
IsPublic bool `json:"is-public"`
83+
}
84+
85+
type llmInferenceCreateDeploymentRequestCustom struct {
86+
*inference.CreateDeploymentRequest
87+
Endpoints []*llmInferenceEndpointSpecCustom `json:"endpoints"`
88+
}
89+
90+
c.ArgSpecs.AddBefore("endpoints.{index}.private-network.private-network-id", &core.ArgSpec{
91+
Name: "endpoints.{index}.is-public",
92+
Short: "Will configure your public endpoint if true",
93+
Required: false,
94+
Default: core.DefaultValueSetter("false"),
95+
})
96+
97+
c.ArgsType = reflect.TypeOf(llmInferenceCreateDeploymentRequestCustom{})
98+
99+
c.WaitFunc = func(ctx context.Context, _, respI any) (any, error) {
100+
api := inference.NewAPI(core.ExtractClient(ctx))
101+
102+
return api.WaitForDeployment(&inference.WaitForDeploymentRequest{
103+
DeploymentID: respI.(*inference.Deployment).ID,
104+
Region: respI.(*inference.Deployment).Region,
105+
Status: respI.(*inference.Deployment).Status,
106+
Timeout: scw.TimeDurationPtr(deploymentActionTimeout),
107+
RetryInterval: core.DefaultRetryInterval,
108+
})
109+
}
110+
c.Interceptor = func(ctx context.Context, argsI any, runner core.CommandRunner) (any, error) {
111+
deploymentCreateCustomRequest := argsI.(*llmInferenceCreateDeploymentRequestCustom)
112+
deploymentRequest := deploymentCreateCustomRequest.CreateDeploymentRequest
113+
if deploymentCreateCustomRequest.Endpoints == nil {
114+
publicEndpoint := &inference.EndpointPublicNetworkDetails{}
115+
endpoint := inference.EndpointSpec{
116+
PublicNetwork: publicEndpoint,
117+
PrivateNetwork: nil,
118+
DisableAuth: false,
119+
}
120+
deploymentRequest.Endpoints = append(deploymentRequest.Endpoints, &endpoint)
121+
122+
return runner(ctx, deploymentRequest)
123+
}
124+
for _, endpoint := range deploymentCreateCustomRequest.Endpoints {
125+
publicEndpoint := &inference.EndpointPublicNetworkDetails{}
126+
if !endpoint.IsPublic {
127+
publicEndpoint = nil
128+
}
129+
privateNetwork := &inference.EndpointPrivateNetworkDetails{}
130+
if endpoint.PrivateNetwork == nil {
131+
privateNetwork = nil
132+
} else {
133+
privateNetwork.PrivateNetworkID = endpoint.PrivateNetwork.PrivateNetworkID
134+
}
135+
endpoint := inference.EndpointSpec{
136+
PublicNetwork: publicEndpoint,
137+
PrivateNetwork: privateNetwork,
138+
DisableAuth: endpoint.DisableAuth,
139+
}
140+
deploymentRequest.Endpoints = append(deploymentRequest.Endpoints, &endpoint)
141+
}
142+
143+
return runner(ctx, deploymentRequest)
144+
}
145+
146+
return c
147+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
package inference_test
2+
3+
import (
4+
"fmt"
5+
"testing"
6+
7+
"github.com/scaleway/scaleway-cli/v2/core"
8+
inference "github.com/scaleway/scaleway-cli/v2/internal/namespaces/inference/v1"
9+
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpc/v2"
10+
)
11+
12+
const (
13+
ModelID = "739d51ae-4f1e-4193-a4bf-f7380c090d46"
14+
NodeTypeName = "H100-2"
15+
)
16+
17+
func Test_DeploymentCreate(t *testing.T) {
18+
cmds := inference.GetCommands()
19+
20+
t.Run("Simple deployment", core.Test(&core.TestConfig{
21+
Commands: cmds,
22+
Cmd: fmt.Sprintf("scw inference deployment create node-type-name=%s model-id=%s", NodeTypeName, ModelID),
23+
Check: core.TestCheckGolden(),
24+
AfterFunc: core.ExecAfterCmd(
25+
"scw inference deployment delete {{ .CmdResult.ID }}",
26+
),
27+
}))
28+
29+
t.Run("Deployment with wait flag", core.Test(&core.TestConfig{
30+
Commands: cmds,
31+
Cmd: fmt.Sprintf(
32+
"scw inference deployment create node-type-name=%s model-id=%s accept-eula=true --wait",
33+
NodeTypeName, ModelID,
34+
),
35+
Check: core.TestCheckGolden(),
36+
AfterFunc: core.ExecAfterCmd(
37+
"scw inference deployment delete {{ .CmdResult.ID }}",
38+
),
39+
}))
40+
}
41+
42+
func Test_CreateDeploymentPrivateEndpoint(t *testing.T) {
43+
cmds := inference.GetCommands()
44+
cmds.Merge(vpc.GetCommands())
45+
46+
t.Run("Create Deployment Private Endpoint", core.Test(&core.TestConfig{
47+
Commands: cmds,
48+
BeforeFunc: CreatePN(),
49+
Cmd: fmt.Sprintf(
50+
"scw inference deployment create model-id=%s node-type-name=%s accept-eula=true endpoints.0.private-network.private-network-id={{ .PN.ID }}",
51+
ModelID, NodeTypeName,
52+
),
53+
Check: core.TestCheckCombine(
54+
core.TestCheckGolden(),
55+
),
56+
AfterFunc: core.AfterFuncCombine(
57+
DeletePrivateNetwork(),
58+
DeleteDeployment(),
59+
),
60+
}))
61+
}
62+
63+
func Test_DeploymentDelete(t *testing.T) {
64+
cmds := inference.GetCommands()
65+
66+
t.Run("Delete deployment with wait flag", core.Test(&core.TestConfig{
67+
Commands: cmds,
68+
BeforeFunc: CreateDeploymentPublicEndpoint(),
69+
Cmd: "scw inference deployment delete {{ .DEPLOYMENT.ID }} -w",
70+
Check: core.TestCheckGolden(),
71+
}))
72+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package inference_test
2+
3+
import (
4+
"fmt"
5+
6+
"github.com/scaleway/scaleway-cli/v2/core"
7+
)
8+
9+
func CreateDeploymentPublicEndpoint() core.BeforeFunc {
10+
return core.ExecStoreBeforeCmd(
11+
"DEPLOYMENT",
12+
fmt.Sprintf("scw inference deployment create node-type-name=%s model-id=%s -w", NodeTypeName, ModelID),
13+
)
14+
}
15+
16+
func CreatePN() core.BeforeFunc {
17+
return core.ExecStoreBeforeCmd(
18+
"PN",
19+
"scw vpc private-network create",
20+
)
21+
}
22+
23+
func DeletePrivateNetwork() core.AfterFunc {
24+
return core.ExecAfterCmd("scw vpc private-network delete {{ .PN.ID }}")
25+
}
26+
27+
func DeleteDeployment() core.AfterFunc {
28+
return core.ExecAfterCmd("scw inference deployment delete {{ .DEPLOYMENT.ID }}")
29+
}

0 commit comments

Comments
 (0)