From 2d371854c6ff28bab69bc647d4902191b77ea3d5 Mon Sep 17 00:00:00 2001 From: Ian Duffy Date: Wed, 15 Jul 2026 11:38:41 +0100 Subject: [PATCH] feat: update bindings to v2.0.29 (API v1.1285.0) and automate future updates Binding version: 2.0.29 CloudSmith API version: 1.1285.0 Bindings: - Regenerate Python, Ruby, and Java bindings against API v1.1285.0 Tooling and automation: - Automate the Ruby apostrophe escaping (swagger-codegen emits an unescaped single-quoted enum value) in scripts/fix-ruby-escaping.sh using ruby, invoked from bindings/ruby/build.sh so a single build always emits valid Ruby - Make linting a mandatory build step: scripts/build.sh runs `ruff check --fix`, which fails only on genuinely unfixable violations - Harden update-bindings.sh: run pre-commit to convergence and refuse to push when a hook aborts the commit - Manage the host toolchain with mise via a top-level .mise.toml (ruby, python, uv, jq) shared by local dev and CI - Add the "Update API bindings" GitHub Actions workflow: regenerate and open a PR on demand or daily, only when the bindings actually change, closing any superseded automated PRs first - Move linting and security scanning to GitHub Actions (mirroring cloudsmith-cli): a Lint workflow runs ruff via mise, and a Security workflow runs zizmor via zizmorcore/zizmor-action; the CircleCI pre-commit job is removed, leaving CircleCI to only test and deploy the bindings - Harden the workflows against zizmor's findings: pass workflow_dispatch inputs and step outputs through env instead of interpolating them into run blocks, set persist-credentials: false, and hash-pin all actions to the latest release - chmod 755 the source shell scripts - Document the mise + Docker workflow in README.md and CONTRIBUTING.md Co-Authored-By: Claude Opus 4.8 (1M context) --- .circleci/config.yml | 16 -- .github/workflows/lint.yml | 33 +++++ .github/workflows/update-bindings.yml | 107 +++++++++++++ .github/workflows/zizmor.yml | 32 ++++ .mise.toml | 18 +++ .pre-commit-config.yaml | 4 + CONTRIBUTING.md | 14 +- README.md | 21 +++ bindings/java/src/README.md | 6 +- bindings/java/src/build.gradle | 2 +- bindings/java/src/build.json | 2 +- bindings/java/src/build.sbt | 2 +- bindings/java/src/docs/CargoUpstream.md | 1 + .../java/src/docs/CargoUpstreamRequest.md | 1 + .../src/docs/CargoUpstreamRequestPatch.md | 1 + bindings/java/src/docs/ComposerUpstream.md | 1 + .../java/src/docs/ComposerUpstreamRequest.md | 1 + .../src/docs/ComposerUpstreamRequestPatch.md | 1 + bindings/java/src/docs/CondaUpstream.md | 1 + .../java/src/docs/CondaUpstreamRequest.md | 1 + .../src/docs/CondaUpstreamRequestPatch.md | 1 + bindings/java/src/docs/ConnectedRepository.md | 10 ++ bindings/java/src/docs/CranUpstream.md | 1 + bindings/java/src/docs/CranUpstreamRequest.md | 1 + .../java/src/docs/CranUpstreamRequestPatch.md | 1 + bindings/java/src/docs/DartUpstream.md | 1 + bindings/java/src/docs/DartUpstreamRequest.md | 1 + .../java/src/docs/DartUpstreamRequestPatch.md | 1 + bindings/java/src/docs/DebUpstream.md | 1 + bindings/java/src/docs/DebUpstreamRequest.md | 1 + .../java/src/docs/DebUpstreamRequestPatch.md | 1 + .../java/src/docs/FormatSupportUpstream.md | 1 + bindings/java/src/docs/GenericUpstream.md | 1 + .../java/src/docs/GenericUpstreamRequest.md | 1 + .../src/docs/GenericUpstreamRequestPatch.md | 1 + bindings/java/src/docs/HelmUpstream.md | 1 + bindings/java/src/docs/HelmUpstreamRequest.md | 1 + .../java/src/docs/HelmUpstreamRequestPatch.md | 1 + bindings/java/src/docs/HexUpstream.md | 1 + bindings/java/src/docs/HexUpstreamRequest.md | 1 + .../java/src/docs/HexUpstreamRequestPatch.md | 1 + bindings/java/src/docs/NpmUpstream.md | 1 + bindings/java/src/docs/NpmUpstreamRequest.md | 1 + .../java/src/docs/NpmUpstreamRequestPatch.md | 1 + bindings/java/src/docs/NugetUpstream.md | 1 + .../java/src/docs/NugetUpstreamRequest.md | 1 + .../src/docs/NugetUpstreamRequestPatch.md | 1 + .../java/src/docs/OrganizationSAMLAuth.md | 2 + .../docs/OrganizationSAMLAuthRequestPatch.md | 2 + bindings/java/src/docs/OrgsApi.md | 6 +- bindings/java/src/docs/PackagesApi.md | 30 ++-- bindings/java/src/docs/PythonUpstream.md | 1 + .../java/src/docs/PythonUpstreamRequest.md | 1 + .../src/docs/PythonUpstreamRequestPatch.md | 1 + bindings/java/src/docs/ReposApi.md | 4 +- bindings/java/src/docs/Repository.md | 1 + bindings/java/src/docs/RepositoryCreate.md | 1 + .../java/src/docs/RepositoryEd25519Key.md | 1 + bindings/java/src/pom.xml | 2 +- .../java/io/cloudsmith/api/ApiClient.java | 2 +- .../java/io/cloudsmith/api/apis/OrgsApi.java | 28 ++-- .../io/cloudsmith/api/apis/PackagesApi.java | 140 +++++++++++------- .../java/io/cloudsmith/api/apis/ReposApi.java | 8 +- .../cloudsmith/api/models/CargoUpstream.java | 4 +- .../api/models/CargoUpstreamRequest.java | 4 +- .../api/models/CargoUpstreamRequestPatch.java | 4 +- .../api/models/ComposerUpstream.java | 4 +- .../api/models/ComposerUpstreamRequest.java | 4 +- .../models/ComposerUpstreamRequestPatch.java | 4 +- .../cloudsmith/api/models/CondaUpstream.java | 4 +- .../api/models/CondaUpstreamRequest.java | 4 +- .../api/models/CondaUpstreamRequestPatch.java | 4 +- .../api/models/ConnectedRepository.java | 79 +++++++++- .../models/ConnectedRepositoryRequest.java | 2 +- .../ConnectedRepositoryRequestPatch.java | 2 +- .../cloudsmith/api/models/CranUpstream.java | 4 +- .../api/models/CranUpstreamRequest.java | 4 +- .../api/models/CranUpstreamRequestPatch.java | 4 +- .../cloudsmith/api/models/DartUpstream.java | 4 +- .../api/models/DartUpstreamRequest.java | 4 +- .../api/models/DartUpstreamRequestPatch.java | 4 +- .../io/cloudsmith/api/models/DebUpstream.java | 4 +- .../api/models/DebUpstreamRequest.java | 4 +- .../api/models/DebUpstreamRequestPatch.java | 4 +- .../api/models/FormatSupportUpstream.java | 26 +++- .../api/models/GenericUpstream.java | 4 +- .../api/models/GenericUpstreamRequest.java | 4 +- .../models/GenericUpstreamRequestPatch.java | 4 +- .../cloudsmith/api/models/HelmUpstream.java | 4 +- .../api/models/HelmUpstreamRequest.java | 4 +- .../api/models/HelmUpstreamRequestPatch.java | 4 +- .../io/cloudsmith/api/models/HexUpstream.java | 4 +- .../api/models/HexUpstreamRequest.java | 4 +- .../api/models/HexUpstreamRequestPatch.java | 4 +- .../io/cloudsmith/api/models/NpmUpstream.java | 4 +- .../api/models/NpmUpstreamRequest.java | 4 +- .../api/models/NpmUpstreamRequestPatch.java | 4 +- .../cloudsmith/api/models/NugetUpstream.java | 4 +- .../api/models/NugetUpstreamRequest.java | 4 +- .../api/models/NugetUpstreamRequestPatch.java | 4 +- .../api/models/OrganizationSAMLAuth.java | 50 ++++++- .../OrganizationSAMLAuthRequestPatch.java | 50 ++++++- .../cloudsmith/api/models/PythonUpstream.java | 4 +- .../api/models/PythonUpstreamRequest.java | 4 +- .../models/PythonUpstreamRequestPatch.java | 4 +- .../io/cloudsmith/api/models/Repository.java | 18 ++- .../api/models/RepositoryCreate.java | 18 ++- .../api/models/RepositoryEd25519Key.java | 18 ++- .../io/cloudsmith/api/apis/OrgsApiTest.java | 3 +- .../cloudsmith/api/apis/PackagesApiTest.java | 15 +- bindings/python/src/README.md | 2 +- bindings/python/src/build.json | 2 +- .../python/src/cloudsmith_api/api/orgs_api.py | 6 +- .../src/cloudsmith_api/api/packages_api.py | 30 +++- .../src/cloudsmith_api/api/repos_api.py | 4 +- .../python/src/cloudsmith_api/api_client.py | 2 +- .../src/cloudsmith_api/configuration.py | 2 +- .../cloudsmith_api/models/cargo_upstream.py | 2 +- .../models/cargo_upstream_request.py | 2 +- .../models/cargo_upstream_request_patch.py | 2 +- .../models/composer_upstream.py | 2 +- .../models/composer_upstream_request.py | 2 +- .../models/composer_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/conda_upstream.py | 2 +- .../models/conda_upstream_request.py | 2 +- .../models/conda_upstream_request_patch.py | 2 +- .../models/connected_repository.py | 63 +++++++- .../models/connected_repository_request.py | 2 +- .../connected_repository_request_patch.py | 2 +- .../cloudsmith_api/models/cran_upstream.py | 2 +- .../models/cran_upstream_request.py | 2 +- .../models/cran_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/dart_upstream.py | 2 +- .../models/dart_upstream_request.py | 2 +- .../models/dart_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/deb_upstream.py | 2 +- .../models/deb_upstream_request.py | 2 +- .../models/deb_upstream_request_patch.py | 2 +- .../models/format_support_upstream.py | 31 +++- .../cloudsmith_api/models/generic_upstream.py | 2 +- .../models/generic_upstream_request.py | 2 +- .../models/generic_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/helm_upstream.py | 2 +- .../models/helm_upstream_request.py | 2 +- .../models/helm_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/hex_upstream.py | 2 +- .../models/hex_upstream_request.py | 2 +- .../models/hex_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/npm_upstream.py | 2 +- .../models/npm_upstream_request.py | 2 +- .../models/npm_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/nuget_upstream.py | 2 +- .../models/nuget_upstream_request.py | 2 +- .../models/nuget_upstream_request_patch.py | 2 +- .../models/organization_saml_auth.py | 68 ++++++++- .../organization_saml_auth_request_patch.py | 68 ++++++++- .../cloudsmith_api/models/python_upstream.py | 2 +- .../models/python_upstream_request.py | 2 +- .../models/python_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/repository.py | 30 +++- .../models/repository_create.py | 30 +++- .../models/repository_ed25519_key.py | 37 ++++- .../python/src/docs/ConnectedRepository.md | 4 +- .../src/docs/ConnectedRepositoryRequest.md | 2 +- .../docs/ConnectedRepositoryRequestPatch.md | 2 +- .../python/src/docs/FormatSupportUpstream.md | 1 + .../python/src/docs/OrganizationSAMLAuth.md | 2 + .../docs/OrganizationSAMLAuthRequestPatch.md | 2 + bindings/python/src/docs/OrgsApi.md | 6 +- bindings/python/src/docs/PackagesApi.md | 30 ++-- bindings/python/src/docs/ReposApi.md | 4 +- bindings/python/src/docs/Repository.md | 1 + bindings/python/src/docs/RepositoryCreate.md | 1 + .../python/src/docs/RepositoryEd25519Key.md | 1 + bindings/python/src/setup.py | 2 +- bindings/ruby/build.sh | 2 + bindings/ruby/src/README.md | 8 +- bindings/ruby/src/build.json | 2 +- bindings/ruby/src/docs/ConnectedRepository.md | 4 +- .../src/docs/ConnectedRepositoryRequest.md | 2 +- .../docs/ConnectedRepositoryRequestPatch.md | 2 +- .../ruby/src/docs/FormatSupportUpstream.md | 1 + .../ruby/src/docs/OrganizationSAMLAuth.md | 2 + .../docs/OrganizationSAMLAuthRequestPatch.md | 2 + bindings/ruby/src/docs/OrgsApi.md | 4 +- bindings/ruby/src/docs/PackagesApi.md | 28 +++- bindings/ruby/src/docs/ReposApi.md | 4 +- bindings/ruby/src/docs/Repository.md | 1 + bindings/ruby/src/docs/RepositoryCreate.md | 1 + .../ruby/src/docs/RepositoryEd25519Key.md | 1 + .../src/lib/cloudsmith-api/api/orgs_api.rb | 3 + .../lib/cloudsmith-api/api/packages_api.rb | 15 ++ .../src/lib/cloudsmith-api/api/repos_api.rb | 4 +- .../cloudsmith-api/models/cargo_upstream.rb | 4 +- .../models/cargo_upstream_request.rb | 4 +- .../models/cargo_upstream_request_patch.rb | 4 +- .../models/composer_upstream.rb | 4 +- .../models/composer_upstream_request.rb | 4 +- .../models/composer_upstream_request_patch.rb | 4 +- .../cloudsmith-api/models/conda_upstream.rb | 4 +- .../models/conda_upstream_request.rb | 4 +- .../models/conda_upstream_request_patch.rb | 4 +- .../models/connected_repository.rb | 59 +++++++- .../models/connected_repository_request.rb | 2 +- .../connected_repository_request_patch.rb | 2 +- .../cloudsmith-api/models/cran_upstream.rb | 4 +- .../models/cran_upstream_request.rb | 4 +- .../models/cran_upstream_request_patch.rb | 4 +- .../cloudsmith-api/models/dart_upstream.rb | 4 +- .../models/dart_upstream_request.rb | 4 +- .../models/dart_upstream_request_patch.rb | 4 +- .../lib/cloudsmith-api/models/deb_upstream.rb | 4 +- .../models/deb_upstream_request.rb | 4 +- .../models/deb_upstream_request_patch.rb | 4 +- .../models/format_support_upstream.rb | 17 ++- .../cloudsmith-api/models/generic_upstream.rb | 4 +- .../models/generic_upstream_request.rb | 4 +- .../models/generic_upstream_request_patch.rb | 4 +- .../cloudsmith-api/models/helm_upstream.rb | 4 +- .../models/helm_upstream_request.rb | 4 +- .../models/helm_upstream_request_patch.rb | 4 +- .../lib/cloudsmith-api/models/hex_upstream.rb | 4 +- .../models/hex_upstream_request.rb | 4 +- .../models/hex_upstream_request_patch.rb | 4 +- .../lib/cloudsmith-api/models/npm_upstream.rb | 4 +- .../models/npm_upstream_request.rb | 4 +- .../models/npm_upstream_request_patch.rb | 4 +- .../cloudsmith-api/models/nuget_upstream.rb | 4 +- .../models/nuget_upstream_request.rb | 4 +- .../models/nuget_upstream_request_patch.rb | 4 +- .../models/organization_saml_auth.rb | 28 +++- .../organization_saml_auth_request_patch.rb | 28 +++- .../cloudsmith-api/models/python_upstream.rb | 4 +- .../models/python_upstream_request.rb | 4 +- .../models/python_upstream_request_patch.rb | 4 +- .../lib/cloudsmith-api/models/repository.rb | 12 +- .../models/repository_create.rb | 12 +- .../models/repository_ed25519_key.rb | 18 ++- .../ruby/src/lib/cloudsmith-api/version.rb | 2 +- bindings/ruby/src/spec/api/orgs_api_spec.rb | 1 + .../ruby/src/spec/api/packages_api_spec.rb | 5 + bindings/ruby/src/spec/api/repos_api_spec.rb | 2 +- .../cargo_upstream_request_patch_spec.rb | 2 +- .../models/cargo_upstream_request_spec.rb | 2 +- .../src/spec/models/cargo_upstream_spec.rb | 2 +- .../composer_upstream_request_patch_spec.rb | 2 +- .../models/composer_upstream_request_spec.rb | 2 +- .../src/spec/models/composer_upstream_spec.rb | 2 +- .../conda_upstream_request_patch_spec.rb | 2 +- .../models/conda_upstream_request_spec.rb | 2 +- .../src/spec/models/conda_upstream_spec.rb | 2 +- .../spec/models/connected_repository_spec.rb | 16 ++ .../cran_upstream_request_patch_spec.rb | 2 +- .../spec/models/cran_upstream_request_spec.rb | 2 +- .../src/spec/models/cran_upstream_spec.rb | 2 +- .../dart_upstream_request_patch_spec.rb | 2 +- .../spec/models/dart_upstream_request_spec.rb | 2 +- .../src/spec/models/dart_upstream_spec.rb | 2 +- .../models/deb_upstream_request_patch_spec.rb | 2 +- .../spec/models/deb_upstream_request_spec.rb | 2 +- .../ruby/src/spec/models/deb_upstream_spec.rb | 2 +- .../models/format_support_upstream_spec.rb | 6 + .../generic_upstream_request_patch_spec.rb | 2 +- .../models/generic_upstream_request_spec.rb | 2 +- .../src/spec/models/generic_upstream_spec.rb | 2 +- .../helm_upstream_request_patch_spec.rb | 2 +- .../spec/models/helm_upstream_request_spec.rb | 2 +- .../src/spec/models/helm_upstream_spec.rb | 2 +- .../models/hex_upstream_request_patch_spec.rb | 2 +- .../spec/models/hex_upstream_request_spec.rb | 2 +- .../ruby/src/spec/models/hex_upstream_spec.rb | 2 +- .../models/npm_upstream_request_patch_spec.rb | 2 +- .../spec/models/npm_upstream_request_spec.rb | 2 +- .../ruby/src/spec/models/npm_upstream_spec.rb | 2 +- .../nuget_upstream_request_patch_spec.rb | 2 +- .../models/nuget_upstream_request_spec.rb | 2 +- .../src/spec/models/nuget_upstream_spec.rb | 2 +- ...ganization_saml_auth_request_patch_spec.rb | 12 ++ .../models/organization_saml_auth_spec.rb | 12 ++ .../python_upstream_request_patch_spec.rb | 2 +- .../models/python_upstream_request_spec.rb | 2 +- .../src/spec/models/python_upstream_spec.rb | 2 +- .../src/spec/models/repository_create_spec.rb | 6 + .../models/repository_ed25519_key_spec.rb | 6 + .../ruby/src/spec/models/repository_spec.rb | 6 + scripts/build.sh | 3 + scripts/common.sh | 2 +- scripts/fix-ruby-escaping.sh | 43 ++++++ scripts/update-bindings.sh | 35 ++++- 289 files changed, 1700 insertions(+), 402 deletions(-) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/update-bindings.yml create mode 100644 .github/workflows/zizmor.yml create mode 100644 .mise.toml mode change 100644 => 100755 scripts/common.sh create mode 100755 scripts/fix-ruby-escaping.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fb5c1b2..20470a6c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,27 +58,11 @@ jobs: - prepare_deploy_environment - deploy_bindings: language: <> - pre_commit: - description: "Run pre-commit hooks" - docker: - - image: cimg/python:3.8 - steps: - - checkout - - run: - name: "Install dependencies" - command: | - python3 -m pip install --upgrade pip - pip install pre-commit - - run: - name: "Run pre-commit" - command: pre-commit run --all-files - workflows: version: 2 test_and_deploy: jobs: - - pre_commit - test: name: "Test Java" language: java diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..e8e1b417 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Lint + +on: + push: + branches: + - master + pull_request: + branches: + - "**" + +permissions: + contents: read + +jobs: + ruff: + name: Check Python style (ruff) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + persist-credentials: false + + - name: Set up mise + uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0 + with: + install: false + + - name: Install tools with mise + run: mise install python uv + + - name: Run ruff + run: mise exec python uv -- uvx prek run ruff --all-files diff --git a/.github/workflows/update-bindings.yml b/.github/workflows/update-bindings.yml new file mode 100644 index 00000000..b6f4a2ca --- /dev/null +++ b/.github/workflows/update-bindings.yml @@ -0,0 +1,107 @@ +name: Update API bindings + +on: + workflow_dispatch: + inputs: + version: + description: "Binding version (leave blank to auto-increment the patch version)" + required: false + type: string + schedule: + # Daily at 06:00 UTC + - cron: "0 6 * * *" + +permissions: + contents: write + pull-requests: write + +jobs: + update-bindings: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + persist-credentials: false + + - name: Set up tools + uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0 + + - name: Generate bindings + run: mise run build + + - name: Detect changes + id: detect + env: + INPUT_VERSION: ${{ inputs.version }} + run: | + if [ -n "$INPUT_VERSION" ] || [ -n "$(git status --porcelain)" ]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "changed=false" >> "$GITHUB_OUTPUT" + echo "Bindings already match the current API; no PR needed." + fi + + - name: Bump version and regenerate + if: steps.detect.outputs.changed == 'true' + id: versions + env: + INPUT_VERSION: ${{ inputs.version }} + run: | + api_version=$(curl -s --max-time 30 "https://api.cloudsmith.io/status/check/basic/" | jq -r '.version') + if [ -z "$api_version" ] || [ "$api_version" = "null" ]; then + echo "Could not fetch CloudSmith API version" >&2 + exit 1 + fi + + current_version=$(grep -E '^package_version=' scripts/common.sh | cut -d'"' -f2) + if [ -n "$INPUT_VERSION" ]; then + new_version="$INPUT_VERSION" + else + IFS='.' read -r major minor patch <<< "$current_version" + new_version="${major}.${minor}.$((patch + 1))" + fi + + sed -i -E "s/^package_version=.*/package_version=\"${new_version}\"/" scripts/common.sh + mise run build + + echo "api_version=$api_version" >> "$GITHUB_OUTPUT" + echo "new_version=$new_version" >> "$GITHUB_OUTPUT" + + - name: Close stale automated binding PRs + if: steps.detect.outputs.changed == 'true' + env: + GH_TOKEN: ${{ github.token }} + NEW_VERSION: ${{ steps.versions.outputs.new_version }} + run: | + keep="automated/update-bindings-v${NEW_VERSION}" + gh pr list --state open --json number,headRefName \ + --jq '.[] + | select(.headRefName | startswith("automated/update-bindings-")) + | select(.headRefName != "'"$keep"'") + | .number' \ + | while read -r number; do + [ -n "$number" ] || continue + gh pr close "$number" --delete-branch \ + --comment "Superseded by automated bindings update v${NEW_VERSION}." + done + + - name: Create pull request + if: steps.detect.outputs.changed == 'true' + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 + with: + branch: automated/update-bindings-v${{ steps.versions.outputs.new_version }} + base: master + title: "feat: update bindings to v${{ steps.versions.outputs.new_version }} (API v${{ steps.versions.outputs.api_version }})" + commit-message: "feat: update bindings to v${{ steps.versions.outputs.new_version }} (API v${{ steps.versions.outputs.api_version }})" + body: | + Automated API bindings update. + + - Binding version: `${{ steps.versions.outputs.new_version }}` + - CloudSmith API version: `${{ steps.versions.outputs.api_version }}` + + Generated by the **Update API bindings** workflow. + labels: | + bindings + automated + delete-branch: true diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 00000000..d32a5585 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,32 @@ +name: Security + +on: + push: + branches: + - master + paths: + - ".github/workflows/**" + pull_request: + branches: + - "**" + paths: + - ".github/workflows/**" + +permissions: {} + +jobs: + zizmor: + name: Scan GitHub Actions workflows + runs-on: ubuntu-latest + permissions: + security-events: write + contents: read + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7 diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 00000000..ba61a8d5 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,18 @@ +# Host toolchain for working with this repo. Note: binding generation runs +# inside the pinned swaggerapi/swagger-codegen-cli Docker image (see +# scripts/common.sh), so Docker remains a separate prerequisite that mise does +# not manage. The CircleCI test matrix pins its own runtimes via cimg images. + +[tools] +ruby = "3.4" +python = "3.12" +uv = "latest" +jq = "latest" + +[tasks.build] +description = "Generate all API bindings and apply ruff autofixes (requires Docker)" +run = "./scripts/build.sh" + +[tasks.update-bindings] +description = "Bump the version, regenerate bindings, and open a PR" +run = "./scripts/update-bindings.sh" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c7fde6e..f23bb902 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,3 +4,7 @@ repos: hooks: - id: ruff args: [ --fix ] +- repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.27.0 + hooks: + - id: zizmor diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b88033d8..75fa15ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,19 +4,25 @@ Please refer to Cloudsmith's standard guide on [Open-Source Contributing](https: ## Updating bindings +The host toolchain is managed with [mise](https://mise.jdx.dev/) via the top-level `.mise.toml`, so local and CI environments use the same tools. Run `mise install` once to get them. You also need [Docker](https://www.docker.com/) running, as generation happens inside the pinned `swagger-codegen-cli` image (see `scripts/common.sh`). Linting (`ruff`) runs automatically as part of the build. + ### Manual approach * Update `package_version` in `scripts/common.sh` -* Run `./scripts/build.sh` to generate bindings -* Create a PR specifing API and binding version +* Run `mise run build` to generate the bindings (ruff autofixes are applied as part of the build) +* Create a PR specifying the API and binding version ### Automated approach -* Run `./scripts/update-bindings.sh` to automatically update the bindings. +* Run `mise run update-bindings` to automatically update the bindings. * This will then provide you with the URL for the PR to release the updated bindings. -* Preferred usage: `./scripts/update-bindings.sh` * For full options and usage examples, run: `./scripts/update-bindings.sh --help` +### Scheduled / on-demand automation + +* The `Update API bindings` GitHub Actions workflow regenerates the bindings and opens a PR — daily on a schedule, or on demand via **Run workflow** (optionally with a specific version). +* It only opens a PR when the regenerated bindings actually change. + ## Contributor License Agreement By making any contributions to Cloudsmith Ltd projects you agree to be bound by the terms of the Cloudsmith Ltd [Contributor License Agreement](https://docs.cloudsmith.com/contributor-license-agreement). diff --git a/README.md b/README.md index 52520a62..abb2f27b 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,27 @@ To receive configuration help (in order to setup `build.sh` correctly), execute: Where `` is the language you're generating bindings for (e.g. `python`). +## Local Development + +The host toolchain is managed with [mise](https://mise.jdx.dev/) via the top-level `.mise.toml`, so local development and CI use the same tools. With mise installed: + +```sh +mise install # installs the pinned host tools (ruby, uv, jq) +``` + +You also need [Docker](https://www.docker.com/) running — binding generation happens inside the pinned `swagger-codegen-cli` image (see `scripts/common.sh`), which mise does not manage. + +Common tasks: + +```sh +mise run build # regenerate all bindings; ruff autofixes are applied as part of the build +mise run update-bindings # bump the version, regenerate the bindings, and open a pull request +``` + +Linting is a mandatory step of `build`: `ruff` fixes issues in place and fails the build only if it finds something it cannot fix, so a successful `mise run build` always produces lint-clean bindings. + +Binding updates also run automatically through the `Update API bindings` GitHub Actions workflow — daily on a schedule, or on demand via **Run workflow** (optionally with a specific version). It opens a pull request only when the regenerated bindings actually change. + ## Versioning The version of the generated library bindings is automatically made to match the upstream API. So if the Cloudsmith API is currently `0.22.2`, then the language bindings will also be `0.22.2`. diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 3cb4f611..94452b75 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: io.cloudsmith.api cloudsmith-api - 2.0.27 + 2.0.29 compile ``` @@ -50,7 +50,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:2.0.27" +compile "io.cloudsmith.api:cloudsmith-api:2.0.29" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.27.jar` +* `target/cloudsmith-api-2.0.29.jar` * `target/lib/*.jar` ## Getting Started diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 26a3900c..31982579 100644 --- a/bindings/java/src/build.gradle +++ b/bindings/java/src/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'io.cloudsmith.api' -version = '2.0.27' +version = '2.0.29' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index 286105bf..38a8a470 100644 --- a/bindings/java/src/build.json +++ b/bindings/java/src/build.json @@ -3,7 +3,7 @@ "apiPackage": "io.cloudsmith.api.apis", "artifactId": "cloudsmith-api", "artifactUrl": "https://api.cloudsmith.io/?format=openapi", - "artifactVersion": "2.0.27", + "artifactVersion": "2.0.29", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 19ef69c6..4aae6d00 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "2.0.27", + version := "2.0.29", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/bindings/java/src/docs/CargoUpstream.md b/bindings/java/src/docs/CargoUpstream.md index 65bcff72..5ea9019c 100644 --- a/bindings/java/src/docs/CargoUpstream.md +++ b/bindings/java/src/docs/CargoUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CargoUpstreamRequest.md b/bindings/java/src/docs/CargoUpstreamRequest.md index ea358678..0bc12c28 100644 --- a/bindings/java/src/docs/CargoUpstreamRequest.md +++ b/bindings/java/src/docs/CargoUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CargoUpstreamRequestPatch.md b/bindings/java/src/docs/CargoUpstreamRequestPatch.md index 0b9f4923..7f0cabbf 100644 --- a/bindings/java/src/docs/CargoUpstreamRequestPatch.md +++ b/bindings/java/src/docs/CargoUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/ComposerUpstream.md b/bindings/java/src/docs/ComposerUpstream.md index 99b5f1e1..22535b29 100644 --- a/bindings/java/src/docs/ComposerUpstream.md +++ b/bindings/java/src/docs/ComposerUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/ComposerUpstreamRequest.md b/bindings/java/src/docs/ComposerUpstreamRequest.md index 8e1c7d06..cc56bc3c 100644 --- a/bindings/java/src/docs/ComposerUpstreamRequest.md +++ b/bindings/java/src/docs/ComposerUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/ComposerUpstreamRequestPatch.md b/bindings/java/src/docs/ComposerUpstreamRequestPatch.md index 366cbd2f..bdfc70b7 100644 --- a/bindings/java/src/docs/ComposerUpstreamRequestPatch.md +++ b/bindings/java/src/docs/ComposerUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CondaUpstream.md b/bindings/java/src/docs/CondaUpstream.md index f7b05bec..5905ecbe 100644 --- a/bindings/java/src/docs/CondaUpstream.md +++ b/bindings/java/src/docs/CondaUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CondaUpstreamRequest.md b/bindings/java/src/docs/CondaUpstreamRequest.md index 3183fa54..7f478480 100644 --- a/bindings/java/src/docs/CondaUpstreamRequest.md +++ b/bindings/java/src/docs/CondaUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CondaUpstreamRequestPatch.md b/bindings/java/src/docs/CondaUpstreamRequestPatch.md index d6bd7d82..2e14b13e 100644 --- a/bindings/java/src/docs/CondaUpstreamRequestPatch.md +++ b/bindings/java/src/docs/CondaUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/ConnectedRepository.md b/bindings/java/src/docs/ConnectedRepository.md index d93d70e9..8902fda3 100644 --- a/bindings/java/src/docs/ConnectedRepository.md +++ b/bindings/java/src/docs/ConnectedRepository.md @@ -5,10 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the connection was created. | [optional] +**disableReason** | [**DisableReasonEnum**](#DisableReasonEnum) | | [optional] +**disableReasonText** | **String** | Human-readable explanation of why this connection is disabled. | [optional] **isActive** | **Boolean** | | [optional] **priority** | **java.math.BigInteger** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **slugPerm** | **String** | | [optional] **targetRepository** | **String** | The slug of the target repository to connect to. | + +## Enum: DisableReasonEnum +Name | Value +---- | ----- +N_A | "N/A" +THE_CONNECTION_CONTAINS_A_CIRCULAR_REFERENCE | "The connection contains a circular reference" + + diff --git a/bindings/java/src/docs/CranUpstream.md b/bindings/java/src/docs/CranUpstream.md index da195456..ee029bbc 100644 --- a/bindings/java/src/docs/CranUpstream.md +++ b/bindings/java/src/docs/CranUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CranUpstreamRequest.md b/bindings/java/src/docs/CranUpstreamRequest.md index d86eede1..39e6eae5 100644 --- a/bindings/java/src/docs/CranUpstreamRequest.md +++ b/bindings/java/src/docs/CranUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/CranUpstreamRequestPatch.md b/bindings/java/src/docs/CranUpstreamRequestPatch.md index a74c502d..ec00f0b3 100644 --- a/bindings/java/src/docs/CranUpstreamRequestPatch.md +++ b/bindings/java/src/docs/CranUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DartUpstream.md b/bindings/java/src/docs/DartUpstream.md index 0b78c77b..ecb9de76 100644 --- a/bindings/java/src/docs/DartUpstream.md +++ b/bindings/java/src/docs/DartUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DartUpstreamRequest.md b/bindings/java/src/docs/DartUpstreamRequest.md index 88af5635..0531b6cd 100644 --- a/bindings/java/src/docs/DartUpstreamRequest.md +++ b/bindings/java/src/docs/DartUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DartUpstreamRequestPatch.md b/bindings/java/src/docs/DartUpstreamRequestPatch.md index d017c712..f373645f 100644 --- a/bindings/java/src/docs/DartUpstreamRequestPatch.md +++ b/bindings/java/src/docs/DartUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DebUpstream.md b/bindings/java/src/docs/DebUpstream.md index 7d7a8b52..3997f040 100644 --- a/bindings/java/src/docs/DebUpstream.md +++ b/bindings/java/src/docs/DebUpstream.md @@ -74,6 +74,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DebUpstreamRequest.md b/bindings/java/src/docs/DebUpstreamRequest.md index 18bd0ba8..6ceec0ae 100644 --- a/bindings/java/src/docs/DebUpstreamRequest.md +++ b/bindings/java/src/docs/DebUpstreamRequest.md @@ -49,6 +49,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/DebUpstreamRequestPatch.md b/bindings/java/src/docs/DebUpstreamRequestPatch.md index d5febf90..b8cdd2bb 100644 --- a/bindings/java/src/docs/DebUpstreamRequestPatch.md +++ b/bindings/java/src/docs/DebUpstreamRequestPatch.md @@ -49,6 +49,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/FormatSupportUpstream.md b/bindings/java/src/docs/FormatSupportUpstream.md index 9a80a3ad..5feaf012 100644 --- a/bindings/java/src/docs/FormatSupportUpstream.md +++ b/bindings/java/src/docs/FormatSupportUpstream.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **authModes** | [**List<AuthModesEnum>**](#List<AuthModesEnum>) | The authentication modes supported by the upstream format | +**cacheOnly** | **Boolean** | If true the upstream format supports cache-only mode. | **caching** | **Boolean** | If true the upstream format supports caching | **indexing** | **Boolean** | If true the upstream format supports indexing | **indexingBehavior** | [**IndexingBehaviorEnum**](#IndexingBehaviorEnum) | The behavior of the upstream when indexing | [optional] diff --git a/bindings/java/src/docs/GenericUpstream.md b/bindings/java/src/docs/GenericUpstream.md index ac4bb09c..f681dd75 100644 --- a/bindings/java/src/docs/GenericUpstream.md +++ b/bindings/java/src/docs/GenericUpstream.md @@ -58,6 +58,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/GenericUpstreamRequest.md b/bindings/java/src/docs/GenericUpstreamRequest.md index f3915d5e..1f91e17b 100644 --- a/bindings/java/src/docs/GenericUpstreamRequest.md +++ b/bindings/java/src/docs/GenericUpstreamRequest.md @@ -35,6 +35,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/GenericUpstreamRequestPatch.md b/bindings/java/src/docs/GenericUpstreamRequestPatch.md index d68337ea..c562064e 100644 --- a/bindings/java/src/docs/GenericUpstreamRequestPatch.md +++ b/bindings/java/src/docs/GenericUpstreamRequestPatch.md @@ -35,6 +35,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HelmUpstream.md b/bindings/java/src/docs/HelmUpstream.md index 4dc8593c..b5cc0851 100644 --- a/bindings/java/src/docs/HelmUpstream.md +++ b/bindings/java/src/docs/HelmUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HelmUpstreamRequest.md b/bindings/java/src/docs/HelmUpstreamRequest.md index 703e53a9..70b4c199 100644 --- a/bindings/java/src/docs/HelmUpstreamRequest.md +++ b/bindings/java/src/docs/HelmUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HelmUpstreamRequestPatch.md b/bindings/java/src/docs/HelmUpstreamRequestPatch.md index a505efe6..eac78dba 100644 --- a/bindings/java/src/docs/HelmUpstreamRequestPatch.md +++ b/bindings/java/src/docs/HelmUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HexUpstream.md b/bindings/java/src/docs/HexUpstream.md index 4f5bc990..7321dee2 100644 --- a/bindings/java/src/docs/HexUpstream.md +++ b/bindings/java/src/docs/HexUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HexUpstreamRequest.md b/bindings/java/src/docs/HexUpstreamRequest.md index 050a7b55..57411e4f 100644 --- a/bindings/java/src/docs/HexUpstreamRequest.md +++ b/bindings/java/src/docs/HexUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/HexUpstreamRequestPatch.md b/bindings/java/src/docs/HexUpstreamRequestPatch.md index 059e9c90..6c2dfd8e 100644 --- a/bindings/java/src/docs/HexUpstreamRequestPatch.md +++ b/bindings/java/src/docs/HexUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NpmUpstream.md b/bindings/java/src/docs/NpmUpstream.md index aeae7c71..2beccc0c 100644 --- a/bindings/java/src/docs/NpmUpstream.md +++ b/bindings/java/src/docs/NpmUpstream.md @@ -58,6 +58,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NpmUpstreamRequest.md b/bindings/java/src/docs/NpmUpstreamRequest.md index f1430ff4..a7c1fa79 100644 --- a/bindings/java/src/docs/NpmUpstreamRequest.md +++ b/bindings/java/src/docs/NpmUpstreamRequest.md @@ -35,6 +35,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NpmUpstreamRequestPatch.md b/bindings/java/src/docs/NpmUpstreamRequestPatch.md index 1ff1d40c..3308c8bf 100644 --- a/bindings/java/src/docs/NpmUpstreamRequestPatch.md +++ b/bindings/java/src/docs/NpmUpstreamRequestPatch.md @@ -35,6 +35,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NugetUpstream.md b/bindings/java/src/docs/NugetUpstream.md index 0c4159f8..e74792d2 100644 --- a/bindings/java/src/docs/NugetUpstream.md +++ b/bindings/java/src/docs/NugetUpstream.md @@ -56,6 +56,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NugetUpstreamRequest.md b/bindings/java/src/docs/NugetUpstreamRequest.md index ddfb246e..fb1953a8 100644 --- a/bindings/java/src/docs/NugetUpstreamRequest.md +++ b/bindings/java/src/docs/NugetUpstreamRequest.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/NugetUpstreamRequestPatch.md b/bindings/java/src/docs/NugetUpstreamRequestPatch.md index 1b9fd08a..e8edcac8 100644 --- a/bindings/java/src/docs/NugetUpstreamRequestPatch.md +++ b/bindings/java/src/docs/NugetUpstreamRequestPatch.md @@ -33,6 +33,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/OrganizationSAMLAuth.md b/bindings/java/src/docs/OrganizationSAMLAuth.md index 81679c55..527f41fd 100644 --- a/bindings/java/src/docs/OrganizationSAMLAuth.md +++ b/bindings/java/src/docs/OrganizationSAMLAuth.md @@ -7,7 +7,9 @@ Name | Type | Description | Notes **samlAuthEnabled** | **Boolean** | | **samlAuthEnforced** | **Boolean** | | **samlMetadataInline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**samlMetadataInlineWebapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **samlMetadataUrl** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**samlMetadataUrlWebapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] diff --git a/bindings/java/src/docs/OrganizationSAMLAuthRequestPatch.md b/bindings/java/src/docs/OrganizationSAMLAuthRequestPatch.md index fcef5546..26a19191 100644 --- a/bindings/java/src/docs/OrganizationSAMLAuthRequestPatch.md +++ b/bindings/java/src/docs/OrganizationSAMLAuthRequestPatch.md @@ -7,7 +7,9 @@ Name | Type | Description | Notes **samlAuthEnabled** | **Boolean** | | [optional] **samlAuthEnforced** | **Boolean** | | [optional] **samlMetadataInline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**samlMetadataInlineWebapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **samlMetadataUrl** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**samlMetadataUrlWebapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] diff --git a/bindings/java/src/docs/OrgsApi.md b/bindings/java/src/docs/OrgsApi.md index c42cd4cf..7b299147 100644 --- a/bindings/java/src/docs/OrgsApi.md +++ b/bindings/java/src/docs/OrgsApi.md @@ -1592,7 +1592,7 @@ Name | Type | Description | Notes # **orgsList** -> List<Organization> orgsList(page, pageSize) +> List<Organization> orgsList(page, pageSize, sort) Get a list of all the organizations you are associated with. @@ -1623,8 +1623,9 @@ basic.setPassword("YOUR PASSWORD"); OrgsApi apiInstance = new OrgsApi(); java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +String sort = "name"; // String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. try { - List result = apiInstance.orgsList(page, pageSize); + List result = apiInstance.orgsList(page, pageSize, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrgsApi#orgsList"); @@ -1638,6 +1639,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. | [optional] [default to name] ### Return type diff --git a/bindings/java/src/docs/PackagesApi.md b/bindings/java/src/docs/PackagesApi.md index 7e60cd10..ed49fec1 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -208,7 +208,7 @@ null (empty response body) # **packagesDependencies** -> PackageDependencies packagesDependencies(owner, repo, identifier) +> PackageDependencies packagesDependencies(owner, repo, identifier, includeConnectedRepositories) Get the list of dependencies for a package. Transitive dependencies are included where supported. @@ -240,8 +240,9 @@ PackagesApi apiInstance = new PackagesApi(); String owner = "owner_example"; // String | String repo = "repo_example"; // String | String identifier = "identifier_example"; // String | +Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. try { - PackageDependencies result = apiInstance.packagesDependencies(owner, repo, identifier); + PackageDependencies result = apiInstance.packagesDependencies(owner, repo, identifier, includeConnectedRepositories); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesDependencies"); @@ -256,6 +257,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -272,7 +274,7 @@ Name | Type | Description | Notes # **packagesGroupsList** -> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort) +> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort) Return a list of Package Groups in a repository. @@ -307,10 +309,11 @@ java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. String groupBy = "name"; // String | A field to group packages by. Available options: name, backend_kind. Boolean hideSubcomponents = false; // Boolean | Whether to hide packages which are subcomponents of another package in the results +Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. String sort = "name"; // String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. try { - InlineResponse200 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); + InlineResponse200 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesGroupsList"); @@ -328,6 +331,7 @@ Name | Type | Description | Notes **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] **groupBy** | **String**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] **hideSubcomponents** | **Boolean**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] + **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. | [optional] [default to false] **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] @@ -346,7 +350,7 @@ Name | Type | Description | Notes # **packagesList** -> List<ModelPackage> packagesList(owner, repo, page, pageSize, query, sort) +> List<ModelPackage> packagesList(owner, repo, page, pageSize, includeConnectedRepositories, query, sort) Get a list of all packages associated with repository. @@ -379,10 +383,11 @@ String owner = "owner_example"; // String | String repo = "repo_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. String sort = "-date"; // String | A field for sorting objects in ascending or descending order. try { - List result = apiInstance.packagesList(owner, repo, page, pageSize, query, sort); + List result = apiInstance.packagesList(owner, repo, page, pageSize, includeConnectedRepositories, query, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesList"); @@ -398,6 +403,7 @@ Name | Type | Description | Notes **repo** | **String**| | **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] @@ -548,7 +554,7 @@ Name | Type | Description | Notes # **packagesRead** -> ModelPackage packagesRead(owner, repo, identifier) +> ModelPackage packagesRead(owner, repo, identifier, includeConnectedRepositories) Get a specific package in a repository. @@ -580,8 +586,9 @@ PackagesApi apiInstance = new PackagesApi(); String owner = "owner_example"; // String | String repo = "repo_example"; // String | String identifier = "identifier_example"; // String | +Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. try { - ModelPackage result = apiInstance.packagesRead(owner, repo, identifier); + ModelPackage result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesRead"); @@ -596,6 +603,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -740,7 +748,7 @@ Name | Type | Description | Notes # **packagesStatus** -> PackageStatus packagesStatus(owner, repo, identifier) +> PackageStatus packagesStatus(owner, repo, identifier, includeConnectedRepositories) Get the synchronization status for a package. @@ -772,8 +780,9 @@ PackagesApi apiInstance = new PackagesApi(); String owner = "owner_example"; // String | String repo = "repo_example"; // String | String identifier = "identifier_example"; // String | +Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. try { - PackageStatus result = apiInstance.packagesStatus(owner, repo, identifier); + PackageStatus result = apiInstance.packagesStatus(owner, repo, identifier, includeConnectedRepositories); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesStatus"); @@ -788,6 +797,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type diff --git a/bindings/java/src/docs/PythonUpstream.md b/bindings/java/src/docs/PythonUpstream.md index b3093403..b16c506b 100644 --- a/bindings/java/src/docs/PythonUpstream.md +++ b/bindings/java/src/docs/PythonUpstream.md @@ -57,6 +57,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/PythonUpstreamRequest.md b/bindings/java/src/docs/PythonUpstreamRequest.md index 121902a4..ac321b66 100644 --- a/bindings/java/src/docs/PythonUpstreamRequest.md +++ b/bindings/java/src/docs/PythonUpstreamRequest.md @@ -34,6 +34,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/PythonUpstreamRequestPatch.md b/bindings/java/src/docs/PythonUpstreamRequestPatch.md index ed403d83..68e5cf0f 100644 --- a/bindings/java/src/docs/PythonUpstreamRequestPatch.md +++ b/bindings/java/src/docs/PythonUpstreamRequestPatch.md @@ -34,6 +34,7 @@ Name | Value ---- | ----- PROXY_ONLY | "Proxy Only" CACHE_AND_PROXY | "Cache and Proxy" +CACHE_ONLY | "Cache Only" diff --git a/bindings/java/src/docs/ReposApi.md b/bindings/java/src/docs/ReposApi.md index 150d5194..a430cb1b 100644 --- a/bindings/java/src/docs/ReposApi.md +++ b/bindings/java/src/docs/ReposApi.md @@ -1844,7 +1844,7 @@ String owner = "owner_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. String query = ""; // String | A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. -String sort = "-created_at"; // String | A field for sorting objects in ascending or descending order. +String sort = "-created_at"; // String | A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. try { List result = apiInstance.reposNamespaceList(owner, page, pageSize, query, sort); System.out.println(result); @@ -1862,7 +1862,7 @@ Name | Type | Description | Notes **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] **query** | **String**| A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. | [optional] [default to ] - **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -created_at] + **sort** | **String**| A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. | [optional] [default to -created_at] ### Return type diff --git a/bindings/java/src/docs/Repository.md b/bindings/java/src/docs/Repository.md index a713096a..641cc477 100644 --- a/bindings/java/src/docs/Repository.md +++ b/bindings/java/src/docs/Repository.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**activeConnectionCount** | **java.math.BigInteger** | Number of active connections for the repository | [optional] **broadcastState** | [**BroadcastStateEnum**](#BroadcastStateEnum) | Broadcasting status of a repository. | [optional] **cdnUrl** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional] **contentKind** | [**ContentKindEnum**](#ContentKindEnum) | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] diff --git a/bindings/java/src/docs/RepositoryCreate.md b/bindings/java/src/docs/RepositoryCreate.md index 3f19a53e..cf5744e7 100644 --- a/bindings/java/src/docs/RepositoryCreate.md +++ b/bindings/java/src/docs/RepositoryCreate.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**activeConnectionCount** | **java.math.BigInteger** | Number of active connections for the repository | [optional] **broadcastState** | [**BroadcastStateEnum**](#BroadcastStateEnum) | Broadcasting status of a repository. | [optional] **cdnUrl** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional] **contentKind** | [**ContentKindEnum**](#ContentKindEnum) | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] diff --git a/bindings/java/src/docs/RepositoryEd25519Key.md b/bindings/java/src/docs/RepositoryEd25519Key.md index ada03fb6..e933fe00 100644 --- a/bindings/java/src/docs/RepositoryEd25519Key.md +++ b/bindings/java/src/docs/RepositoryEd25519Key.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **fingerprint** | **String** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] **fingerprintShort** | **String** | | [optional] **publicKey** | **String** | The public key given to repository users. | [optional] +**publicKeyWire** | **String** | The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`. | [optional] diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 40a18675..114f89af 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.27 + 2.0.29 https://api.cloudsmith.io/?format=openapi Cloudsmith API diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java index 77882651..41636664 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java @@ -87,7 +87,7 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/2.0.27/java"); + setUserAgent("Swagger-Codegen/2.0.29/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java index a0cc57e4..0f82e24f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java @@ -3648,12 +3648,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for orgsList * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (optional, default to name) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call orgsListCall(java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call orgsListCall(java.math.BigInteger page, java.math.BigInteger pageSize, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3665,6 +3666,8 @@ public com.squareup.okhttp.Call orgsListCall(java.math.BigInteger page, java.mat localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + if (sort != null) + localVarQueryParams.addAll(apiClient.parameterToPair("sort", sort)); Map localVarHeaderParams = new HashMap(); @@ -3702,18 +3705,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call orgsListValidateBeforeCall(java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call orgsListValidateBeforeCall(java.math.BigInteger page, java.math.BigInteger pageSize, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { page, pageSize }; - Method method = this.getClass().getMethod("orgsListWithHttpInfo", java.math.BigInteger.class, java.math.BigInteger.class); + Object[] parameterValues = { page, pageSize, sort }; + Method method = this.getClass().getMethod("orgsListWithHttpInfo", java.math.BigInteger.class, java.math.BigInteger.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = orgsListCall(page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = orgsListCall(page, pageSize, sort, progressListener, progressRequestListener); return call; } else { @@ -3734,11 +3737,12 @@ private com.squareup.okhttp.Call orgsListValidateBeforeCall(java.math.BigInteger * Get a list of all the organizations you are associated with. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (optional, default to name) * @return List<Organization> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List orgsList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = orgsListWithHttpInfo(page, pageSize); + public List orgsList(java.math.BigInteger page, java.math.BigInteger pageSize, String sort) throws ApiException { + ApiResponse> resp = orgsListWithHttpInfo(page, pageSize, sort); return resp.getData(); } @@ -3747,11 +3751,12 @@ public List orgsList(java.math.BigInteger page, java.math.BigInteg * Get a list of all the organizations you are associated with. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (optional, default to name) * @return ApiResponse<List<Organization>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> orgsListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = orgsListValidateBeforeCall(page, pageSize, null, null); + public ApiResponse> orgsListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize, String sort) throws ApiException { + com.squareup.okhttp.Call call = orgsListValidateBeforeCall(page, pageSize, sort, null, null); Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -3761,11 +3766,12 @@ public ApiResponse> orgsListWithHttpInfo( java.math.BigIntege * Get a list of all the organizations you are associated with. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (optional, default to name) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call orgsListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call orgsListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, String sort, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3786,7 +3792,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = orgsListValidateBeforeCall(page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = orgsListValidateBeforeCall(page, pageSize, sort, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index af5c83f5..aa0c37e7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java @@ -444,12 +444,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call packagesDependenciesCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call packagesDependenciesCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -460,6 +461,8 @@ public com.squareup.okhttp.Call packagesDependenciesCall(String owner, String re List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (includeConnectedRepositories != null) + localVarQueryParams.addAll(apiClient.parameterToPair("include_connected_repositories", includeConnectedRepositories)); Map localVarHeaderParams = new HashMap(); @@ -497,18 +500,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, repo, identifier }; - Method method = this.getClass().getMethod("packagesDependenciesWithHttpInfo", String.class, String.class, String.class); + Object[] parameterValues = { owner, repo, identifier, includeConnectedRepositories }; + Method method = this.getClass().getMethod("packagesDependenciesWithHttpInfo", String.class, String.class, String.class, Boolean.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = packagesDependenciesCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesDependenciesCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); return call; } else { @@ -530,11 +533,12 @@ private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String o * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return PackageDependencies * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PackageDependencies packagesDependencies(String owner, String repo, String identifier) throws ApiException { - ApiResponse resp = packagesDependenciesWithHttpInfo(owner, repo, identifier); + public PackageDependencies packagesDependencies(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { + ApiResponse resp = packagesDependenciesWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); return resp.getData(); } @@ -544,11 +548,12 @@ public PackageDependencies packagesDependencies(String owner, String repo, Strin * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return ApiResponse<PackageDependencies> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesDependenciesWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = packagesDependenciesValidateBeforeCall(owner, repo, identifier, null, null); + public ApiResponse packagesDependenciesWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { + com.squareup.okhttp.Call call = packagesDependenciesValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -559,11 +564,12 @@ public ApiResponse packagesDependenciesWithHttpInfo( @NotNu * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesDependenciesAsync(String owner, String repo, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesDependenciesAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -584,7 +590,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesDependenciesValidateBeforeCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesDependenciesValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -597,6 +603,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pageSize Number of results to return per page. (optional) * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) * @param hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) * @param progressListener Progress listener @@ -604,7 +611,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -622,6 +629,8 @@ public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo localVarQueryParams.addAll(apiClient.parameterToPair("group_by", groupBy)); if (hideSubcomponents != null) localVarQueryParams.addAll(apiClient.parameterToPair("hide_subcomponents", hideSubcomponents)); + if (includeConnectedRepositories != null) + localVarQueryParams.addAll(apiClient.parameterToPair("include_connected_repositories", includeConnectedRepositories)); if (query != null) localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); if (sort != null) @@ -663,18 +672,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort }; - Method method = this.getClass().getMethod("packagesGroupsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class, Boolean.class, String.class, String.class); + Object[] parameterValues = { owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort }; + Method method = this.getClass().getMethod("packagesGroupsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class, Boolean.class, Boolean.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = packagesGroupsListCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesGroupsListCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort, progressListener, progressRequestListener); return call; } else { @@ -699,13 +708,14 @@ private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String own * @param pageSize Number of results to return per page. (optional) * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) * @param hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) * @return InlineResponse200 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse200 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort) throws ApiException { - ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); + public InlineResponse200 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); return resp.getData(); } @@ -718,13 +728,14 @@ public InlineResponse200 packagesGroupsList(String owner, String repo, java.math * @param pageSize Number of results to return per page. (optional) * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) * @param hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) * @return ApiResponse<InlineResponse200> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort) throws ApiException { - com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, null, null); + public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -738,13 +749,14 @@ public ApiResponse packagesGroupsListWithHttpInfo( @NotNull S * @param pageSize Number of results to return per page. (optional) * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) * @param hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, Boolean includeConnectedRepositories, String query, String sort, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -765,7 +777,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -776,6 +788,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param repo (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @param progressListener Progress listener @@ -783,7 +796,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call packagesListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call packagesListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean includeConnectedRepositories, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -797,6 +810,8 @@ public com.squareup.okhttp.Call packagesListCall(String owner, String repo, java localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + if (includeConnectedRepositories != null) + localVarQueryParams.addAll(apiClient.parameterToPair("include_connected_repositories", includeConnectedRepositories)); if (query != null) localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); if (sort != null) @@ -838,18 +853,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean includeConnectedRepositories, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, repo, page, pageSize, query, sort }; - Method method = this.getClass().getMethod("packagesListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class, String.class); + Object[] parameterValues = { owner, repo, page, pageSize, includeConnectedRepositories, query, sort }; + Method method = this.getClass().getMethod("packagesListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, Boolean.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = packagesListCall(owner, repo, page, pageSize, query, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesListCall(owner, repo, page, pageSize, includeConnectedRepositories, query, sort, progressListener, progressRequestListener); return call; } else { @@ -872,13 +887,14 @@ private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, St * @param repo (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @return List<ModelPackage> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List packagesList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String query, String sort) throws ApiException { - ApiResponse> resp = packagesListWithHttpInfo(owner, repo, page, pageSize, query, sort); + public List packagesList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + ApiResponse> resp = packagesListWithHttpInfo(owner, repo, page, pageSize, includeConnectedRepositories, query, sort); return resp.getData(); } @@ -889,13 +905,14 @@ public List packagesList(String owner, String repo, java.math.BigI * @param repo (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @return ApiResponse<List<ModelPackage>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> packagesListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String query, String sort) throws ApiException { - com.squareup.okhttp.Call call = packagesListValidateBeforeCall(owner, repo, page, pageSize, query, sort, null, null); + public ApiResponse> packagesListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean includeConnectedRepositories, String query, String sort) throws ApiException { + com.squareup.okhttp.Call call = packagesListValidateBeforeCall(owner, repo, page, pageSize, includeConnectedRepositories, query, sort, null, null); Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -907,13 +924,14 @@ public ApiResponse> packagesListWithHttpInfo( @NotNull String * @param repo (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String query, String sort, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call packagesListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean includeConnectedRepositories, String query, String sort, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -934,7 +952,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesListValidateBeforeCall(owner, repo, page, pageSize, query, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesListValidateBeforeCall(owner, repo, page, pageSize, includeConnectedRepositories, query, sort, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -1252,12 +1270,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call packagesReadCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call packagesReadCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1268,6 +1287,8 @@ public com.squareup.okhttp.Call packagesReadCall(String owner, String repo, Stri List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (includeConnectedRepositories != null) + localVarQueryParams.addAll(apiClient.parameterToPair("include_connected_repositories", includeConnectedRepositories)); Map localVarHeaderParams = new HashMap(); @@ -1305,18 +1326,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, repo, identifier }; - Method method = this.getClass().getMethod("packagesReadWithHttpInfo", String.class, String.class, String.class); + Object[] parameterValues = { owner, repo, identifier, includeConnectedRepositories }; + Method method = this.getClass().getMethod("packagesReadWithHttpInfo", String.class, String.class, String.class, Boolean.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = packagesReadCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesReadCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); return call; } else { @@ -1338,11 +1359,12 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return ModelPackage * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ModelPackage packagesRead(String owner, String repo, String identifier) throws ApiException { - ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier); + public ModelPackage packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { + ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); return resp.getData(); } @@ -1352,11 +1374,12 @@ public ModelPackage packagesRead(String owner, String repo, String identifier) t * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return ApiResponse<ModelPackage> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, null, null); + public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { + com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1367,11 +1390,12 @@ public ApiResponse packagesReadWithHttpInfo( @NotNull String owner * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1392,7 +1416,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -1702,12 +1726,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call packagesStatusCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call packagesStatusCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1718,6 +1743,8 @@ public com.squareup.okhttp.Call packagesStatusCall(String owner, String repo, St List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (includeConnectedRepositories != null) + localVarQueryParams.addAll(apiClient.parameterToPair("include_connected_repositories", includeConnectedRepositories)); Map localVarHeaderParams = new HashMap(); @@ -1755,18 +1782,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, repo, identifier }; - Method method = this.getClass().getMethod("packagesStatusWithHttpInfo", String.class, String.class, String.class); + Object[] parameterValues = { owner, repo, identifier, includeConnectedRepositories }; + Method method = this.getClass().getMethod("packagesStatusWithHttpInfo", String.class, String.class, String.class, Boolean.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = packagesStatusCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesStatusCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); return call; } else { @@ -1788,11 +1815,12 @@ private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return PackageStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PackageStatus packagesStatus(String owner, String repo, String identifier) throws ApiException { - ApiResponse resp = packagesStatusWithHttpInfo(owner, repo, identifier); + public PackageStatus packagesStatus(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { + ApiResponse resp = packagesStatusWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); return resp.getData(); } @@ -1802,11 +1830,12 @@ public PackageStatus packagesStatus(String owner, String repo, String identifier * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @return ApiResponse<PackageStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesStatusWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = packagesStatusValidateBeforeCall(owner, repo, identifier, null, null); + public ApiResponse packagesStatusWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { + com.squareup.okhttp.Call call = packagesStatusValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1817,11 +1846,12 @@ public ApiResponse packagesStatusWithHttpInfo( @NotNull String ow * @param owner (required) * @param repo (required) * @param identifier (required) + * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesStatusAsync(String owner, String repo, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesStatusAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1842,7 +1872,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesStatusValidateBeforeCall(owner, repo, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesStatusValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java index 3026ad7e..8ef14d38 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java @@ -3998,7 +3998,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (optional, default to ) - * @param sort A field for sorting objects in ascending or descending order. (optional, default to -created_at) + * @param sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (optional, default to -created_at) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute @@ -4092,7 +4092,7 @@ private com.squareup.okhttp.Call reposNamespaceListValidateBeforeCall(String own * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (optional, default to ) - * @param sort A field for sorting objects in ascending or descending order. (optional, default to -created_at) + * @param sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (optional, default to -created_at) * @return List<Repository> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ @@ -4108,7 +4108,7 @@ public List reposNamespaceList(String owner, java.math.BigInteger pa * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (optional, default to ) - * @param sort A field for sorting objects in ascending or descending order. (optional, default to -created_at) + * @param sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (optional, default to -created_at) * @return ApiResponse<List<Repository>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ @@ -4125,7 +4125,7 @@ public ApiResponse> reposNamespaceListWithHttpInfo( @NotNull St * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (optional, default to ) - * @param sort A field for sorting objects in ascending or descending order. (optional, default to -created_at) + * @param sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (optional, default to -created_at) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java index 56977cf5..ad57fc6e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java index 67256e28..9cb2ddf8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java index a712c801..590397b2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstream.java index 5c430251..c6ff22ff 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequest.java index 4c29a6fc..a10a2b33 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequestPatch.java index d453cb8a..304e4ceb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java index 9cba60c3..d3d54480 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java index 1b3e18b4..1c3219a7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.java index 4f6107c6..a55538bc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java index ad9b1f7d..bfd5503d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java @@ -38,8 +38,61 @@ public class ConnectedRepository implements Serializable { @SerializedName("created_at") private OffsetDateTime createdAt = null; + /** + * Gets or Sets disableReason + */ + @JsonAdapter(DisableReasonEnum.Adapter.class) + public enum DisableReasonEnum { + N_A("N/A"), + + THE_CONNECTION_CONTAINS_A_CIRCULAR_REFERENCE("The connection contains a circular reference"); + + private String value; + + DisableReasonEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DisableReasonEnum fromValue(String text) { + for (DisableReasonEnum b : DisableReasonEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DisableReasonEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DisableReasonEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("disable_reason") + private DisableReasonEnum disableReason = DisableReasonEnum.N_A; + + @SerializedName("disable_reason_text") + private String disableReasonText = null; + @SerializedName("is_active") - private Boolean isActive = true; + private Boolean isActive = false; @SerializedName("priority") private java.math.BigInteger priority = null; @@ -60,6 +113,24 @@ public OffsetDateTime getCreatedAt() { return createdAt; } + /** + * Get disableReason + * @return disableReason + **/ + @ApiModelProperty(value = "") + public DisableReasonEnum getDisableReason() { + return disableReason; + } + + /** + * Human-readable explanation of why this connection is disabled. + * @return disableReasonText + **/ + @ApiModelProperty(value = "Human-readable explanation of why this connection is disabled.") + public String getDisableReasonText() { + return disableReasonText; + } + public ConnectedRepository isActive(Boolean isActive) { this.isActive = isActive; return this; @@ -137,6 +208,8 @@ public boolean equals(java.lang.Object o) { } ConnectedRepository connectedRepository = (ConnectedRepository) o; return Objects.equals(this.createdAt, connectedRepository.createdAt) && + Objects.equals(this.disableReason, connectedRepository.disableReason) && + Objects.equals(this.disableReasonText, connectedRepository.disableReasonText) && Objects.equals(this.isActive, connectedRepository.isActive) && Objects.equals(this.priority, connectedRepository.priority) && Objects.equals(this.slugPerm, connectedRepository.slugPerm) && @@ -145,7 +218,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(createdAt, isActive, priority, slugPerm, targetRepository); + return Objects.hash(createdAt, disableReason, disableReasonText, isActive, priority, slugPerm, targetRepository); } @@ -155,6 +228,8 @@ public String toString() { sb.append("class ConnectedRepository {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" disableReason: ").append(toIndentedString(disableReason)).append("\n"); + sb.append(" disableReasonText: ").append(toIndentedString(disableReasonText)).append("\n"); sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java index ae079bb9..c5302a56 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java @@ -35,7 +35,7 @@ public class ConnectedRepositoryRequest implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("is_active") - private Boolean isActive = true; + private Boolean isActive = false; @SerializedName("priority") private java.math.BigInteger priority = null; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java index d6437e97..014a96e7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java @@ -35,7 +35,7 @@ public class ConnectedRepositoryRequestPatch implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("is_active") - private Boolean isActive = true; + private Boolean isActive = false; @SerializedName("priority") private java.math.BigInteger priority = null; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstream.java index b60ec72b..604022ad 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequest.java index 346ff70b..d5cee3e1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequestPatch.java index 8d6e82d1..ae644652 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstream.java index 38cafbb5..4a9d08ac 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequest.java index e4e3e3b1..a176a062 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequestPatch.java index 32a33d7e..889f77fb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstream.java index 28f1b0a6..b0a91e8a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstream.java @@ -265,7 +265,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequest.java index 9da7a63d..1ad134db 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequest.java @@ -181,7 +181,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequestPatch.java index 408106f5..178f98f6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebUpstreamRequestPatch.java @@ -181,7 +181,9 @@ public GpgVerificationEnum read(final JsonReader jsonReader) throws IOException public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatSupportUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatSupportUpstream.java index b34927e5..c1b9e094 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatSupportUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatSupportUpstream.java @@ -89,6 +89,9 @@ public AuthModesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("auth_modes") private List authModes = new ArrayList<>(); + @SerializedName("cache_only") + private Boolean cacheOnly = null; + @SerializedName("caching") private Boolean caching = null; @@ -231,6 +234,25 @@ public void setAuthModes(List authModes) { this.authModes = authModes; } + public FormatSupportUpstream cacheOnly(Boolean cacheOnly) { + this.cacheOnly = cacheOnly; + return this; + } + + /** + * If true the upstream format supports cache-only mode. + * @return cacheOnly + **/ + @NotNull + @ApiModelProperty(required = true, value = "If true the upstream format supports cache-only mode.") + public Boolean isCacheOnly() { + return cacheOnly; + } + + public void setCacheOnly(Boolean cacheOnly) { + this.cacheOnly = cacheOnly; + } + public FormatSupportUpstream caching(Boolean caching) { this.caching = caching; return this; @@ -354,6 +376,7 @@ public boolean equals(java.lang.Object o) { } FormatSupportUpstream formatSupportUpstream = (FormatSupportUpstream) o; return Objects.equals(this.authModes, formatSupportUpstream.authModes) && + Objects.equals(this.cacheOnly, formatSupportUpstream.cacheOnly) && Objects.equals(this.caching, formatSupportUpstream.caching) && Objects.equals(this.indexing, formatSupportUpstream.indexing) && Objects.equals(this.indexingBehavior, formatSupportUpstream.indexingBehavior) && @@ -364,7 +387,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(authModes, caching, indexing, indexingBehavior, proxying, signatureVerification, trust); + return Objects.hash(authModes, cacheOnly, caching, indexing, indexingBehavior, proxying, signatureVerification, trust); } @@ -374,6 +397,7 @@ public String toString() { sb.append("class FormatSupportUpstream {\n"); sb.append(" authModes: ").append(toIndentedString(authModes)).append("\n"); + sb.append(" cacheOnly: ").append(toIndentedString(cacheOnly)).append("\n"); sb.append(" caching: ").append(toIndentedString(caching)).append("\n"); sb.append(" indexing: ").append(toIndentedString(indexing)).append("\n"); sb.append(" indexingBehavior: ").append(toIndentedString(indexingBehavior)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstream.java index 9a0cf69f..5525852d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstream.java @@ -195,7 +195,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequest.java index 1bd88354..498e2efc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequest.java @@ -114,7 +114,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequestPatch.java index fd1b5188..69b80f77 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericUpstreamRequestPatch.java @@ -114,7 +114,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstream.java index 3231aafd..0fd0e562 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequest.java index 33501d0b..d38fbded 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequestPatch.java index 490dc158..2939da98 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstream.java index e3b5d8f3..6146c1cb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequest.java index 69513423..e27c0e6f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequestPatch.java index 02d5192e..2219eea2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstream.java index d467e8e1..aee8d96a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstream.java @@ -195,7 +195,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequest.java index 8b8cebbd..5908156b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequest.java @@ -114,7 +114,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequestPatch.java index 7dadfbd2..079ad20e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmUpstreamRequestPatch.java @@ -114,7 +114,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstream.java index 6d4043c2..8cc09854 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequest.java index 00e6c0dd..b10383fd 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequestPatch.java index 2116a5f6..99793894 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuth.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuth.java index 327d3d97..1a5f3af8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuth.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuth.java @@ -43,9 +43,15 @@ public class OrganizationSAMLAuth implements Serializable { @SerializedName("saml_metadata_inline") private String samlMetadataInline = null; + @SerializedName("saml_metadata_inline_webapp") + private String samlMetadataInlineWebapp = null; + @SerializedName("saml_metadata_url") private String samlMetadataUrl = null; + @SerializedName("saml_metadata_url_webapp") + private String samlMetadataUrlWebapp = null; + public OrganizationSAMLAuth samlAuthEnabled(Boolean samlAuthEnabled) { this.samlAuthEnabled = samlAuthEnabled; return this; @@ -102,6 +108,24 @@ public void setSamlMetadataInline(String samlMetadataInline) { this.samlMetadataInline = samlMetadataInline; } + public OrganizationSAMLAuth samlMetadataInlineWebapp(String samlMetadataInlineWebapp) { + this.samlMetadataInlineWebapp = samlMetadataInlineWebapp; + return this; + } + + /** + * When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + * @return samlMetadataInlineWebapp + **/ + @Size(max=32000) @ApiModelProperty(value = "When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.") + public String getSamlMetadataInlineWebapp() { + return samlMetadataInlineWebapp; + } + + public void setSamlMetadataInlineWebapp(String samlMetadataInlineWebapp) { + this.samlMetadataInlineWebapp = samlMetadataInlineWebapp; + } + public OrganizationSAMLAuth samlMetadataUrl(String samlMetadataUrl) { this.samlMetadataUrl = samlMetadataUrl; return this; @@ -120,6 +144,24 @@ public void setSamlMetadataUrl(String samlMetadataUrl) { this.samlMetadataUrl = samlMetadataUrl; } + public OrganizationSAMLAuth samlMetadataUrlWebapp(String samlMetadataUrlWebapp) { + this.samlMetadataUrlWebapp = samlMetadataUrlWebapp; + return this; + } + + /** + * When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + * @return samlMetadataUrlWebapp + **/ + @Size(max=254) @ApiModelProperty(value = "When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.") + public String getSamlMetadataUrlWebapp() { + return samlMetadataUrlWebapp; + } + + public void setSamlMetadataUrlWebapp(String samlMetadataUrlWebapp) { + this.samlMetadataUrlWebapp = samlMetadataUrlWebapp; + } + @Override public boolean equals(java.lang.Object o) { @@ -133,12 +175,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.samlAuthEnabled, organizationSAMLAuth.samlAuthEnabled) && Objects.equals(this.samlAuthEnforced, organizationSAMLAuth.samlAuthEnforced) && Objects.equals(this.samlMetadataInline, organizationSAMLAuth.samlMetadataInline) && - Objects.equals(this.samlMetadataUrl, organizationSAMLAuth.samlMetadataUrl); + Objects.equals(this.samlMetadataInlineWebapp, organizationSAMLAuth.samlMetadataInlineWebapp) && + Objects.equals(this.samlMetadataUrl, organizationSAMLAuth.samlMetadataUrl) && + Objects.equals(this.samlMetadataUrlWebapp, organizationSAMLAuth.samlMetadataUrlWebapp); } @Override public int hashCode() { - return Objects.hash(samlAuthEnabled, samlAuthEnforced, samlMetadataInline, samlMetadataUrl); + return Objects.hash(samlAuthEnabled, samlAuthEnforced, samlMetadataInline, samlMetadataInlineWebapp, samlMetadataUrl, samlMetadataUrlWebapp); } @@ -150,7 +194,9 @@ public String toString() { sb.append(" samlAuthEnabled: ").append(toIndentedString(samlAuthEnabled)).append("\n"); sb.append(" samlAuthEnforced: ").append(toIndentedString(samlAuthEnforced)).append("\n"); sb.append(" samlMetadataInline: ").append(toIndentedString(samlMetadataInline)).append("\n"); + sb.append(" samlMetadataInlineWebapp: ").append(toIndentedString(samlMetadataInlineWebapp)).append("\n"); sb.append(" samlMetadataUrl: ").append(toIndentedString(samlMetadataUrl)).append("\n"); + sb.append(" samlMetadataUrlWebapp: ").append(toIndentedString(samlMetadataUrlWebapp)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuthRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuthRequestPatch.java index 9cd71d51..3bc6ab81 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuthRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationSAMLAuthRequestPatch.java @@ -43,9 +43,15 @@ public class OrganizationSAMLAuthRequestPatch implements Serializable { @SerializedName("saml_metadata_inline") private String samlMetadataInline = null; + @SerializedName("saml_metadata_inline_webapp") + private String samlMetadataInlineWebapp = null; + @SerializedName("saml_metadata_url") private String samlMetadataUrl = null; + @SerializedName("saml_metadata_url_webapp") + private String samlMetadataUrlWebapp = null; + public OrganizationSAMLAuthRequestPatch samlAuthEnabled(Boolean samlAuthEnabled) { this.samlAuthEnabled = samlAuthEnabled; return this; @@ -100,6 +106,24 @@ public void setSamlMetadataInline(String samlMetadataInline) { this.samlMetadataInline = samlMetadataInline; } + public OrganizationSAMLAuthRequestPatch samlMetadataInlineWebapp(String samlMetadataInlineWebapp) { + this.samlMetadataInlineWebapp = samlMetadataInlineWebapp; + return this; + } + + /** + * When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + * @return samlMetadataInlineWebapp + **/ + @Size(max=32000) @ApiModelProperty(value = "When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.") + public String getSamlMetadataInlineWebapp() { + return samlMetadataInlineWebapp; + } + + public void setSamlMetadataInlineWebapp(String samlMetadataInlineWebapp) { + this.samlMetadataInlineWebapp = samlMetadataInlineWebapp; + } + public OrganizationSAMLAuthRequestPatch samlMetadataUrl(String samlMetadataUrl) { this.samlMetadataUrl = samlMetadataUrl; return this; @@ -118,6 +142,24 @@ public void setSamlMetadataUrl(String samlMetadataUrl) { this.samlMetadataUrl = samlMetadataUrl; } + public OrganizationSAMLAuthRequestPatch samlMetadataUrlWebapp(String samlMetadataUrlWebapp) { + this.samlMetadataUrlWebapp = samlMetadataUrlWebapp; + return this; + } + + /** + * When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + * @return samlMetadataUrlWebapp + **/ + @Size(max=254) @ApiModelProperty(value = "When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.") + public String getSamlMetadataUrlWebapp() { + return samlMetadataUrlWebapp; + } + + public void setSamlMetadataUrlWebapp(String samlMetadataUrlWebapp) { + this.samlMetadataUrlWebapp = samlMetadataUrlWebapp; + } + @Override public boolean equals(java.lang.Object o) { @@ -131,12 +173,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.samlAuthEnabled, organizationSAMLAuthRequestPatch.samlAuthEnabled) && Objects.equals(this.samlAuthEnforced, organizationSAMLAuthRequestPatch.samlAuthEnforced) && Objects.equals(this.samlMetadataInline, organizationSAMLAuthRequestPatch.samlMetadataInline) && - Objects.equals(this.samlMetadataUrl, organizationSAMLAuthRequestPatch.samlMetadataUrl); + Objects.equals(this.samlMetadataInlineWebapp, organizationSAMLAuthRequestPatch.samlMetadataInlineWebapp) && + Objects.equals(this.samlMetadataUrl, organizationSAMLAuthRequestPatch.samlMetadataUrl) && + Objects.equals(this.samlMetadataUrlWebapp, organizationSAMLAuthRequestPatch.samlMetadataUrlWebapp); } @Override public int hashCode() { - return Objects.hash(samlAuthEnabled, samlAuthEnforced, samlMetadataInline, samlMetadataUrl); + return Objects.hash(samlAuthEnabled, samlAuthEnforced, samlMetadataInline, samlMetadataInlineWebapp, samlMetadataUrl, samlMetadataUrlWebapp); } @@ -148,7 +192,9 @@ public String toString() { sb.append(" samlAuthEnabled: ").append(toIndentedString(samlAuthEnabled)).append("\n"); sb.append(" samlAuthEnforced: ").append(toIndentedString(samlAuthEnforced)).append("\n"); sb.append(" samlMetadataInline: ").append(toIndentedString(samlMetadataInline)).append("\n"); + sb.append(" samlMetadataInlineWebapp: ").append(toIndentedString(samlMetadataInlineWebapp)).append("\n"); sb.append(" samlMetadataUrl: ").append(toIndentedString(samlMetadataUrl)).append("\n"); + sb.append(" samlMetadataUrlWebapp: ").append(toIndentedString(samlMetadataUrlWebapp)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstream.java index fec4a2ef..9dcacacc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstream.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstream.java @@ -193,7 +193,9 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequest.java index 26154acd..db4d6c01 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequest.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequestPatch.java index 5f36e0a0..2e39e8b9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonUpstreamRequestPatch.java @@ -112,7 +112,9 @@ public AuthModeEnum read(final JsonReader jsonReader) throws IOException { public enum ModeEnum { PROXY_ONLY("Proxy Only"), - CACHE_AND_PROXY("Cache and Proxy"); + CACHE_AND_PROXY("Cache and Proxy"), + + CACHE_ONLY("Cache Only"); private String value; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java index 169f25c4..a2e64135 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java @@ -39,6 +39,9 @@ public class Repository implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("active_connection_count") + private java.math.BigInteger activeConnectionCount = null; + /** * Broadcasting status of a repository. */ @@ -889,6 +892,15 @@ public ViewStatisticsEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("view_statistics") private ViewStatisticsEnum viewStatistics = ViewStatisticsEnum.READ; + /** + * Number of active connections for the repository + * @return activeConnectionCount + **/ + @ApiModelProperty(value = "Number of active connections for the repository") + public java.math.BigInteger getActiveConnectionCount() { + return activeConnectionCount; + } + public Repository broadcastState(BroadcastStateEnum broadcastState) { this.broadcastState = broadcastState; return this; @@ -1974,7 +1986,8 @@ public boolean equals(java.lang.Object o) { return false; } Repository repository = (Repository) o; - return Objects.equals(this.broadcastState, repository.broadcastState) && + return Objects.equals(this.activeConnectionCount, repository.activeConnectionCount) && + Objects.equals(this.broadcastState, repository.broadcastState) && Objects.equals(this.cdnUrl, repository.cdnUrl) && Objects.equals(this.contentKind, repository.contentKind) && Objects.equals(this.contextualAuthRealm, repository.contextualAuthRealm) && @@ -2049,7 +2062,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(activeConnectionCount, broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -2058,6 +2071,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Repository {\n"); + sb.append(" activeConnectionCount: ").append(toIndentedString(activeConnectionCount)).append("\n"); sb.append(" broadcastState: ").append(toIndentedString(broadcastState)).append("\n"); sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); sb.append(" contentKind: ").append(toIndentedString(contentKind)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java index 266d82b6..e91882e2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java @@ -39,6 +39,9 @@ public class RepositoryCreate implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("active_connection_count") + private java.math.BigInteger activeConnectionCount = null; + /** * Broadcasting status of a repository. */ @@ -889,6 +892,15 @@ public ViewStatisticsEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("view_statistics") private ViewStatisticsEnum viewStatistics = ViewStatisticsEnum.READ; + /** + * Number of active connections for the repository + * @return activeConnectionCount + **/ + @ApiModelProperty(value = "Number of active connections for the repository") + public java.math.BigInteger getActiveConnectionCount() { + return activeConnectionCount; + } + public RepositoryCreate broadcastState(BroadcastStateEnum broadcastState) { this.broadcastState = broadcastState; return this; @@ -1983,7 +1995,8 @@ public boolean equals(java.lang.Object o) { return false; } RepositoryCreate repositoryCreate = (RepositoryCreate) o; - return Objects.equals(this.broadcastState, repositoryCreate.broadcastState) && + return Objects.equals(this.activeConnectionCount, repositoryCreate.activeConnectionCount) && + Objects.equals(this.broadcastState, repositoryCreate.broadcastState) && Objects.equals(this.cdnUrl, repositoryCreate.cdnUrl) && Objects.equals(this.contentKind, repositoryCreate.contentKind) && Objects.equals(this.contextualAuthRealm, repositoryCreate.contextualAuthRealm) && @@ -2058,7 +2071,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(activeConnectionCount, broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -2067,6 +2080,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RepositoryCreate {\n"); + sb.append(" activeConnectionCount: ").append(toIndentedString(activeConnectionCount)).append("\n"); sb.append(" broadcastState: ").append(toIndentedString(broadcastState)).append("\n"); sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); sb.append(" contentKind: ").append(toIndentedString(contentKind)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java index d1d21df1..fd09e38a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java @@ -53,6 +53,9 @@ public class RepositoryEd25519Key implements Serializable { @SerializedName("public_key") private String publicKey = null; + @SerializedName("public_key_wire") + private String publicKeyWire = null; + /** * If selected this is the active key for this repository. * @return active @@ -108,6 +111,15 @@ public String getPublicKey() { return publicKey; } + /** + * The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`. + * @return publicKeyWire + **/ + @Size(min=1) @ApiModelProperty(value = "The public key in `:` wire format, ready to paste into Nix `trusted-public-keys`.") + public String getPublicKeyWire() { + return publicKeyWire; + } + @Override public boolean equals(java.lang.Object o) { @@ -123,12 +135,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this._default, repositoryEd25519Key._default) && Objects.equals(this.fingerprint, repositoryEd25519Key.fingerprint) && Objects.equals(this.fingerprintShort, repositoryEd25519Key.fingerprintShort) && - Objects.equals(this.publicKey, repositoryEd25519Key.publicKey); + Objects.equals(this.publicKey, repositoryEd25519Key.publicKey) && + Objects.equals(this.publicKeyWire, repositoryEd25519Key.publicKeyWire); } @Override public int hashCode() { - return Objects.hash(active, createdAt, _default, fingerprint, fingerprintShort, publicKey); + return Objects.hash(active, createdAt, _default, fingerprint, fingerprintShort, publicKey, publicKeyWire); } @@ -143,6 +156,7 @@ public String toString() { sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); sb.append(" fingerprintShort: ").append(toIndentedString(fingerprintShort)).append("\n"); sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" publicKeyWire: ").append(toIndentedString(publicKeyWire)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java index 24367739..5189d968 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java @@ -509,7 +509,8 @@ public void orgsLicensePolicyViolationListTest() throws Exception { public void orgsListTest() throws Exception { java.math.BigInteger page = null; java.math.BigInteger pageSize = null; - List response = api.orgsList(page, pageSize); + String sort = null; + List response = api.orgsList(page, pageSize, sort); // TODO: test validations } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java index 1a600b7b..37ebfed5 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java @@ -153,7 +153,8 @@ public void packagesDependenciesTest() throws Exception { String owner = null; String repo = null; String identifier = null; - PackageDependencies response = api.packagesDependencies(owner, repo, identifier); + Boolean includeConnectedRepositories = null; + PackageDependencies response = api.packagesDependencies(owner, repo, identifier, includeConnectedRepositories); // TODO: test validations } @@ -174,9 +175,10 @@ public void packagesGroupsListTest() throws Exception { java.math.BigInteger pageSize = null; String groupBy = null; Boolean hideSubcomponents = null; + Boolean includeConnectedRepositories = null; String query = null; String sort = null; - InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); + InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, includeConnectedRepositories, query, sort); // TODO: test validations } @@ -195,9 +197,10 @@ public void packagesListTest() throws Exception { String repo = null; java.math.BigInteger page = null; java.math.BigInteger pageSize = null; + Boolean includeConnectedRepositories = null; String query = null; String sort = null; - List response = api.packagesList(owner, repo, page, pageSize, query, sort); + List response = api.packagesList(owner, repo, page, pageSize, includeConnectedRepositories, query, sort); // TODO: test validations } @@ -253,7 +256,8 @@ public void packagesReadTest() throws Exception { String owner = null; String repo = null; String identifier = null; - ModelPackage response = api.packagesRead(owner, repo, identifier); + Boolean includeConnectedRepositories = null; + ModelPackage response = api.packagesRead(owner, repo, identifier, includeConnectedRepositories); // TODO: test validations } @@ -307,7 +311,8 @@ public void packagesStatusTest() throws Exception { String owner = null; String repo = null; String identifier = null; - PackageStatus response = api.packagesStatus(owner, repo, identifier); + Boolean includeConnectedRepositories = null; + PackageStatus response = api.packagesStatus(owner, repo, identifier, includeConnectedRepositories); // TODO: test validations } diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index 0f493a5b..2ad5cfaf 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -4,7 +4,7 @@ The API to the Cloudsmith Service This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.27 +- Package version: 2.0.29 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 1b4e8e24..acfc2102 100644 --- a/bindings/python/src/build.json +++ b/bindings/python/src/build.json @@ -2,7 +2,7 @@ "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", "projectName": "cloudsmith_api", - "packageVersion": "2.0.27", + "packageVersion": "2.0.29", "packageUrl": "https://api.cloudsmith.io/?format=openapi", "sortParamsByRequiredFlag": true } diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py index e1fa8f14..2417d557 100644 --- a/bindings/python/src/cloudsmith_api/api/orgs_api.py +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -2633,6 +2633,7 @@ def orgs_list(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. + :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. :return: list[Organization] If the method is called asynchronously, returns the request thread. @@ -2656,12 +2657,13 @@ def orgs_list_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. + :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. :return: list[Organization] If the method is called asynchronously, returns the request thread. """ - all_params = ['page', 'page_size'] # noqa: E501 + all_params = ['page', 'page_size', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2686,6 +2688,8 @@ def orgs_list_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('page', params['page'])) # noqa: E501 if 'page_size' in params: query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 header_params = {} diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index 33b405b7..bd4e5673 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -280,6 +280,7 @@ def packages_dependencies(self, owner, repo, identifier, **kwargs): # noqa: E50 :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: PackageDependencies If the method is called asynchronously, returns the request thread. @@ -304,12 +305,13 @@ def packages_dependencies_with_http_info(self, owner, repo, identifier, **kwargs :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: PackageDependencies If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params = ['owner', 'repo', 'identifier', 'include_connected_repositories'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -348,6 +350,8 @@ def packages_dependencies_with_http_info(self, owner, repo, identifier, **kwargs path_params['identifier'] = params['identifier'] # noqa: E501 query_params = [] + if 'include_connected_repositories' in params: + query_params.append(('include_connected_repositories', params['include_connected_repositories'])) # noqa: E501 header_params = {} @@ -398,6 +402,7 @@ def packages_groups_list(self, owner, repo, **kwargs): # noqa: E501 :param int page_size: Number of results to return per page. :param str group_by: A field to group packages by. Available options: name, backend_kind. :param bool hide_subcomponents: Whether to hide packages which are subcomponents of another package in the results + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. :return: InlineResponse200 @@ -427,6 +432,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E :param int page_size: Number of results to return per page. :param str group_by: A field to group packages by. Available options: name, backend_kind. :param bool hide_subcomponents: Whether to hide packages which are subcomponents of another package in the results + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. :return: InlineResponse200 @@ -434,7 +440,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'group_by', 'hide_subcomponents', 'query', 'sort'] # noqa: E501 + all_params = ['owner', 'repo', 'page', 'page_size', 'group_by', 'hide_subcomponents', 'include_connected_repositories', 'query', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -475,6 +481,8 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E query_params.append(('group_by', params['group_by'])) # noqa: E501 if 'hide_subcomponents' in params: query_params.append(('hide_subcomponents', params['hide_subcomponents'])) # noqa: E501 + if 'include_connected_repositories' in params: + query_params.append(('include_connected_repositories', params['include_connected_repositories'])) # noqa: E501 if 'query' in params: query_params.append(('query', params['query'])) # noqa: E501 if 'sort' in params: @@ -527,6 +535,7 @@ def packages_list(self, owner, repo, **kwargs): # noqa: E501 :param str repo: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. :return: list[Package] @@ -554,6 +563,7 @@ def packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 :param str repo: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. :param str sort: A field for sorting objects in ascending or descending order. :return: list[Package] @@ -561,7 +571,7 @@ def packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'query', 'sort'] # noqa: E501 + all_params = ['owner', 'repo', 'page', 'page_size', 'include_connected_repositories', 'query', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -598,6 +608,8 @@ def packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 query_params.append(('page', params['page'])) # noqa: E501 if 'page_size' in params: query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'include_connected_repositories' in params: + query_params.append(('include_connected_repositories', params['include_connected_repositories'])) # noqa: E501 if 'query' in params: query_params.append(('query', params['query'])) # noqa: E501 if 'sort' in params: @@ -887,6 +899,7 @@ def packages_read(self, owner, repo, identifier, **kwargs): # noqa: E501 :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: Package If the method is called asynchronously, returns the request thread. @@ -911,12 +924,13 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: Package If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params = ['owner', 'repo', 'identifier', 'include_connected_repositories'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -955,6 +969,8 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no path_params['identifier'] = params['identifier'] # noqa: E501 query_params = [] + if 'include_connected_repositories' in params: + query_params.append(('include_connected_repositories', params['include_connected_repositories'])) # noqa: E501 header_params = {} @@ -1232,6 +1248,7 @@ def packages_status(self, owner, repo, identifier, **kwargs): # noqa: E501 :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: PackageStatus If the method is called asynchronously, returns the request thread. @@ -1256,12 +1273,13 @@ def packages_status_with_http_info(self, owner, repo, identifier, **kwargs): # :param str owner: (required) :param str repo: (required) :param str identifier: (required) + :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. :return: PackageStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params = ['owner', 'repo', 'identifier', 'include_connected_repositories'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1300,6 +1318,8 @@ def packages_status_with_http_info(self, owner, repo, identifier, **kwargs): # path_params['identifier'] = params['identifier'] # noqa: E501 query_params = [] + if 'include_connected_repositories' in params: + query_params.append(('include_connected_repositories', params['include_connected_repositories'])) # noqa: E501 header_params = {} diff --git a/bindings/python/src/cloudsmith_api/api/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py index 40bb7c91..33c452c4 100644 --- a/bindings/python/src/cloudsmith_api/api/repos_api.py +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -2913,7 +2913,7 @@ def repos_namespace_list(self, owner, **kwargs): # noqa: E501 :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. :param str query: A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. - :param str sort: A field for sorting objects in ascending or descending order. + :param str sort: A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. :return: list[Repository] If the method is called asynchronously, returns the request thread. @@ -2939,7 +2939,7 @@ def repos_namespace_list_with_http_info(self, owner, **kwargs): # noqa: E501 :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. :param str query: A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. - :param str sort: A field for sorting objects in ascending or descending order. + :param str sort: A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. :return: list[Repository] If the method is called asynchronously, returns the request thread. diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index 25e14185..a214e562 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.27/python' + self.user_agent = 'Swagger-Codegen/2.0.29/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index 54b14607..e34ca696 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -249,5 +249,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.27".\ + "SDK Package Version: 2.0.29".\ format(env=sys.platform, pyversion=sys.version) diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream.py index 96fb78c7..6829939a 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this CargoUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py index d712128c..14aaa30f 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this CargoUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py index 5d11417c..93e6974f 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this CargoUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream.py b/bindings/python/src/cloudsmith_api/models/composer_upstream.py index 93db1320..96fc2423 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this ComposerUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py index fecd58b6..6474a124 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this ComposerUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py index cac85264..bb8a687c 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this ComposerUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream.py b/bindings/python/src/cloudsmith_api/models/conda_upstream.py index 1074d72a..e38b207b 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/conda_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this CondaUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py b/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py index f14bedbf..15999b63 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this CondaUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py index 8bd40d04..7ae405dc 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this CondaUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository.py b/bindings/python/src/cloudsmith_api/models/connected_repository.py index c7af408b..c730c8c8 100644 --- a/bindings/python/src/cloudsmith_api/models/connected_repository.py +++ b/bindings/python/src/cloudsmith_api/models/connected_repository.py @@ -34,6 +34,8 @@ class ConnectedRepository(object): """ swagger_types = { 'created_at': 'datetime', + 'disable_reason': 'str', + 'disable_reason_text': 'str', 'is_active': 'bool', 'priority': 'int', 'slug_perm': 'str', @@ -42,19 +44,23 @@ class ConnectedRepository(object): attribute_map = { 'created_at': 'created_at', + 'disable_reason': 'disable_reason', + 'disable_reason_text': 'disable_reason_text', 'is_active': 'is_active', 'priority': 'priority', 'slug_perm': 'slug_perm', 'target_repository': 'target_repository' } - def __init__(self, created_at=None, is_active=True, priority=None, slug_perm=None, target_repository=None, _configuration=None): # noqa: E501 + def __init__(self, created_at=None, disable_reason='N/A', disable_reason_text=None, is_active=False, priority=None, slug_perm=None, target_repository=None, _configuration=None): # noqa: E501 """ConnectedRepository - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._created_at = None + self._disable_reason = None + self._disable_reason_text = None self._is_active = None self._priority = None self._slug_perm = None @@ -63,6 +69,10 @@ def __init__(self, created_at=None, is_active=True, priority=None, slug_perm=Non if created_at is not None: self.created_at = created_at + if disable_reason is not None: + self.disable_reason = disable_reason + if disable_reason_text is not None: + self.disable_reason_text = disable_reason_text if is_active is not None: self.is_active = is_active if priority is not None: @@ -94,6 +104,57 @@ def created_at(self, created_at): self._created_at = created_at + @property + def disable_reason(self): + """Gets the disable_reason of this ConnectedRepository. + + + :return: The disable_reason of this ConnectedRepository. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this ConnectedRepository. + + + :param disable_reason: The disable_reason of this ConnectedRepository. + :type: str + """ + allowed_values = ["N/A", "The connection contains a circular reference"] # noqa: E501 + if (self._configuration.client_side_validation and + disable_reason not in allowed_values): + raise ValueError( + "Invalid value for `disable_reason` ({0}), must be one of {1}" # noqa: E501 + .format(disable_reason, allowed_values) + ) + + self._disable_reason = disable_reason + + @property + def disable_reason_text(self): + """Gets the disable_reason_text of this ConnectedRepository. + + Human-readable explanation of why this connection is disabled. + + :return: The disable_reason_text of this ConnectedRepository. + :rtype: str + """ + return self._disable_reason_text + + @disable_reason_text.setter + def disable_reason_text(self, disable_reason_text): + """Sets the disable_reason_text of this ConnectedRepository. + + Human-readable explanation of why this connection is disabled. + + :param disable_reason_text: The disable_reason_text of this ConnectedRepository. + :type: str + """ + + self._disable_reason_text = disable_reason_text + @property def is_active(self): """Gets the is_active of this ConnectedRepository. diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_request.py b/bindings/python/src/cloudsmith_api/models/connected_repository_request.py index d0da79b4..3dbbd0f1 100644 --- a/bindings/python/src/cloudsmith_api/models/connected_repository_request.py +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_request.py @@ -44,7 +44,7 @@ class ConnectedRepositoryRequest(object): 'target_repository': 'target_repository' } - def __init__(self, is_active=True, priority=None, target_repository=None, _configuration=None): # noqa: E501 + def __init__(self, is_active=False, priority=None, target_repository=None, _configuration=None): # noqa: E501 """ConnectedRepositoryRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py b/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py index 70263e19..dac3a13b 100644 --- a/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py @@ -44,7 +44,7 @@ class ConnectedRepositoryRequestPatch(object): 'target_repository': 'target_repository' } - def __init__(self, is_active=True, priority=None, target_repository=None, _configuration=None): # noqa: E501 + def __init__(self, is_active=False, priority=None, target_repository=None, _configuration=None): # noqa: E501 """ConnectedRepositoryRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream.py b/bindings/python/src/cloudsmith_api/models/cran_upstream.py index 884bceae..c72280dd 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this CranUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py index 307af8ed..4c875670 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this CranUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py index 2f00162a..32df4b9e 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this CranUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream.py b/bindings/python/src/cloudsmith_api/models/dart_upstream.py index 88b4ff90..2d1411dd 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this DartUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py index c67c33b9..080cbfee 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this DartUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py index 0938fa3b..da2ecb42 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this DartUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream.py b/bindings/python/src/cloudsmith_api/models/deb_upstream.py index 43dd6ab5..d531bffd 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream.py @@ -844,7 +844,7 @@ def mode(self, mode): :param mode: The mode of this DebUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py index ebc61c1f..97355652 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py @@ -541,7 +541,7 @@ def mode(self, mode): :param mode: The mode of this DebUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py index 779ca8b1..415d5cbe 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py @@ -542,7 +542,7 @@ def mode(self, mode): :param mode: The mode of this DebUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/format_support_upstream.py b/bindings/python/src/cloudsmith_api/models/format_support_upstream.py index 617b0819..54fbc607 100644 --- a/bindings/python/src/cloudsmith_api/models/format_support_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/format_support_upstream.py @@ -34,6 +34,7 @@ class FormatSupportUpstream(object): """ swagger_types = { 'auth_modes': 'list[str]', + 'cache_only': 'bool', 'caching': 'bool', 'indexing': 'bool', 'indexing_behavior': 'str', @@ -44,6 +45,7 @@ class FormatSupportUpstream(object): attribute_map = { 'auth_modes': 'auth_modes', + 'cache_only': 'cache_only', 'caching': 'caching', 'indexing': 'indexing', 'indexing_behavior': 'indexing_behavior', @@ -52,13 +54,14 @@ class FormatSupportUpstream(object): 'trust': 'trust' } - def __init__(self, auth_modes=None, caching=None, indexing=None, indexing_behavior='Unsupported', proxying=None, signature_verification='Unsupported', trust=None, _configuration=None): # noqa: E501 + def __init__(self, auth_modes=None, cache_only=None, caching=None, indexing=None, indexing_behavior='Unsupported', proxying=None, signature_verification='Unsupported', trust=None, _configuration=None): # noqa: E501 """FormatSupportUpstream - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._auth_modes = None + self._cache_only = None self._caching = None self._indexing = None self._indexing_behavior = None @@ -68,6 +71,7 @@ def __init__(self, auth_modes=None, caching=None, indexing=None, indexing_behavi self.discriminator = None self.auth_modes = auth_modes + self.cache_only = cache_only self.caching = caching self.indexing = indexing if indexing_behavior is not None: @@ -110,6 +114,31 @@ def auth_modes(self, auth_modes): self._auth_modes = auth_modes + @property + def cache_only(self): + """Gets the cache_only of this FormatSupportUpstream. + + If true the upstream format supports cache-only mode. + + :return: The cache_only of this FormatSupportUpstream. + :rtype: bool + """ + return self._cache_only + + @cache_only.setter + def cache_only(self, cache_only): + """Sets the cache_only of this FormatSupportUpstream. + + If true the upstream format supports cache-only mode. + + :param cache_only: The cache_only of this FormatSupportUpstream. + :type: bool + """ + if self._configuration.client_side_validation and cache_only is None: + raise ValueError("Invalid value for `cache_only`, must not be `None`") # noqa: E501 + + self._cache_only = cache_only + @property def caching(self): """Gets the caching of this FormatSupportUpstream. diff --git a/bindings/python/src/cloudsmith_api/models/generic_upstream.py b/bindings/python/src/cloudsmith_api/models/generic_upstream.py index 1ab847bd..2e41d732 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/generic_upstream.py @@ -628,7 +628,7 @@ def mode(self, mode): :param mode: The mode of this GenericUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/generic_upstream_request.py b/bindings/python/src/cloudsmith_api/models/generic_upstream_request.py index 7a5bbb71..7f563dd2 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/generic_upstream_request.py @@ -356,7 +356,7 @@ def mode(self, mode): :param mode: The mode of this GenericUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/generic_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/generic_upstream_request_patch.py index 976bf534..336c88e4 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/generic_upstream_request_patch.py @@ -358,7 +358,7 @@ def mode(self, mode): :param mode: The mode of this GenericUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream.py b/bindings/python/src/cloudsmith_api/models/helm_upstream.py index 41a0468f..7c524fe0 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this HelmUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py index 8635ebf3..57330cb6 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this HelmUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py index b76eb29a..c13a3d82 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this HelmUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream.py b/bindings/python/src/cloudsmith_api/models/hex_upstream.py index d2e84e5d..1fb16dd4 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this HexUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py index c1411326..4f7db9e5 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this HexUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py index 4998abb6..26276d58 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this HexUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream.py b/bindings/python/src/cloudsmith_api/models/npm_upstream.py index e9ad0564..ec29ea9a 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream.py @@ -628,7 +628,7 @@ def mode(self, mode): :param mode: The mode of this NpmUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py index f424459e..90a2f989 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py @@ -356,7 +356,7 @@ def mode(self, mode): :param mode: The mode of this NpmUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py index ea31dd1d..aa48ba8d 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py @@ -358,7 +358,7 @@ def mode(self, mode): :param mode: The mode of this NpmUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py index 18200923..e6bc76f1 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py @@ -623,7 +623,7 @@ def mode(self, mode): :param mode: The mode of this NugetUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py index fb7d2dae..70c62180 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py @@ -351,7 +351,7 @@ def mode(self, mode): :param mode: The mode of this NugetUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py index 67eafadb..673bd869 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py @@ -353,7 +353,7 @@ def mode(self, mode): :param mode: The mode of this NugetUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/organization_saml_auth.py b/bindings/python/src/cloudsmith_api/models/organization_saml_auth.py index 0be45cde..ba569af0 100644 --- a/bindings/python/src/cloudsmith_api/models/organization_saml_auth.py +++ b/bindings/python/src/cloudsmith_api/models/organization_saml_auth.py @@ -36,17 +36,21 @@ class OrganizationSAMLAuth(object): 'saml_auth_enabled': 'bool', 'saml_auth_enforced': 'bool', 'saml_metadata_inline': 'str', - 'saml_metadata_url': 'str' + 'saml_metadata_inline_webapp': 'str', + 'saml_metadata_url': 'str', + 'saml_metadata_url_webapp': 'str' } attribute_map = { 'saml_auth_enabled': 'saml_auth_enabled', 'saml_auth_enforced': 'saml_auth_enforced', 'saml_metadata_inline': 'saml_metadata_inline', - 'saml_metadata_url': 'saml_metadata_url' + 'saml_metadata_inline_webapp': 'saml_metadata_inline_webapp', + 'saml_metadata_url': 'saml_metadata_url', + 'saml_metadata_url_webapp': 'saml_metadata_url_webapp' } - def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadata_inline=None, saml_metadata_url=None, _configuration=None): # noqa: E501 + def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadata_inline=None, saml_metadata_inline_webapp=None, saml_metadata_url=None, saml_metadata_url_webapp=None, _configuration=None): # noqa: E501 """OrganizationSAMLAuth - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -55,15 +59,21 @@ def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadat self._saml_auth_enabled = None self._saml_auth_enforced = None self._saml_metadata_inline = None + self._saml_metadata_inline_webapp = None self._saml_metadata_url = None + self._saml_metadata_url_webapp = None self.discriminator = None self.saml_auth_enabled = saml_auth_enabled self.saml_auth_enforced = saml_auth_enforced if saml_metadata_inline is not None: self.saml_metadata_inline = saml_metadata_inline + if saml_metadata_inline_webapp is not None: + self.saml_metadata_inline_webapp = saml_metadata_inline_webapp if saml_metadata_url is not None: self.saml_metadata_url = saml_metadata_url + if saml_metadata_url_webapp is not None: + self.saml_metadata_url_webapp = saml_metadata_url_webapp @property def saml_auth_enabled(self): @@ -137,6 +147,32 @@ def saml_metadata_inline(self, saml_metadata_inline): self._saml_metadata_inline = saml_metadata_inline + @property + def saml_metadata_inline_webapp(self): + """Gets the saml_metadata_inline_webapp of this OrganizationSAMLAuth. + + When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :return: The saml_metadata_inline_webapp of this OrganizationSAMLAuth. + :rtype: str + """ + return self._saml_metadata_inline_webapp + + @saml_metadata_inline_webapp.setter + def saml_metadata_inline_webapp(self, saml_metadata_inline_webapp): + """Sets the saml_metadata_inline_webapp of this OrganizationSAMLAuth. + + When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :param saml_metadata_inline_webapp: The saml_metadata_inline_webapp of this OrganizationSAMLAuth. + :type: str + """ + if (self._configuration.client_side_validation and + saml_metadata_inline_webapp is not None and len(saml_metadata_inline_webapp) > 32000): + raise ValueError("Invalid value for `saml_metadata_inline_webapp`, length must be less than or equal to `32000`") # noqa: E501 + + self._saml_metadata_inline_webapp = saml_metadata_inline_webapp + @property def saml_metadata_url(self): """Gets the saml_metadata_url of this OrganizationSAMLAuth. @@ -163,6 +199,32 @@ def saml_metadata_url(self, saml_metadata_url): self._saml_metadata_url = saml_metadata_url + @property + def saml_metadata_url_webapp(self): + """Gets the saml_metadata_url_webapp of this OrganizationSAMLAuth. + + When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :return: The saml_metadata_url_webapp of this OrganizationSAMLAuth. + :rtype: str + """ + return self._saml_metadata_url_webapp + + @saml_metadata_url_webapp.setter + def saml_metadata_url_webapp(self, saml_metadata_url_webapp): + """Sets the saml_metadata_url_webapp of this OrganizationSAMLAuth. + + When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :param saml_metadata_url_webapp: The saml_metadata_url_webapp of this OrganizationSAMLAuth. + :type: str + """ + if (self._configuration.client_side_validation and + saml_metadata_url_webapp is not None and len(saml_metadata_url_webapp) > 254): + raise ValueError("Invalid value for `saml_metadata_url_webapp`, length must be less than or equal to `254`") # noqa: E501 + + self._saml_metadata_url_webapp = saml_metadata_url_webapp + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/organization_saml_auth_request_patch.py b/bindings/python/src/cloudsmith_api/models/organization_saml_auth_request_patch.py index a81f1f8e..aa65f589 100644 --- a/bindings/python/src/cloudsmith_api/models/organization_saml_auth_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/organization_saml_auth_request_patch.py @@ -36,17 +36,21 @@ class OrganizationSAMLAuthRequestPatch(object): 'saml_auth_enabled': 'bool', 'saml_auth_enforced': 'bool', 'saml_metadata_inline': 'str', - 'saml_metadata_url': 'str' + 'saml_metadata_inline_webapp': 'str', + 'saml_metadata_url': 'str', + 'saml_metadata_url_webapp': 'str' } attribute_map = { 'saml_auth_enabled': 'saml_auth_enabled', 'saml_auth_enforced': 'saml_auth_enforced', 'saml_metadata_inline': 'saml_metadata_inline', - 'saml_metadata_url': 'saml_metadata_url' + 'saml_metadata_inline_webapp': 'saml_metadata_inline_webapp', + 'saml_metadata_url': 'saml_metadata_url', + 'saml_metadata_url_webapp': 'saml_metadata_url_webapp' } - def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadata_inline=None, saml_metadata_url=None, _configuration=None): # noqa: E501 + def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadata_inline=None, saml_metadata_inline_webapp=None, saml_metadata_url=None, saml_metadata_url_webapp=None, _configuration=None): # noqa: E501 """OrganizationSAMLAuthRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -55,7 +59,9 @@ def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadat self._saml_auth_enabled = None self._saml_auth_enforced = None self._saml_metadata_inline = None + self._saml_metadata_inline_webapp = None self._saml_metadata_url = None + self._saml_metadata_url_webapp = None self.discriminator = None if saml_auth_enabled is not None: @@ -64,8 +70,12 @@ def __init__(self, saml_auth_enabled=None, saml_auth_enforced=None, saml_metadat self.saml_auth_enforced = saml_auth_enforced if saml_metadata_inline is not None: self.saml_metadata_inline = saml_metadata_inline + if saml_metadata_inline_webapp is not None: + self.saml_metadata_inline_webapp = saml_metadata_inline_webapp if saml_metadata_url is not None: self.saml_metadata_url = saml_metadata_url + if saml_metadata_url_webapp is not None: + self.saml_metadata_url_webapp = saml_metadata_url_webapp @property def saml_auth_enabled(self): @@ -135,6 +145,32 @@ def saml_metadata_inline(self, saml_metadata_inline): self._saml_metadata_inline = saml_metadata_inline + @property + def saml_metadata_inline_webapp(self): + """Gets the saml_metadata_inline_webapp of this OrganizationSAMLAuthRequestPatch. + + When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :return: The saml_metadata_inline_webapp of this OrganizationSAMLAuthRequestPatch. + :rtype: str + """ + return self._saml_metadata_inline_webapp + + @saml_metadata_inline_webapp.setter + def saml_metadata_inline_webapp(self, saml_metadata_inline_webapp): + """Sets the saml_metadata_inline_webapp of this OrganizationSAMLAuthRequestPatch. + + When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :param saml_metadata_inline_webapp: The saml_metadata_inline_webapp of this OrganizationSAMLAuthRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + saml_metadata_inline_webapp is not None and len(saml_metadata_inline_webapp) > 32000): + raise ValueError("Invalid value for `saml_metadata_inline_webapp`, length must be less than or equal to `32000`") # noqa: E501 + + self._saml_metadata_inline_webapp = saml_metadata_inline_webapp + @property def saml_metadata_url(self): """Gets the saml_metadata_url of this OrganizationSAMLAuthRequestPatch. @@ -161,6 +197,32 @@ def saml_metadata_url(self, saml_metadata_url): self._saml_metadata_url = saml_metadata_url + @property + def saml_metadata_url_webapp(self): + """Gets the saml_metadata_url_webapp of this OrganizationSAMLAuthRequestPatch. + + When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :return: The saml_metadata_url_webapp of this OrganizationSAMLAuthRequestPatch. + :rtype: str + """ + return self._saml_metadata_url_webapp + + @saml_metadata_url_webapp.setter + def saml_metadata_url_webapp(self, saml_metadata_url_webapp): + """Sets the saml_metadata_url_webapp of this OrganizationSAMLAuthRequestPatch. + + When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + + :param saml_metadata_url_webapp: The saml_metadata_url_webapp of this OrganizationSAMLAuthRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + saml_metadata_url_webapp is not None and len(saml_metadata_url_webapp) > 254): + raise ValueError("Invalid value for `saml_metadata_url_webapp`, length must be less than or equal to `254`") # noqa: E501 + + self._saml_metadata_url_webapp = saml_metadata_url_webapp + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream.py b/bindings/python/src/cloudsmith_api/models/python_upstream.py index 35ad860c..9d909d3f 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream.py @@ -628,7 +628,7 @@ def mode(self, mode): :param mode: The mode of this PythonUpstream. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py index c4afc12a..b7972ce5 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py @@ -356,7 +356,7 @@ def mode(self, mode): :param mode: The mode of this PythonUpstreamRequest. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py index 237d238f..437ca1a4 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py @@ -358,7 +358,7 @@ def mode(self, mode): :param mode: The mode of this PythonUpstreamRequestPatch. :type: str """ - allowed_values = ["Proxy Only", "Cache and Proxy"] # noqa: E501 + allowed_values = ["Proxy Only", "Cache and Proxy", "Cache Only"] # noqa: E501 if (self._configuration.client_side_validation and mode not in allowed_values): raise ValueError( diff --git a/bindings/python/src/cloudsmith_api/models/repository.py b/bindings/python/src/cloudsmith_api/models/repository.py index ab663ac0..e85638f1 100644 --- a/bindings/python/src/cloudsmith_api/models/repository.py +++ b/bindings/python/src/cloudsmith_api/models/repository.py @@ -33,6 +33,7 @@ class Repository(object): and the value is json key in definition. """ swagger_types = { + 'active_connection_count': 'int', 'broadcast_state': 'str', 'cdn_url': 'str', 'content_kind': 'str', @@ -107,6 +108,7 @@ class Repository(object): } attribute_map = { + 'active_connection_count': 'active_connection_count', 'broadcast_state': 'broadcast_state', 'cdn_url': 'cdn_url', 'content_kind': 'content_kind', @@ -180,12 +182,13 @@ class Repository(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, active_connection_count=None, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """Repository - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._active_connection_count = None self._broadcast_state = None self._cdn_url = None self._content_kind = None @@ -259,6 +262,8 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self._view_statistics = None self.discriminator = None + if active_connection_count is not None: + self.active_connection_count = active_connection_count if broadcast_state is not None: self.broadcast_state = broadcast_state if cdn_url is not None: @@ -401,6 +406,29 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', if view_statistics is not None: self.view_statistics = view_statistics + @property + def active_connection_count(self): + """Gets the active_connection_count of this Repository. + + Number of active connections for the repository + + :return: The active_connection_count of this Repository. + :rtype: int + """ + return self._active_connection_count + + @active_connection_count.setter + def active_connection_count(self, active_connection_count): + """Sets the active_connection_count of this Repository. + + Number of active connections for the repository + + :param active_connection_count: The active_connection_count of this Repository. + :type: int + """ + + self._active_connection_count = active_connection_count + @property def broadcast_state(self): """Gets the broadcast_state of this Repository. diff --git a/bindings/python/src/cloudsmith_api/models/repository_create.py b/bindings/python/src/cloudsmith_api/models/repository_create.py index 71dae026..9ff99b5a 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create.py @@ -33,6 +33,7 @@ class RepositoryCreate(object): and the value is json key in definition. """ swagger_types = { + 'active_connection_count': 'int', 'broadcast_state': 'str', 'cdn_url': 'str', 'content_kind': 'str', @@ -107,6 +108,7 @@ class RepositoryCreate(object): } attribute_map = { + 'active_connection_count': 'active_connection_count', 'broadcast_state': 'broadcast_state', 'cdn_url': 'cdn_url', 'content_kind': 'content_kind', @@ -180,12 +182,13 @@ class RepositoryCreate(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, active_connection_count=None, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """RepositoryCreate - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._active_connection_count = None self._broadcast_state = None self._cdn_url = None self._content_kind = None @@ -259,6 +262,8 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self._view_statistics = None self.discriminator = None + if active_connection_count is not None: + self.active_connection_count = active_connection_count if broadcast_state is not None: self.broadcast_state = broadcast_state if cdn_url is not None: @@ -401,6 +406,29 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', if view_statistics is not None: self.view_statistics = view_statistics + @property + def active_connection_count(self): + """Gets the active_connection_count of this RepositoryCreate. + + Number of active connections for the repository + + :return: The active_connection_count of this RepositoryCreate. + :rtype: int + """ + return self._active_connection_count + + @active_connection_count.setter + def active_connection_count(self, active_connection_count): + """Sets the active_connection_count of this RepositoryCreate. + + Number of active connections for the repository + + :param active_connection_count: The active_connection_count of this RepositoryCreate. + :type: int + """ + + self._active_connection_count = active_connection_count + @property def broadcast_state(self): """Gets the broadcast_state of this RepositoryCreate. diff --git a/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py index 2324b3a1..ef23b110 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py +++ b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py @@ -38,7 +38,8 @@ class RepositoryEd25519Key(object): 'default': 'bool', 'fingerprint': 'str', 'fingerprint_short': 'str', - 'public_key': 'str' + 'public_key': 'str', + 'public_key_wire': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class RepositoryEd25519Key(object): 'default': 'default', 'fingerprint': 'fingerprint', 'fingerprint_short': 'fingerprint_short', - 'public_key': 'public_key' + 'public_key': 'public_key', + 'public_key_wire': 'public_key_wire' } - def __init__(self, active=None, created_at=None, default=None, fingerprint=None, fingerprint_short=None, public_key=None, _configuration=None): # noqa: E501 + def __init__(self, active=None, created_at=None, default=None, fingerprint=None, fingerprint_short=None, public_key=None, public_key_wire=None, _configuration=None): # noqa: E501 """RepositoryEd25519Key - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -62,6 +64,7 @@ def __init__(self, active=None, created_at=None, default=None, fingerprint=None, self._fingerprint = None self._fingerprint_short = None self._public_key = None + self._public_key_wire = None self.discriminator = None if active is not None: @@ -76,6 +79,8 @@ def __init__(self, active=None, created_at=None, default=None, fingerprint=None, self.fingerprint_short = fingerprint_short if public_key is not None: self.public_key = public_key + if public_key_wire is not None: + self.public_key_wire = public_key_wire @property def active(self): @@ -217,6 +222,32 @@ def public_key(self, public_key): self._public_key = public_key + @property + def public_key_wire(self): + """Gets the public_key_wire of this RepositoryEd25519Key. + + The public key in `:` wire format, ready to paste into Nix `trusted-public-keys`. + + :return: The public_key_wire of this RepositoryEd25519Key. + :rtype: str + """ + return self._public_key_wire + + @public_key_wire.setter + def public_key_wire(self, public_key_wire): + """Sets the public_key_wire of this RepositoryEd25519Key. + + The public key in `:` wire format, ready to paste into Nix `trusted-public-keys`. + + :param public_key_wire: The public_key_wire of this RepositoryEd25519Key. + :type: str + """ + if (self._configuration.client_side_validation and + public_key_wire is not None and len(public_key_wire) < 1): + raise ValueError("Invalid value for `public_key_wire`, length must be greater than or equal to `1`") # noqa: E501 + + self._public_key_wire = public_key_wire + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/docs/ConnectedRepository.md b/bindings/python/src/docs/ConnectedRepository.md index ee141b1f..8b4703ea 100644 --- a/bindings/python/src/docs/ConnectedRepository.md +++ b/bindings/python/src/docs/ConnectedRepository.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **datetime** | The date and time when the connection was created. | [optional] -**is_active** | **bool** | | [optional] [default to True] +**disable_reason** | **str** | | [optional] [default to 'N/A'] +**disable_reason_text** | **str** | Human-readable explanation of why this connection is disabled. | [optional] +**is_active** | **bool** | | [optional] [default to False] **priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **slug_perm** | **str** | | [optional] **target_repository** | **str** | The slug of the target repository to connect to. | diff --git a/bindings/python/src/docs/ConnectedRepositoryRequest.md b/bindings/python/src/docs/ConnectedRepositoryRequest.md index 14d55ffa..fcb3e9ec 100644 --- a/bindings/python/src/docs/ConnectedRepositoryRequest.md +++ b/bindings/python/src/docs/ConnectedRepositoryRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_active** | **bool** | | [optional] [default to True] +**is_active** | **bool** | | [optional] [default to False] **priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **target_repository** | **str** | The slug of the target repository to connect to. | diff --git a/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md b/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md index 10ae988b..d66e426e 100644 --- a/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md +++ b/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_active** | **bool** | | [optional] [default to True] +**is_active** | **bool** | | [optional] [default to False] **priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **target_repository** | **str** | The slug of the target repository to connect to. | [optional] diff --git a/bindings/python/src/docs/FormatSupportUpstream.md b/bindings/python/src/docs/FormatSupportUpstream.md index c1fad789..2b230863 100644 --- a/bindings/python/src/docs/FormatSupportUpstream.md +++ b/bindings/python/src/docs/FormatSupportUpstream.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **auth_modes** | **list[str]** | The authentication modes supported by the upstream format | +**cache_only** | **bool** | If true the upstream format supports cache-only mode. | **caching** | **bool** | If true the upstream format supports caching | **indexing** | **bool** | If true the upstream format supports indexing | **indexing_behavior** | **str** | The behavior of the upstream when indexing | [optional] [default to 'Unsupported'] diff --git a/bindings/python/src/docs/OrganizationSAMLAuth.md b/bindings/python/src/docs/OrganizationSAMLAuth.md index aa29ea21..824c7239 100644 --- a/bindings/python/src/docs/OrganizationSAMLAuth.md +++ b/bindings/python/src/docs/OrganizationSAMLAuth.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes **saml_auth_enabled** | **bool** | | **saml_auth_enforced** | **bool** | | **saml_metadata_inline** | **str** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**saml_metadata_inline_webapp** | **str** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **saml_metadata_url** | **str** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**saml_metadata_url_webapp** | **str** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/OrganizationSAMLAuthRequestPatch.md b/bindings/python/src/docs/OrganizationSAMLAuthRequestPatch.md index 3414a16f..aa190541 100644 --- a/bindings/python/src/docs/OrganizationSAMLAuthRequestPatch.md +++ b/bindings/python/src/docs/OrganizationSAMLAuthRequestPatch.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes **saml_auth_enabled** | **bool** | | [optional] **saml_auth_enforced** | **bool** | | [optional] **saml_metadata_inline** | **str** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**saml_metadata_inline_webapp** | **str** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **saml_metadata_url** | **str** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**saml_metadata_url_webapp** | **str** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index ad11df32..4bd789e0 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -1543,7 +1543,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **orgs_list** -> list[Organization] orgs_list(page=page, page_size=page_size) +> list[Organization] orgs_list(page=page, page_size=page_size, sort=sort) Get a list of all the organizations you are associated with. @@ -1571,10 +1571,11 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) +sort = 'name' # str | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (optional) (default to name) try: # Get a list of all the organizations you are associated with. - api_response = api_instance.orgs_list(page=page, page_size=page_size) + api_response = api_instance.orgs_list(page=page, page_size=page_size, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->orgs_list: %s\n" % e) @@ -1586,6 +1587,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] + **sort** | **str**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. | [optional] [default to name] ### Return type diff --git a/bindings/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index 7edb6bf4..99215a37 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -203,7 +203,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_dependencies** -> PackageDependencies packages_dependencies(owner, repo, identifier) +> PackageDependencies packages_dependencies(owner, repo, identifier, include_connected_repositories=include_connected_repositories) Get the list of dependencies for a package. Transitive dependencies are included where supported. @@ -232,10 +232,11 @@ api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | +include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional) (default to false) try: # Get the list of dependencies for a package. Transitive dependencies are included where supported. - api_response = api_instance.packages_dependencies(owner, repo, identifier) + api_response = api_instance.packages_dependencies(owner, repo, identifier, include_connected_repositories=include_connected_repositories) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_dependencies: %s\n" % e) @@ -248,6 +249,7 @@ Name | Type | Description | Notes **owner** | **str**| | **repo** | **str**| | **identifier** | **str**| | + **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -265,7 +267,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_groups_list** -> InlineResponse200 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, query=query, sort=sort) +> InlineResponse200 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, include_connected_repositories=include_connected_repositories, query=query, sort=sort) Return a list of Package Groups in a repository. @@ -297,12 +299,13 @@ page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) group_by = 'name' # str | A field to group packages by. Available options: name, backend_kind. (optional) (default to name) hide_subcomponents = false # bool | Whether to hide packages which are subcomponents of another package in the results (optional) (default to false) +include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (optional) (default to false) query = '' # str | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional) (default to ) sort = 'name' # str | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional) (default to name) try: # Return a list of Package Groups in a repository. - api_response = api_instance.packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, query=query, sort=sort) + api_response = api_instance.packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, include_connected_repositories=include_connected_repositories, query=query, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_groups_list: %s\n" % e) @@ -318,6 +321,7 @@ Name | Type | Description | Notes **page_size** | **int**| Number of results to return per page. | [optional] **group_by** | **str**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] **hide_subcomponents** | **bool**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] + **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. | [optional] [default to false] **query** | **str**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] **sort** | **str**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] @@ -337,7 +341,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_list** -> list[Package] packages_list(owner, repo, page=page, page_size=page_size, query=query, sort=sort) +> list[Package] packages_list(owner, repo, page=page, page_size=page_size, include_connected_repositories=include_connected_repositories, query=query, sort=sort) Get a list of all packages associated with repository. @@ -367,12 +371,13 @@ owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) +include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional) (default to false) query = '' # str | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional) (default to ) sort = '-date' # str | A field for sorting objects in ascending or descending order. (optional) (default to -date) try: # Get a list of all packages associated with repository. - api_response = api_instance.packages_list(owner, repo, page=page, page_size=page_size, query=query, sort=sort) + api_response = api_instance.packages_list(owner, repo, page=page, page_size=page_size, include_connected_repositories=include_connected_repositories, query=query, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_list: %s\n" % e) @@ -386,6 +391,7 @@ Name | Type | Description | Notes **repo** | **str**| | **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] + **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] **query** | **str**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] **sort** | **str**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] @@ -533,7 +539,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_read** -> Package packages_read(owner, repo, identifier) +> Package packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) Get a specific package in a repository. @@ -562,10 +568,11 @@ api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | +include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional) (default to false) try: # Get a specific package in a repository. - api_response = api_instance.packages_read(owner, repo, identifier) + api_response = api_instance.packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_read: %s\n" % e) @@ -578,6 +585,7 @@ Name | Type | Description | Notes **owner** | **str**| | **repo** | **str**| | **identifier** | **str**| | + **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -719,7 +727,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_status** -> PackageStatus packages_status(owner, repo, identifier) +> PackageStatus packages_status(owner, repo, identifier, include_connected_repositories=include_connected_repositories) Get the synchronization status for a package. @@ -748,10 +756,11 @@ api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | +include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional) (default to false) try: # Get the synchronization status for a package. - api_response = api_instance.packages_status(owner, repo, identifier) + api_response = api_instance.packages_status(owner, repo, identifier, include_connected_repositories=include_connected_repositories) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_status: %s\n" % e) @@ -764,6 +773,7 @@ Name | Type | Description | Notes **owner** | **str**| | **repo** | **str**| | **identifier** | **str**| | + **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type diff --git a/bindings/python/src/docs/ReposApi.md b/bindings/python/src/docs/ReposApi.md index 9a6877e1..5df0d1f7 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -1787,7 +1787,7 @@ owner = 'owner_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) query = '' # str | A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (optional) (default to ) -sort = '-created_at' # str | A field for sorting objects in ascending or descending order. (optional) (default to -created_at) +sort = '-created_at' # str | A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (optional) (default to -created_at) try: # Get a list of all repositories within a namespace. @@ -1805,7 +1805,7 @@ Name | Type | Description | Notes **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] **query** | **str**| A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. | [optional] [default to ] - **sort** | **str**| A field for sorting objects in ascending or descending order. | [optional] [default to -created_at] + **sort** | **str**| A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. | [optional] [default to -created_at] ### Return type diff --git a/bindings/python/src/docs/Repository.md b/bindings/python/src/docs/Repository.md index a775e892..8535baa2 100644 --- a/bindings/python/src/docs/Repository.md +++ b/bindings/python/src/docs/Repository.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**active_connection_count** | **int** | Number of active connections for the repository | [optional] **broadcast_state** | **str** | Broadcasting status of a repository. | [optional] [default to 'Off'] **cdn_url** | **str** | Base URL from which packages and other artifacts are downloaded. | [optional] **content_kind** | **str** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard'] diff --git a/bindings/python/src/docs/RepositoryCreate.md b/bindings/python/src/docs/RepositoryCreate.md index 00a5fe2c..c77b0ea6 100644 --- a/bindings/python/src/docs/RepositoryCreate.md +++ b/bindings/python/src/docs/RepositoryCreate.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**active_connection_count** | **int** | Number of active connections for the repository | [optional] **broadcast_state** | **str** | Broadcasting status of a repository. | [optional] [default to 'Off'] **cdn_url** | **str** | Base URL from which packages and other artifacts are downloaded. | [optional] **content_kind** | **str** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard'] diff --git a/bindings/python/src/docs/RepositoryEd25519Key.md b/bindings/python/src/docs/RepositoryEd25519Key.md index 79e52443..ea35b408 100644 --- a/bindings/python/src/docs/RepositoryEd25519Key.md +++ b/bindings/python/src/docs/RepositoryEd25519Key.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **fingerprint** | **str** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] **fingerprint_short** | **str** | | [optional] **public_key** | **str** | The public key given to repository users. | [optional] +**public_key_wire** | **str** | The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index e2ef077f..d8e29f58 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith_api" -VERSION = "2.0.27" +VERSION = "2.0.29" # To install the library, run the following # # python setup.py install diff --git a/bindings/ruby/build.sh b/bindings/ruby/build.sh index c2e37fff..de6fcde5 100755 --- a/bindings/ruby/build.sh +++ b/bindings/ruby/build.sh @@ -38,3 +38,5 @@ docker container run --rm -v $self_dir:/local "${swagger_codegen_cli_image:?}" g -o /local/src \ -t /local/templates \ $common_codegen_options + +bash $root_dir/scripts/fix-ruby-escaping.sh diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index baafdd51..0a1e054e 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -7,7 +7,7 @@ The API to the Cloudsmith Service This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.27 +- Package version: 2.0.29 - Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec Then either install the gem locally: ```shell -gem install ./cloudsmith-api-2.0.27.gem +gem install ./cloudsmith-api-2.0.29.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.27.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.29.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'cloudsmith-api', '~> 2.0.27' + gem 'cloudsmith-api', '~> 2.0.29' ### Install from Git diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index d5ad7510..44df3834 100644 --- a/bindings/ruby/src/build.json +++ b/bindings/ruby/src/build.json @@ -8,7 +8,7 @@ "gemName": "cloudsmith-api", "gemRequiredRubyVersion": ">= 1.9", "gemSummary": "Cloudsmith API", - "gemVersion": "2.0.27", + "gemVersion": "2.0.29", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/ConnectedRepository.md b/bindings/ruby/src/docs/ConnectedRepository.md index 064bfdd0..ec256078 100644 --- a/bindings/ruby/src/docs/ConnectedRepository.md +++ b/bindings/ruby/src/docs/ConnectedRepository.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **DateTime** | The date and time when the connection was created. | [optional] -**is_active** | **BOOLEAN** | | [optional] [default to true] +**disable_reason** | **String** | | [optional] [default to 'N/A'] +**disable_reason_text** | **String** | Human-readable explanation of why this connection is disabled. | [optional] +**is_active** | **BOOLEAN** | | [optional] [default to false] **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **slug_perm** | **String** | | [optional] **target_repository** | **String** | The slug of the target repository to connect to. | diff --git a/bindings/ruby/src/docs/ConnectedRepositoryRequest.md b/bindings/ruby/src/docs/ConnectedRepositoryRequest.md index 89ba5efe..d4858455 100644 --- a/bindings/ruby/src/docs/ConnectedRepositoryRequest.md +++ b/bindings/ruby/src/docs/ConnectedRepositoryRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_active** | **BOOLEAN** | | [optional] [default to true] +**is_active** | **BOOLEAN** | | [optional] [default to false] **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **target_repository** | **String** | The slug of the target repository to connect to. | diff --git a/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md b/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md index 20329df7..aeef35bb 100644 --- a/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md +++ b/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_active** | **BOOLEAN** | | [optional] [default to true] +**is_active** | **BOOLEAN** | | [optional] [default to false] **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] **target_repository** | **String** | The slug of the target repository to connect to. | [optional] diff --git a/bindings/ruby/src/docs/FormatSupportUpstream.md b/bindings/ruby/src/docs/FormatSupportUpstream.md index cb2c921c..fa972fd0 100644 --- a/bindings/ruby/src/docs/FormatSupportUpstream.md +++ b/bindings/ruby/src/docs/FormatSupportUpstream.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **auth_modes** | **Array<String>** | The authentication modes supported by the upstream format | +**cache_only** | **BOOLEAN** | If true the upstream format supports cache-only mode. | **caching** | **BOOLEAN** | If true the upstream format supports caching | **indexing** | **BOOLEAN** | If true the upstream format supports indexing | **indexing_behavior** | **String** | The behavior of the upstream when indexing | [optional] [default to 'Unsupported'] diff --git a/bindings/ruby/src/docs/OrganizationSAMLAuth.md b/bindings/ruby/src/docs/OrganizationSAMLAuth.md index 9cdc578f..3f610cf2 100644 --- a/bindings/ruby/src/docs/OrganizationSAMLAuth.md +++ b/bindings/ruby/src/docs/OrganizationSAMLAuth.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **saml_auth_enabled** | **BOOLEAN** | | **saml_auth_enforced** | **BOOLEAN** | | **saml_metadata_inline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**saml_metadata_inline_webapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **saml_metadata_url** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**saml_metadata_url_webapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] diff --git a/bindings/ruby/src/docs/OrganizationSAMLAuthRequestPatch.md b/bindings/ruby/src/docs/OrganizationSAMLAuthRequestPatch.md index 507f2db1..85ba125a 100644 --- a/bindings/ruby/src/docs/OrganizationSAMLAuthRequestPatch.md +++ b/bindings/ruby/src/docs/OrganizationSAMLAuthRequestPatch.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **saml_auth_enabled** | **BOOLEAN** | | [optional] **saml_auth_enforced** | **BOOLEAN** | | [optional] **saml_metadata_inline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional] +**saml_metadata_inline_webapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] **saml_metadata_url** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional] +**saml_metadata_url_webapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional] diff --git a/bindings/ruby/src/docs/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index 7f952c09..6c7af04a 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -1615,7 +1615,8 @@ api_instance = CloudsmithApi::OrgsApi.new opts = { page: 56, # Integer | A page number within the paginated result set. - page_size: 56 # Integer | Number of results to return per page. + page_size: 56, # Integer | Number of results to return per page. + sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. } begin @@ -1633,6 +1634,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] + **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. | [optional] [default to name] ### Return type diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index c36dc503..dd066849 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -209,7 +209,7 @@ nil (empty response body) # **packages_dependencies** -> PackageDependencies packages_dependencies(owner, repo, identifier) +> PackageDependencies packages_dependencies(owner, repo, identifier, opts) Get the list of dependencies for a package. Transitive dependencies are included where supported. @@ -239,10 +239,13 @@ repo = 'repo_example' # String | identifier = 'identifier_example' # String | +opts = { + include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. +} begin #Get the list of dependencies for a package. Transitive dependencies are included where supported. - result = api_instance.packages_dependencies(owner, repo, identifier) + result = api_instance.packages_dependencies(owner, repo, identifier, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling PackagesApi->packages_dependencies: #{e}" @@ -256,6 +259,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -306,6 +310,7 @@ opts = { page_size: 56, # Integer | Number of results to return per page. group_by: 'name', # String | A field to group packages by. Available options: name, backend_kind. hide_subcomponents: false, # BOOLEAN | Whether to hide packages which are subcomponents of another package in the results + include_connected_repositories: false, # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. } @@ -329,6 +334,7 @@ Name | Type | Description | Notes **page_size** | **Integer**| Number of results to return per page. | [optional] **group_by** | **String**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] **hide_subcomponents** | **BOOLEAN**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] + **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. | [optional] [default to false] **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] @@ -379,6 +385,7 @@ repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. + include_connected_repositories: false, # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. sort: '-date' # String | A field for sorting objects in ascending or descending order. } @@ -400,6 +407,7 @@ Name | Type | Description | Notes **repo** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] + **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] @@ -555,7 +563,7 @@ Name | Type | Description | Notes # **packages_read** -> Package packages_read(owner, repo, identifier) +> Package packages_read(owner, repo, identifier, opts) Get a specific package in a repository. @@ -585,10 +593,13 @@ repo = 'repo_example' # String | identifier = 'identifier_example' # String | +opts = { + include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. +} begin #Get a specific package in a repository. - result = api_instance.packages_read(owner, repo, identifier) + result = api_instance.packages_read(owner, repo, identifier, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling PackagesApi->packages_read: #{e}" @@ -602,6 +613,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type @@ -747,7 +759,7 @@ Name | Type | Description | Notes # **packages_status** -> PackageStatus packages_status(owner, repo, identifier) +> PackageStatus packages_status(owner, repo, identifier, opts) Get the synchronization status for a package. @@ -777,10 +789,13 @@ repo = 'repo_example' # String | identifier = 'identifier_example' # String | +opts = { + include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. +} begin #Get the synchronization status for a package. - result = api_instance.packages_status(owner, repo, identifier) + result = api_instance.packages_status(owner, repo, identifier, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling PackagesApi->packages_status: #{e}" @@ -794,6 +809,7 @@ Name | Type | Description | Notes **owner** | **String**| | **repo** | **String**| | **identifier** | **String**| | + **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] ### Return type diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index 4e660be8..96d86614 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -1844,7 +1844,7 @@ opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. query: '', # String | A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. - sort: '-created_at' # String | A field for sorting objects in ascending or descending order. + sort: '-created_at' # String | A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. } begin @@ -1864,7 +1864,7 @@ Name | Type | Description | Notes **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] **query** | **String**| A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. | [optional] [default to ] - **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -created_at] + **sort** | **String**| A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. | [optional] [default to -created_at] ### Return type diff --git a/bindings/ruby/src/docs/Repository.md b/bindings/ruby/src/docs/Repository.md index 0e985fdf..e766687f 100644 --- a/bindings/ruby/src/docs/Repository.md +++ b/bindings/ruby/src/docs/Repository.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**active_connection_count** | **Integer** | Number of active connections for the repository | [optional] **broadcast_state** | **String** | Broadcasting status of a repository. | [optional] [default to 'Off'] **cdn_url** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional] **content_kind** | **String** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard'] diff --git a/bindings/ruby/src/docs/RepositoryCreate.md b/bindings/ruby/src/docs/RepositoryCreate.md index d5caa2a7..d87d626e 100644 --- a/bindings/ruby/src/docs/RepositoryCreate.md +++ b/bindings/ruby/src/docs/RepositoryCreate.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**active_connection_count** | **Integer** | Number of active connections for the repository | [optional] **broadcast_state** | **String** | Broadcasting status of a repository. | [optional] [default to 'Off'] **cdn_url** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional] **content_kind** | **String** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard'] diff --git a/bindings/ruby/src/docs/RepositoryEd25519Key.md b/bindings/ruby/src/docs/RepositoryEd25519Key.md index f68dca03..51eba482 100644 --- a/bindings/ruby/src/docs/RepositoryEd25519Key.md +++ b/bindings/ruby/src/docs/RepositoryEd25519Key.md @@ -9,5 +9,6 @@ Name | Type | Description | Notes **fingerprint** | **String** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] **fingerprint_short** | **String** | | [optional] **public_key** | **String** | The public key given to repository users. | [optional] +**public_key_wire** | **String** | The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`. | [optional] diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb index 52803c16..c9c00cb5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb @@ -1466,6 +1466,7 @@ def orgs_license_policy_violation_list_with_http_info(org, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (default to name) # @return [Array] def orgs_list(opts = {}) data, _status_code, _headers = orgs_list_with_http_info(opts) @@ -1477,6 +1478,7 @@ def orgs_list(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def orgs_list_with_http_info(opts = {}) if @api_client.config.debugging @@ -1489,6 +1491,7 @@ def orgs_list_with_http_info(opts = {}) query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters header_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb index 01fc8092..87a964f0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -158,6 +158,7 @@ def packages_delete_with_http_info(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) # @return [PackageDependencies] def packages_dependencies(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_dependencies_with_http_info(owner, repo, identifier, opts) @@ -170,6 +171,7 @@ def packages_dependencies(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [Array<(PackageDependencies, Fixnum, Hash)>] PackageDependencies data, response status code and response headers def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging @@ -192,6 +194,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) # query parameters query_params = {} + query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil? # header parameters header_params = {} @@ -227,6 +230,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. (default to name) # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results (default to false) + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (default to false) # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (default to ) # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (default to name) # @return [InlineResponse200] @@ -244,6 +248,7 @@ def packages_groups_list(owner, repo, opts = {}) # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers @@ -268,6 +273,7 @@ def packages_groups_list_with_http_info(owner, repo, opts = {}) query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil? query_params[:'hide_subcomponents'] = opts[:'hide_subcomponents'] if !opts[:'hide_subcomponents'].nil? + query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil? query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? @@ -303,6 +309,7 @@ def packages_groups_list_with_http_info(owner, repo, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (default to ) # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -date) # @return [Array] @@ -318,6 +325,7 @@ def packages_list(owner, repo, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers @@ -340,6 +348,7 @@ def packages_list_with_http_info(owner, repo, opts = {}) query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil? query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? @@ -510,6 +519,7 @@ def packages_quarantine_with_http_info(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) # @return [Package] def packages_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_read_with_http_info(owner, repo, identifier, opts) @@ -522,6 +532,7 @@ def packages_read(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers def packages_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging @@ -544,6 +555,7 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) # query parameters query_params = {} + query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil? # header parameters header_params = {} @@ -708,6 +720,7 @@ def packages_scan_with_http_info(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) # @return [PackageStatus] def packages_status(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_status_with_http_info(owner, repo, identifier, opts) @@ -720,6 +733,7 @@ def packages_status(owner, repo, identifier, opts = {}) # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [Array<(PackageStatus, Fixnum, Hash)>] PackageStatus data, response status code and response headers def packages_status_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging @@ -742,6 +756,7 @@ def packages_status_with_http_info(owner, repo, identifier, opts = {}) # query parameters query_params = {} + query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil? # header parameters header_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb index 4a14f4d2..896d7bc4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -1630,7 +1630,7 @@ def repos_gpg_regenerate_with_http_info(owner, identifier, opts = {}) # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (default to ) - # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -created_at) + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (default to -created_at) # @return [Array] def repos_namespace_list(owner, opts = {}) data, _status_code, _headers = repos_namespace_list_with_http_info(owner, opts) @@ -1644,7 +1644,7 @@ def repos_namespace_list(owner, opts = {}) # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. - # @option opts [String] :sort A field for sorting objects in ascending or descending order. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_namespace_list_with_http_info(owner, opts = {}) if @api_client.config.debugging diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb index 712e9ff3..d111bf0d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb index f435b4f9..70d0f401 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb index b3e1bbb2..69330c96 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream.rb index d1605201..c7505189 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request.rb index 0609baf9..948a57fd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request_patch.rb index d2844c86..3883656e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream.rb index 866eb2e7..b8471712 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request.rb index dfadb828..e643d31d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request_patch.rb index 2cfebc45..49093cd0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb index d37498d2..c0a59a7c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb @@ -17,6 +17,11 @@ class ConnectedRepository # The date and time when the connection was created. attr_accessor :created_at + attr_accessor :disable_reason + + # Human-readable explanation of why this connection is disabled. + attr_accessor :disable_reason_text + attr_accessor :is_active # Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. @@ -27,10 +32,34 @@ class ConnectedRepository # The slug of the target repository to connect to. attr_accessor :target_repository + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'created_at' => :'created_at', + :'disable_reason' => :'disable_reason', + :'disable_reason_text' => :'disable_reason_text', :'is_active' => :'is_active', :'priority' => :'priority', :'slug_perm' => :'slug_perm', @@ -42,6 +71,8 @@ def self.attribute_map def self.swagger_types { :'created_at' => :'DateTime', + :'disable_reason' => :'String', + :'disable_reason_text' => :'String', :'is_active' => :'BOOLEAN', :'priority' => :'Integer', :'slug_perm' => :'String', @@ -61,10 +92,20 @@ def initialize(attributes = {}) self.created_at = attributes[:'created_at'] end + if attributes.has_key?(:'disable_reason') + self.disable_reason = attributes[:'disable_reason'] + else + self.disable_reason = 'N/A' + end + + if attributes.has_key?(:'disable_reason_text') + self.disable_reason_text = attributes[:'disable_reason_text'] + end + if attributes.has_key?(:'is_active') self.is_active = attributes[:'is_active'] else - self.is_active = true + self.is_active = false end if attributes.has_key?(:'priority') @@ -94,16 +135,30 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'The connection contains a circular reference']) + return false unless disable_reason_validator.valid?(@disable_reason) return false if @target_repository.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] disable_reason Object to be assigned + def disable_reason=(disable_reason) + validator = EnumAttributeValidator.new('String', ['N/A', 'The connection contains a circular reference']) + unless validator.valid?(disable_reason) + fail ArgumentError, 'invalid value for "disable_reason", must be one of #{validator.allowable_values}.' + end + @disable_reason = disable_reason + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && created_at == o.created_at && + disable_reason == o.disable_reason && + disable_reason_text == o.disable_reason_text && is_active == o.is_active && priority == o.priority && slug_perm == o.slug_perm && @@ -119,7 +174,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [created_at, is_active, priority, slug_perm, target_repository].hash + [created_at, disable_reason, disable_reason_text, is_active, priority, slug_perm, target_repository].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb index 1123ef60..e645f2a9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb @@ -51,7 +51,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'is_active') self.is_active = attributes[:'is_active'] else - self.is_active = true + self.is_active = false end if attributes.has_key?(:'priority') diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.rb index 46c2eaa3..ad64ac5a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.rb @@ -51,7 +51,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'is_active') self.is_active = attributes[:'is_active'] else - self.is_active = true + self.is_active = false end if attributes.has_key?(:'priority') diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream.rb index 240c2229..ceb2bc36 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request.rb index ece1b3e2..b918e4a0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request_patch.rb index 438a1984..f7ca9215 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream.rb index d5079dac..c58c4dc9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request.rb index 8ee6c12a..1a3e0e77 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request_patch.rb index e14db194..ca39b5f5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream.rb index 7025ef84..2452b03a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream.rb @@ -400,7 +400,7 @@ def valid? return false if @distro_versions.nil? gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid']) return false unless gpg_verification_validator.valid?(@gpg_verification) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -442,7 +442,7 @@ def gpg_verification=(gpg_verification) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request.rb index 606ceda3..78568516 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request.rb @@ -272,7 +272,7 @@ def valid? return false if @distro_versions.nil? gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid']) return false unless gpg_verification_validator.valid?(@gpg_verification) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -302,7 +302,7 @@ def gpg_verification=(gpg_verification) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request_patch.rb index 662b0fea..52291799 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_upstream_request_patch.rb @@ -259,7 +259,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) gpg_verification_validator = EnumAttributeValidator.new('String', ['Allow All', 'Warn on Invalid', 'Reject Invalid']) return false unless gpg_verification_validator.valid?(@gpg_verification) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -287,7 +287,7 @@ def gpg_verification=(gpg_verification) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/format_support_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/format_support_upstream.rb index 0a349280..18c05090 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/format_support_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/format_support_upstream.rb @@ -18,6 +18,9 @@ class FormatSupportUpstream # The authentication modes supported by the upstream format attr_accessor :auth_modes + # If true the upstream format supports cache-only mode. + attr_accessor :cache_only + # If true the upstream format supports caching attr_accessor :caching @@ -62,6 +65,7 @@ def valid?(value) def self.attribute_map { :'auth_modes' => :'auth_modes', + :'cache_only' => :'cache_only', :'caching' => :'caching', :'indexing' => :'indexing', :'indexing_behavior' => :'indexing_behavior', @@ -75,6 +79,7 @@ def self.attribute_map def self.swagger_types { :'auth_modes' => :'Array', + :'cache_only' => :'BOOLEAN', :'caching' => :'BOOLEAN', :'indexing' => :'BOOLEAN', :'indexing_behavior' => :'String', @@ -98,6 +103,10 @@ def initialize(attributes = {}) end end + if attributes.has_key?(:'cache_only') + self.cache_only = attributes[:'cache_only'] + end + if attributes.has_key?(:'caching') self.caching = attributes[:'caching'] end @@ -135,6 +144,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "auth_modes", auth_modes cannot be nil.') end + if @cache_only.nil? + invalid_properties.push('invalid value for "cache_only", cache_only cannot be nil.') + end + if @caching.nil? invalid_properties.push('invalid value for "caching", caching cannot be nil.') end @@ -158,6 +171,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @auth_modes.nil? + return false if @cache_only.nil? return false if @caching.nil? return false if @indexing.nil? indexing_behavior_validator = EnumAttributeValidator.new('String', ['Unsupported', 'Ahead-of-time (static) indexing', 'Just-in-time (dynamic) indexing']) @@ -195,6 +209,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && auth_modes == o.auth_modes && + cache_only == o.cache_only && caching == o.caching && indexing == o.indexing && indexing_behavior == o.indexing_behavior && @@ -212,7 +227,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [auth_modes, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash + [auth_modes, cache_only, caching, indexing, indexing_behavior, proxying, signature_verification, trust].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream.rb index 08181c91..04ab734a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream.rb @@ -316,7 +316,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -346,7 +346,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request.rb index 47eba5d0..45f8fb71 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request.rb @@ -207,7 +207,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -227,7 +227,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request_patch.rb index 708711dc..f942c222 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_upstream_request_patch.rb @@ -199,7 +199,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -217,7 +217,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream.rb index ae2345fe..d72584e1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request.rb index f8b29074..c01465cb 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request_patch.rb index 6cce1acb..efed8a6c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream.rb index 4510e48d..d69d7b2e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request.rb index c5b6816b..e48549ae 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request_patch.rb index 58827a38..266031d8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream.rb index 5fdb34e8..3787ec41 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream.rb @@ -318,7 +318,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) @@ -350,7 +350,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request.rb index db7d1032..00895e5f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request.rb @@ -209,7 +209,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) @@ -231,7 +231,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request_patch.rb index 0c678f5c..d1a3e3ce 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_upstream_request_patch.rb @@ -201,7 +201,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password', 'Token']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) return false unless trust_level_validator.valid?(@trust_level) @@ -221,7 +221,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream.rb index e4a9c150..f8cb3802 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream.rb @@ -307,7 +307,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -337,7 +337,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request.rb index 3969f529..e3329ead 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request.rb @@ -198,7 +198,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? return false if @upstream_url.nil? @@ -218,7 +218,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb index f847fb3f..9b9da1de 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb @@ -190,7 +190,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) true end @@ -208,7 +208,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth.rb index 1d734d99..3fd1b0cf 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth.rb @@ -21,16 +21,24 @@ class OrganizationSAMLAuth # If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. attr_accessor :saml_metadata_inline + # When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + attr_accessor :saml_metadata_inline_webapp + # If configured, SAML metadata be retrieved from a remote URL. attr_accessor :saml_metadata_url + # When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + attr_accessor :saml_metadata_url_webapp + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'saml_auth_enabled' => :'saml_auth_enabled', :'saml_auth_enforced' => :'saml_auth_enforced', :'saml_metadata_inline' => :'saml_metadata_inline', - :'saml_metadata_url' => :'saml_metadata_url' + :'saml_metadata_inline_webapp' => :'saml_metadata_inline_webapp', + :'saml_metadata_url' => :'saml_metadata_url', + :'saml_metadata_url_webapp' => :'saml_metadata_url_webapp' } end @@ -40,7 +48,9 @@ def self.swagger_types :'saml_auth_enabled' => :'BOOLEAN', :'saml_auth_enforced' => :'BOOLEAN', :'saml_metadata_inline' => :'String', - :'saml_metadata_url' => :'String' + :'saml_metadata_inline_webapp' => :'String', + :'saml_metadata_url' => :'String', + :'saml_metadata_url_webapp' => :'String' } end @@ -64,9 +74,17 @@ def initialize(attributes = {}) self.saml_metadata_inline = attributes[:'saml_metadata_inline'] end + if attributes.has_key?(:'saml_metadata_inline_webapp') + self.saml_metadata_inline_webapp = attributes[:'saml_metadata_inline_webapp'] + end + if attributes.has_key?(:'saml_metadata_url') self.saml_metadata_url = attributes[:'saml_metadata_url'] end + + if attributes.has_key?(:'saml_metadata_url_webapp') + self.saml_metadata_url_webapp = attributes[:'saml_metadata_url_webapp'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -100,7 +118,9 @@ def ==(o) saml_auth_enabled == o.saml_auth_enabled && saml_auth_enforced == o.saml_auth_enforced && saml_metadata_inline == o.saml_metadata_inline && - saml_metadata_url == o.saml_metadata_url + saml_metadata_inline_webapp == o.saml_metadata_inline_webapp && + saml_metadata_url == o.saml_metadata_url && + saml_metadata_url_webapp == o.saml_metadata_url_webapp end # @see the `==` method @@ -112,7 +132,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_url].hash + [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_inline_webapp, saml_metadata_url, saml_metadata_url_webapp].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb index 8f484643..ff2bbdc0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb @@ -21,16 +21,24 @@ class OrganizationSAMLAuthRequestPatch # If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. attr_accessor :saml_metadata_inline + # When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + attr_accessor :saml_metadata_inline_webapp + # If configured, SAML metadata be retrieved from a remote URL. attr_accessor :saml_metadata_url + # When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. + attr_accessor :saml_metadata_url_webapp + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'saml_auth_enabled' => :'saml_auth_enabled', :'saml_auth_enforced' => :'saml_auth_enforced', :'saml_metadata_inline' => :'saml_metadata_inline', - :'saml_metadata_url' => :'saml_metadata_url' + :'saml_metadata_inline_webapp' => :'saml_metadata_inline_webapp', + :'saml_metadata_url' => :'saml_metadata_url', + :'saml_metadata_url_webapp' => :'saml_metadata_url_webapp' } end @@ -40,7 +48,9 @@ def self.swagger_types :'saml_auth_enabled' => :'BOOLEAN', :'saml_auth_enforced' => :'BOOLEAN', :'saml_metadata_inline' => :'String', - :'saml_metadata_url' => :'String' + :'saml_metadata_inline_webapp' => :'String', + :'saml_metadata_url' => :'String', + :'saml_metadata_url_webapp' => :'String' } end @@ -64,9 +74,17 @@ def initialize(attributes = {}) self.saml_metadata_inline = attributes[:'saml_metadata_inline'] end + if attributes.has_key?(:'saml_metadata_inline_webapp') + self.saml_metadata_inline_webapp = attributes[:'saml_metadata_inline_webapp'] + end + if attributes.has_key?(:'saml_metadata_url') self.saml_metadata_url = attributes[:'saml_metadata_url'] end + + if attributes.has_key?(:'saml_metadata_url_webapp') + self.saml_metadata_url_webapp = attributes[:'saml_metadata_url_webapp'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -90,7 +108,9 @@ def ==(o) saml_auth_enabled == o.saml_auth_enabled && saml_auth_enforced == o.saml_auth_enforced && saml_metadata_inline == o.saml_metadata_inline && - saml_metadata_url == o.saml_metadata_url + saml_metadata_inline_webapp == o.saml_metadata_inline_webapp && + saml_metadata_url == o.saml_metadata_url && + saml_metadata_url_webapp == o.saml_metadata_url_webapp end # @see the `==` method @@ -102,7 +122,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_url].hash + [saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_inline_webapp, saml_metadata_url, saml_metadata_url_webapp].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream.rb index d5c34163..7297fff5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream.rb @@ -318,7 +318,7 @@ def valid? return false unless auth_mode_validator.valid?(@auth_mode) disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user']) return false unless disable_reason_validator.valid?(@disable_reason) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) @@ -350,7 +350,7 @@ def disable_reason=(disable_reason) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request.rb index e80e16cc..8589b5cf 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request.rb @@ -209,7 +209,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) return false if @name.nil? trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) @@ -231,7 +231,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request_patch.rb index 42619d4e..bdc2a200 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_upstream_request_patch.rb @@ -201,7 +201,7 @@ def list_invalid_properties def valid? auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) return false unless auth_mode_validator.valid?(@auth_mode) - mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) return false unless mode_validator.valid?(@mode) trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted']) return false unless trust_level_validator.valid?(@trust_level) @@ -221,7 +221,7 @@ def auth_mode=(auth_mode) # Custom attribute writer method checking allowed values (enum). # @param [Object] mode Object to be assigned def mode=(mode) - validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy']) + validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only']) unless validator.valid?(mode) fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb index 9fe366ed..7df638ac 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb @@ -14,6 +14,9 @@ module CloudsmithApi class Repository + # Number of active connections for the repository + attr_accessor :active_connection_count + # Broadcasting status of a repository. attr_accessor :broadcast_state @@ -246,6 +249,7 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'active_connection_count' => :'active_connection_count', :'broadcast_state' => :'broadcast_state', :'cdn_url' => :'cdn_url', :'content_kind' => :'content_kind', @@ -323,6 +327,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'active_connection_count' => :'Integer', :'broadcast_state' => :'String', :'cdn_url' => :'String', :'content_kind' => :'String', @@ -405,6 +410,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'active_connection_count') + self.active_connection_count = attributes[:'active_connection_count'] + end + if attributes.has_key?(:'broadcast_state') self.broadcast_state = attributes[:'broadcast_state'] else @@ -903,6 +912,7 @@ def view_statistics=(view_statistics) def ==(o) return true if self.equal?(o) self.class == o.class && + active_connection_count == o.active_connection_count && broadcast_state == o.broadcast_state && cdn_url == o.cdn_url && content_kind == o.content_kind && @@ -985,7 +995,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb index ca90e9ce..a5cb13d5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb @@ -14,6 +14,9 @@ module CloudsmithApi class RepositoryCreate + # Number of active connections for the repository + attr_accessor :active_connection_count + # Broadcasting status of a repository. attr_accessor :broadcast_state @@ -246,6 +249,7 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'active_connection_count' => :'active_connection_count', :'broadcast_state' => :'broadcast_state', :'cdn_url' => :'cdn_url', :'content_kind' => :'content_kind', @@ -323,6 +327,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'active_connection_count' => :'Integer', :'broadcast_state' => :'String', :'cdn_url' => :'String', :'content_kind' => :'String', @@ -405,6 +410,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'active_connection_count') + self.active_connection_count = attributes[:'active_connection_count'] + end + if attributes.has_key?(:'broadcast_state') self.broadcast_state = attributes[:'broadcast_state'] else @@ -903,6 +912,7 @@ def view_statistics=(view_statistics) def ==(o) return true if self.equal?(o) self.class == o.class && + active_connection_count == o.active_connection_count && broadcast_state == o.broadcast_state && cdn_url == o.cdn_url && content_kind == o.content_kind && @@ -985,7 +995,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb index e8d3cb8f..2b88a374 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb @@ -30,6 +30,9 @@ class RepositoryEd25519Key # The public key given to repository users. attr_accessor :public_key + # The public key in `:` wire format, ready to paste into Nix `trusted-public-keys`. + attr_accessor :public_key_wire + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +41,8 @@ def self.attribute_map :'default' => :'default', :'fingerprint' => :'fingerprint', :'fingerprint_short' => :'fingerprint_short', - :'public_key' => :'public_key' + :'public_key' => :'public_key', + :'public_key_wire' => :'public_key_wire' } end @@ -50,7 +54,8 @@ def self.swagger_types :'default' => :'BOOLEAN', :'fingerprint' => :'String', :'fingerprint_short' => :'String', - :'public_key' => :'String' + :'public_key' => :'String', + :'public_key_wire' => :'String' } end @@ -85,6 +90,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'public_key') self.public_key = attributes[:'public_key'] end + + if attributes.has_key?(:'public_key_wire') + self.public_key_wire = attributes[:'public_key_wire'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -110,7 +119,8 @@ def ==(o) default == o.default && fingerprint == o.fingerprint && fingerprint_short == o.fingerprint_short && - public_key == o.public_key + public_key == o.public_key && + public_key_wire == o.public_key_wire end # @see the `==` method @@ -122,7 +132,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [active, created_at, default, fingerprint, fingerprint_short, public_key].hash + [active, created_at, default, fingerprint, fingerprint_short, public_key, public_key_wire].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index fbca388a..4c545dd2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -11,5 +11,5 @@ =end module CloudsmithApi - VERSION = '2.0.27' + VERSION = '2.0.29' end diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index e37c7e9a..dbb443ee 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -363,6 +363,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. # @return [Array] describe 'orgs_list test' do it 'should work' do diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index 0aefb371..dd1e5e6d 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -68,6 +68,7 @@ # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [PackageDependencies] describe 'packages_dependencies test' do it 'should work' do @@ -85,6 +86,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. # @return [InlineResponse200] @@ -102,6 +104,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. # @return [Array] @@ -148,6 +151,7 @@ # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [Package] describe 'packages_read test' do it 'should work' do @@ -190,6 +194,7 @@ # @param repo # @param identifier # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. # @return [PackageStatus] describe 'packages_status test' do it 'should work' do diff --git a/bindings/ruby/src/spec/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index fdebb5bc..02ff9338 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -395,7 +395,7 @@ # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. - # @option opts [String] :sort A field for sorting objects in ascending or descending order. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. # @return [Array] describe 'repos_namespace_list test' do it 'should work' do diff --git a/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb index 22b52e3e..449fd128 100644 --- a/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb index ce077c0e..070c077d 100644 --- a/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/cargo_upstream_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_spec.rb index 2762c8db..26bc7b7b 100644 --- a/bindings/ruby/src/spec/models/cargo_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/composer_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/composer_upstream_request_patch_spec.rb index f4a7a016..bd89599d 100644 --- a/bindings/ruby/src/spec/models/composer_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/composer_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/composer_upstream_request_spec.rb b/bindings/ruby/src/spec/models/composer_upstream_request_spec.rb index 3fe24614..825cbb9a 100644 --- a/bindings/ruby/src/spec/models/composer_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/composer_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/composer_upstream_spec.rb b/bindings/ruby/src/spec/models/composer_upstream_spec.rb index 95efb86c..71800ff8 100644 --- a/bindings/ruby/src/spec/models/composer_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/composer_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb index 09f36d11..ed3b32b6 100644 --- a/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/conda_upstream_request_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_request_spec.rb index e5f6f871..6eeb9b9e 100644 --- a/bindings/ruby/src/spec/models/conda_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/conda_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/conda_upstream_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_spec.rb index 869df5bb..644b326b 100644 --- a/bindings/ruby/src/spec/models/conda_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/conda_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/connected_repository_spec.rb b/bindings/ruby/src/spec/models/connected_repository_spec.rb index f5de1b00..568d0b1d 100644 --- a/bindings/ruby/src/spec/models/connected_repository_spec.rb +++ b/bindings/ruby/src/spec/models/connected_repository_spec.rb @@ -38,6 +38,22 @@ end end + describe 'test attribute "disable_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["N/A", "The connection contains a circular reference"]) + # validator.allowable_values.each do |value| + # expect { @instance.disable_reason = value }.not_to raise_error + # end + end + end + + describe 'test attribute "disable_reason_text"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "is_active"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cran_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/cran_upstream_request_patch_spec.rb index 7e7922d6..ae8f3b0e 100644 --- a/bindings/ruby/src/spec/models/cran_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/cran_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/cran_upstream_request_spec.rb b/bindings/ruby/src/spec/models/cran_upstream_request_spec.rb index cc53581a..29bdb6f6 100644 --- a/bindings/ruby/src/spec/models/cran_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/cran_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/cran_upstream_spec.rb b/bindings/ruby/src/spec/models/cran_upstream_spec.rb index 5f54bfe3..726a5353 100644 --- a/bindings/ruby/src/spec/models/cran_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/cran_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/dart_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/dart_upstream_request_patch_spec.rb index b6afdeab..1cd49d38 100644 --- a/bindings/ruby/src/spec/models/dart_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/dart_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/dart_upstream_request_spec.rb b/bindings/ruby/src/spec/models/dart_upstream_request_spec.rb index 14c8647f..b375131a 100644 --- a/bindings/ruby/src/spec/models/dart_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/dart_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/dart_upstream_spec.rb b/bindings/ruby/src/spec/models/dart_upstream_spec.rb index fc057153..d7bae03a 100644 --- a/bindings/ruby/src/spec/models/dart_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/dart_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/deb_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/deb_upstream_request_patch_spec.rb index 497ce569..7b6aa9af 100644 --- a/bindings/ruby/src/spec/models/deb_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/deb_upstream_request_patch_spec.rb @@ -127,7 +127,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/deb_upstream_request_spec.rb b/bindings/ruby/src/spec/models/deb_upstream_request_spec.rb index 55a7c0ac..a6b9191b 100644 --- a/bindings/ruby/src/spec/models/deb_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/deb_upstream_request_spec.rb @@ -127,7 +127,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/deb_upstream_spec.rb b/bindings/ruby/src/spec/models/deb_upstream_spec.rb index 4f51f896..2b92a390 100644 --- a/bindings/ruby/src/spec/models/deb_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/deb_upstream_spec.rb @@ -191,7 +191,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/format_support_upstream_spec.rb b/bindings/ruby/src/spec/models/format_support_upstream_spec.rb index 45cf2bb3..773a7119 100644 --- a/bindings/ruby/src/spec/models/format_support_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/format_support_upstream_spec.rb @@ -42,6 +42,12 @@ end end + describe 'test attribute "cache_only"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "caching"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/generic_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/generic_upstream_request_patch_spec.rb index ba7a12c5..630f4097 100644 --- a/bindings/ruby/src/spec/models/generic_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/generic_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/generic_upstream_request_spec.rb b/bindings/ruby/src/spec/models/generic_upstream_request_spec.rb index 25c839b1..c329a8af 100644 --- a/bindings/ruby/src/spec/models/generic_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/generic_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/generic_upstream_spec.rb b/bindings/ruby/src/spec/models/generic_upstream_spec.rb index 3013c2bb..03861ea1 100644 --- a/bindings/ruby/src/spec/models/generic_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/generic_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/helm_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/helm_upstream_request_patch_spec.rb index bc64e94e..23fab5d2 100644 --- a/bindings/ruby/src/spec/models/helm_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/helm_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/helm_upstream_request_spec.rb b/bindings/ruby/src/spec/models/helm_upstream_request_spec.rb index f51a9a1a..0eff9c27 100644 --- a/bindings/ruby/src/spec/models/helm_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/helm_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/helm_upstream_spec.rb b/bindings/ruby/src/spec/models/helm_upstream_spec.rb index 56508cf9..edacc268 100644 --- a/bindings/ruby/src/spec/models/helm_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/helm_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/hex_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/hex_upstream_request_patch_spec.rb index 9be7d0d1..795036f3 100644 --- a/bindings/ruby/src/spec/models/hex_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/hex_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/hex_upstream_request_spec.rb b/bindings/ruby/src/spec/models/hex_upstream_request_spec.rb index d9061fdb..7f5f5bd6 100644 --- a/bindings/ruby/src/spec/models/hex_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/hex_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/hex_upstream_spec.rb b/bindings/ruby/src/spec/models/hex_upstream_spec.rb index a8705e58..3c626d16 100644 --- a/bindings/ruby/src/spec/models/hex_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/hex_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/npm_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/npm_upstream_request_patch_spec.rb index 19a32ee0..5af48a2a 100644 --- a/bindings/ruby/src/spec/models/npm_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/npm_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/npm_upstream_request_spec.rb b/bindings/ruby/src/spec/models/npm_upstream_request_spec.rb index f3309898..ab710d8f 100644 --- a/bindings/ruby/src/spec/models/npm_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/npm_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/npm_upstream_spec.rb b/bindings/ruby/src/spec/models/npm_upstream_spec.rb index 23ca77c6..ada0bdb3 100644 --- a/bindings/ruby/src/spec/models/npm_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/npm_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/nuget_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/nuget_upstream_request_patch_spec.rb index cb9e5107..3ae497be 100644 --- a/bindings/ruby/src/spec/models/nuget_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/nuget_upstream_request_spec.rb b/bindings/ruby/src/spec/models/nuget_upstream_request_spec.rb index dae075f8..27a25f70 100644 --- a/bindings/ruby/src/spec/models/nuget_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/nuget_upstream_spec.rb b/bindings/ruby/src/spec/models/nuget_upstream_spec.rb index fc073669..479b5b0e 100644 --- a/bindings/ruby/src/spec/models/nuget_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/organization_saml_auth_request_patch_spec.rb b/bindings/ruby/src/spec/models/organization_saml_auth_request_patch_spec.rb index 1b32211d..f5dd9f93 100644 --- a/bindings/ruby/src/spec/models/organization_saml_auth_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/organization_saml_auth_request_patch_spec.rb @@ -50,10 +50,22 @@ end end + describe 'test attribute "saml_metadata_inline_webapp"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "saml_metadata_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "saml_metadata_url_webapp"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/organization_saml_auth_spec.rb b/bindings/ruby/src/spec/models/organization_saml_auth_spec.rb index 09563d2d..5aa6d440 100644 --- a/bindings/ruby/src/spec/models/organization_saml_auth_spec.rb +++ b/bindings/ruby/src/spec/models/organization_saml_auth_spec.rb @@ -50,10 +50,22 @@ end end + describe 'test attribute "saml_metadata_inline_webapp"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "saml_metadata_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "saml_metadata_url_webapp"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/python_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/python_upstream_request_patch_spec.rb index 9186c3ba..b139c52a 100644 --- a/bindings/ruby/src/spec/models/python_upstream_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/python_upstream_request_patch_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/python_upstream_request_spec.rb b/bindings/ruby/src/spec/models/python_upstream_request_spec.rb index d6e51d51..9c564d5d 100644 --- a/bindings/ruby/src/spec/models/python_upstream_request_spec.rb +++ b/bindings/ruby/src/spec/models/python_upstream_request_spec.rb @@ -87,7 +87,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/python_upstream_spec.rb b/bindings/ruby/src/spec/models/python_upstream_spec.rb index 40037b7a..8df3484e 100644 --- a/bindings/ruby/src/spec/models/python_upstream_spec.rb +++ b/bindings/ruby/src/spec/models/python_upstream_spec.rb @@ -145,7 +145,7 @@ describe 'test attribute "mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy", "Cache Only"]) # validator.allowable_values.each do |value| # expect { @instance.mode = value }.not_to raise_error # end diff --git a/bindings/ruby/src/spec/models/repository_create_spec.rb b/bindings/ruby/src/spec/models/repository_create_spec.rb index 9f59b958..e56a8e79 100644 --- a/bindings/ruby/src/spec/models/repository_create_spec.rb +++ b/bindings/ruby/src/spec/models/repository_create_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::RepositoryCreate) end end + describe 'test attribute "active_connection_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "broadcast_state"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb b/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb index 23eb3dec..7a57bfa1 100644 --- a/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb +++ b/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb @@ -68,4 +68,10 @@ end end + describe 'test attribute "public_key_wire"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/bindings/ruby/src/spec/models/repository_spec.rb b/bindings/ruby/src/spec/models/repository_spec.rb index 3a63cd7e..74ad6911 100644 --- a/bindings/ruby/src/spec/models/repository_spec.rb +++ b/bindings/ruby/src/spec/models/repository_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::Repository) end end + describe 'test attribute "active_connection_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "broadcast_state"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/scripts/build.sh b/scripts/build.sh index d38cb67f..125e18ef 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -43,3 +43,6 @@ test -z "$language" && { } || { build_language $language } + +echo "Applying ruff autofixes to generated sources ..." +uvx ruff check --fix "$root_dir" diff --git a/scripts/common.sh b/scripts/common.sh old mode 100644 new mode 100755 index 9b1bb487..2f5334d6 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -3,7 +3,7 @@ language=${1:-""} api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}} api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version') openapi_url="${api_url}?format=openapi" -package_version="2.0.27" +package_version="2.0.29" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:v2.4.50" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2) diff --git a/scripts/fix-ruby-escaping.sh b/scripts/fix-ruby-escaping.sh new file mode 100755 index 00000000..1a552372 --- /dev/null +++ b/scripts/fix-ruby-escaping.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +# swagger-codegen emits the `disable_reason` enum value +# `RSA key did not verify the upstream's APKINDEX signature` into single-quoted +# Ruby string literals in the *_upstream.rb model files. The raw apostrophe +# terminates the literal and produces a syntax error, so it must be re-escaped +# to `upstream\'s APKINDEX` after every regeneration. This is idempotent. + +set -e + +self=$(readlink -f "$BASH_SOURCE") +self_dir=$(dirname "$self") +root_dir=$(readlink -f "$self_dir/..") + +ruby_models_dir="$root_dir/bindings/ruby/src/lib/cloudsmith-api/models" +raw_apostrophe="upstream's APKINDEX" + +if [ ! -d "$ruby_models_dir" ]; then + echo "Ruby models directory not found; nothing to fix: $ruby_models_dir" + exit 0 +fi + +affected_files=$(grep -rl "$raw_apostrophe" "$ruby_models_dir" 2>/dev/null || true) + +if [ -z "$affected_files" ]; then + echo "No unescaped Ruby apostrophes found; nothing to fix" + exit 0 +fi + +if ! command -v ruby &> /dev/null; then + echo "ruby is required to fix Ruby apostrophe escaping but was not found" >&2 + exit 1 +fi + +echo "Re-escaping apostrophe in Ruby upstream models:" +while IFS= read -r rb_file; do + [ -n "$rb_file" ] || continue + echo " $rb_file" + ruby -i -pe 'gsub("upstream\x27s APKINDEX") { "upstream\\\x27s APKINDEX" }' "$rb_file" + ruby -c "$rb_file" > /dev/null +done <<< "$affected_files" + +echo "Ruby apostrophe escaping fixed (verified with ruby -c)" diff --git a/scripts/update-bindings.sh b/scripts/update-bindings.sh index 87513869..8ffef4d6 100755 --- a/scripts/update-bindings.sh +++ b/scripts/update-bindings.sh @@ -144,6 +144,30 @@ generate_bindings() { fi } +run_precommit_to_convergence() { + if ! command -v pre-commit &> /dev/null; then + log_warning "pre-commit not found; skipping explicit hook run (the git commit hook, if installed, will still run)" + return 0 + fi + + log_info "Running pre-commit hooks to convergence before committing..." + + local attempt=1 + local max_attempts=5 + while ! pre-commit run --all-files; do + git add . + if [ "$attempt" -ge "$max_attempts" ]; then + log_error "pre-commit hooks did not converge after $max_attempts attempts; aborting before commit" + exit 1 + fi + attempt=$((attempt + 1)) + log_warning "pre-commit modified files; re-staging and retrying (attempt $attempt)..." + done + + git add . + log_success "pre-commit hooks passed" +} + create_and_push_branch() { local version="$1" local api_version="$2" @@ -180,15 +204,20 @@ create_and_push_branch() { return 1 fi - git commit -m "Update API bindings to version $version + run_precommit_to_convergence + + if ! git commit -m "Update API bindings to version $version Binding version: $version CloudSmith API version: $api_version - Updated package_version in scripts/common.sh - Regenerated bindings for Python, Ruby, and Java -- Ready for automated deployment via CircleCI" - +- Ready for automated deployment via CircleCI"; then + log_error "git commit failed (a pre-commit hook may have aborted it). Not pushing branch $branch_name." + exit 1 + fi + log_info "Pushing branch to origin..." if ! git push origin "$branch_name"; then log_warning "Normal push failed, trying force push..."